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>
There could be use cases where the PLL could support various software
instances for various peripherals or for cpu. In those cases PLL need to
support aggregation logic for the voting and devoting on the PLL.
Change-Id: Ie5148a75452dccc555989a454996b945956f94e5
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Fix the DSI TE vsync gpio function name for sdm660 target as
per pinctrl framework.
Change-Id: Ie411514e5ce1f1d98cb205be17f51834917bf4b5
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Slimbus transactions are failing because of bam intitialization
failed with slimbus_bam_lite module. With slimbus_bam, transactions
over slimbus are successful. This patch programs the slimbus bam
offset with slimbus_bam module offset address for SDM630.
Change-Id: Ifa6c01be14614d0145fef71c847bfb41f2ec3734
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
The h/w cannot be halted in tasklet context since halting
requires the tasklet to be flushed. Masking interrupts is
enough when error is detected in tasklet.
CRs-Fixed: 1100416
Change-Id: Ie9aaec222e72c40d640564a4c6bc5728e3d5aa9c
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Add QPDI support for sdm660. QPDI is used for
PMIC debug interface through SD card slot.
CRs-fixed: 1112330
Change-Id: I265be6186f43c60e552d026fda3b71f491c61d9f
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
The regulator resource names for PM660L S3(CX) and PM660L S5(MX)
needs to be "rwcx" and "rwmx" respectively. Fix it.
Change-Id: I83670ad15bd53647d00d8c3c50b7d45174d7ddd1
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Add a new impedence table for low impendence
loads during headphone playback on WCD934x
audio codec.
CRs-fixed: 1112251
Change-Id: I8fd7b06882d08590b688cf07ac0fb331b65c7fb5
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Add device tree support for QRD630 EVT2 SKU1 board.
Change-Id: I8cea2b9b0995905297d69951694178dccfea65f7
Signed-off-by: Jiangen Jiao <jiangenj@codeaurora.org>
This patch removes the NULL check for item after
it is being accessed.
CRs-Fixed: 1108407
Change-Id: Ie57e4e2f0d626f8780c7424d295fa05bf4147ece
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
Add battery profile information for MTP platform and configure
CDP as battery less platform.
While at it, update the slave-id for temp-alarm peripheral on
PM660L.
CRs-Fixed: 1111867
Change-Id: Ife776c32c82bb9167a413fda62798000d5174170
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Add QTC800H device node (hbtp_input) for SDM660 QRD. Add AVDD
and VDDIO power rail for power on/off sync. Also add reset pin
configuration.
Change-Id: I0fb11c27ffae7a9eae55f8f9dc76d71929e68afa
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
Add support for ear-lineout concurrency for
wcd934x audio codec. Add LO path power up, power
down, EAR path power up, power down sequences.
Avoid using class H when both EAR and LO enabled.
CRs-fixed: 1107183
Change-Id: I60099381cbf042b795f703b673717ab5ff4bd88f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
s6e3ha3 wqhd command amoled panel will be used for msm8998 HDK,
so enable it for msm8998 HDK.
Change-Id: I83fcb7b9894e7faf1c719559223df45843ed52d7
Signed-off-by: Lei Chen <chenl@codeaurora.org>
G-Link commands are deferred until all the incoming data traffic is
handled. If the incoming data traffic is overwhelming, then this causes
the G-Link commands to pile up and be deferred forever.
Set a threshold to the number of deferred commands. Once that threshold
is reached, handle the deferred commands before handling further data.
Change-Id: I53dc3a7feb40a869030ae64e69a5359c6537e589
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Replace WARN with pr_warn so that stack trace is not printed with the
message.
CRs-Fixed: 1111653
Change-Id: Id1c7bbe8a528199261455ba7901e9df81913aef8
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Commit 573979dee2 ("perf: Add support for exclude_idle attribute")
registers an idle callback routine armv8pmu_idle_update. Currently
the idle update routine might be called before the pmu has allocated
all the per_cpu structures. This can result in a null pointer
reference. Change arm_pmu_device_probe to allocate the structures
via cpu_pmu_init() before the init_fn() call (which eventually does the
idle_notify_register call). Change a branch to out_free to
out_destroy as out_free doesn't cleanup what was allocated in
cpu_pmu_init(). Also have armv8pmu_idle_update check that the
structure is not null before using it.
Change-Id: Ie1198fc1783804c61467889c68656d6e8c9c9edf
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
Driver is dynamically allocating memory based on bNumInterface from
device configuration descriptor and stores interface context
information using bInterfaceNum. Device can advertise
bInterfaceNum >= bNumInterface which results into out of bound memory
access. Hence create a mapping between interface context index and
interface number. Use this mapping to find unused context index or
load the context information of an interface.
Change-Id: Ic99b10abe662088c2c030526135689f7c78c595a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>