Add support to identify fake battery/debug board and suspend the USB
input path when this is detected.
CRs-Fixed: 1107245
Change-Id: Icaa936e4e5b3c9381bc92b6664b32547a820b9c3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
The gcc_gpu_bimc_gfx_src_clk and gcc_gpu_snoc_dvm_gfx_clk need
to left at their default state of ON. Remove controlling them
from the linux clock driver to avoid disabling them during
late_init.
Change-Id: Iefc033998bf87fcc98dfaa1b7321d9cc33dedd5e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
clk_prepare would hold a mutex and as clk_debug_mux_measure_rate has
already acquired a spinlock it would result in a BUG from sleeping context.
Avoid this by moving the prepare_enable before acquiring spinlock.
Change-Id: Ia405c884663ef80e87ae066df09f1c30134faf2e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Some of the ARMv8.1, ARMv8.2 architectural features(ARM64_HW_AFDBM,
ARM64_PAN and ARM64_UAO) are enabled by default. Do not enable
these features by default, so that target specific defconfig
files can enable or disable based on features supported.
Change-Id: I072216927c3475169156a3d51f20d06675630ab9
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
External sense configuration is not supported. Hence remove it.
Change-Id: If65eb8c4d9720d4c4e9d913c91c8b33f420f29d1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
The power directory structure has changed in kernel version 4.9. Align
msm-4.4 with this new directory structure.
Change-Id: Iba729f8ef33245ea78cdc05276ba8f5593191509
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
rc could be returned without being initialized. Initialize it.
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I044f74c7853e6853ae41734a95a4d86569c60457
pos is incremented by bytes_read which could exceed the boundary of
kbuf. Fix this by checking the bounds of pos.
resched_ms is used when uninitialized. Initialize it.
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3a01d59bb5ed53666307a5210a684c7d9fd654fc
param_type is used for array access before the boundary check. Check the
boundary before using param_type.
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3d1fb4ada3182c533e5b937717962dc513837e78
Because of recently introduced kernel change, previous change to
unlock mutex is not required as HID device addition is now done in
worker thread instead of main thread. Previous code flow was blocking
as uhid_hid_set_report was called from main thread which is not the
case now. Previous code flow was
uhid_char_write->uhid_dev_create2->uhid_hid_raw_request->
uhid_hid_set_report->__uhid_report_queue_and_wait->
wait_event_interruptible_timeout which is now changed to
uhid_char_write->uhid_dev_create2.
CRs-Fixed: 1112380
Signed-off-by: Hemant Gupta <hemantg@codeaurora.org>
Change-Id: I11c3e5628484739acc208deff84a82f34b1b7beb
11ad device supports 48 bit addresses, reflect that
by setting the dma mask accordingly to be able to
map skbs using 48 bits.
HW has limitation that all vrings should share the same
msb bits out of the 48 bits address. To overcome that,
for vrings mapping use 32 bit addresses only.
Change-Id: I7f710129ba61356f7f29ec69c885f60a31246151
CRs-Fixed: 1109659
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
IPA needs to be kept disabled in SDA630 APQ platform.
Change-Id: I26831c989edee3f94f6cbafbb9955d669c546442
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
External gcc clock is operating in 2x,
IPA clock to be in sync up with gcc clock,
enable 2x fast clock in IPA.
Change-Id: I47dc00452c7a52c967838ee0c4db6eaf754e5ae6
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
CPU clocks would require to vote on active only instance of GPLL0, so add
the clock and also update the parent names for the CPU clocks.
Change-Id: Id8c7f76170a1cc94fe045b8ba975aaa42c4b3819
Signed-off-by: Taniya Das <tdas@codeaurora.org>