msm: wlan: correct db.txt for country code RU

Current usable band is 5725-5825. But for
channel 165 (freq 5825), when desired
bandwidth is 20MHz, the band fit in check
fails. This fix updates the start and end
frequency of this country based on the valid
channel list.

CRs-Fixed: 699088
Change-Id: I8e09bb32676f94023a14c4b3a5c26dd3ae495af7
Signed-off-by: Manishekar Chandrasekaran <cmshekar@codeaurora.org>
msm_fb: display: reference count base pipe free in dsi and lcdc

During dsi off or lcdc off, base pipe could be freeed if fb device is
closed. Since base pipe allocation and free are managed through
reference counting api functions, so those free functions api should
be called.

Change-Id: I210716a590cde87ee254184a42d9df38c8012ff6
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm: board-8064: Add platform data to enable OTG USER control

apq8064 currently supports OTG PMIC control. This change
enables OTG USER control support and allows apq8064 to either
work in usb peripheral mode or usb host mode. Also set the
default operational mode to PERIPHERAL.

Change-Id: I838dce8ff1cd7ed554aa31fe248d71225a015073
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
msm: board-8064-camera: remove adv7481 data

Removed adv7481 camera sensor data from board-8064-camera file to
remodel the adv7481 driver from a camera sensor driver to a
video driver.

Change-Id: I8c359f81f6921a6d7aad77497578ca1ba8d8b91e
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Merge "msm: board-8064-camera: remove adv7481 data"
Merge "msm: board-8064: Add platform data to enable OTG USER control"
Merge "msm: wlan: correct db.txt for country code RU"
USB: gadget: qdss: Fix strncmp length usage

Using a newer GCC we get the following warnings:

drivers/usb/gadget/f_qdss.c: In function 'qdss_bind_config':
drivers/usb/gadget/f_qdss.c:598: warning: argument to 'sizeof' in
'strncmp' call is the same expression as the second source; did you mean
to provide an explicit length? [-Wsizeof-pointer-memaccess]

drivers/usb/gadget/f_qdss.c: In function 'usb_qdss_open':
drivers/usb/gadget/f_qdss.c:760: warning: argument to 'sizeof' in
'strncmp' call is the same expression as the second source; did you mean
to provide an explicit length? [-Wsizeof-pointer-memaccess]

These look to be due to using sizeof(ch->name) which is a pointer, use
a simple strcmp instead.

Change-Id: I09e09a18ffb3361fc351b177ed3a35432d9ed933
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
usb: gadget: mbim: prefix common variables with mbim

mbim driver is cloned from ncm and shares same variable names. Prefix
common variables with mbim to avoid compilation error when ncm is
enabled

Change-Id: I57f720daec058ac73f65ee61e0f886326e5d161f
Signed-off-by: Vamsi Krishna <vskrishn@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
usb: gadget: android: Add NCM function to android composition

NCM function allows remote networking over USB. Add ncm support
to android usb composition.

Change-Id: Ic3c3736e534c1fbd6519ec97231f9ef7fdfd7c59
Signed-off-by: Vamsi Krishna <vskrishn@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Merge "USB: gadget: qdss: Fix strncmp length usage"
Merge "usb: gadget: mbim: prefix common variables with mbim"
Merge "usb: gadget: android: Add NCM function to android composition"
msm: board-8064: revert 8064 pm8921 common device change

Earlier during adp_2 display bringup, ext_3p3v_vreg was removed from
pm8921 common device list due to display issues. Later it was found
out that only gpio setup that caused the issue. So, revert non gpio
change in patch id 197f3e7879446a7d70a9bc2276ac44ce60f01a38 to avoid
other regressions.

Change-Id: I1bee35a8273c06644f899abb192d9ec83e60d462
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Merge "msm_fb: display: reference count base pipe free in dsi and lcdc"
Merge "msm: board-8064: revert 8064 pm8921 common device change"
msm: adv7282-m: fix for no signal lock error

Fix for no input source signal lock error that was causing
black screen for rear view camera use case. Also contains
some timing optimizations for better performance.

Change-Id: I44b3a52d876891400828b46f05fd994fcf99350a
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Merge "msm: adv7282-m: fix for no signal lock error"
msm: otg: Add vbus sensing support

VBUS is not routed to USB PHY on recent platforms and USB controller
must see VBUS in order to pull-up DP when setting RS bit. Hence
configure USB PHY and LINK registers sense vbus and enable manual
pullup on D+ line.

Change-Id: I140f6de958fb18731dbedded40226192cd3a12f8
Signed-off-by: Vamsi Krishna <vskrishn@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
usb: msm_otg: Provide sysfs interface to keep the VBUS during role switch

apq8064 currently supports OTG USER control and supplies the VBUS
only in HOST Mode. When APQ8064 is switches from the Host to Peripheral,
In some usecases VBUS still needs to be applied by the APQ8064 AU.
This change adds the keep_vbus sysfs file to enable VBUS Power during
role switch. When otg switches from host mode to peripheral mode, User
can set keep_vbus by writing to the sysfs node which is exposed
to the userspace from the USB.

The sample commands of the keep_vbus sysfs file.
To configure the OTG port in Peripheral mode and keeping the vbus power.

echo enable  > /sys/bus/platform/devices/msm_otg/keep_vbus
echo peripheral  > /sys/bus/platform/devices/msm_otg/mode

Change-Id: I71cd5d2e988dabc237f383e9db117935179b2259
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>