Check that a valid pointer was passed in addition to non-zero
length to avoid dereferencing NULL pointers in functions
where data is copied from policy engine to the PD PHY.
Issues were identified with static analysis tool.
Change-Id: Ib42aad9e0d838eda4653e0bab9f074b3031983dd
Signed-off-by: Jack Pham <jackp@codeaurora.org>
This change migrates all the relevant files consisting of the mpq
demux driver and its plugins, including the addition of TSPPv1 HW
driver.
The snapshot is taken as of msm-3.18,
'commit e12c33f73fb0 ("Merge defconfig: Enabling confg INET_DIAG_DESTROY")'
In addition, introduce a few code changes to reduce checkpatch
warnings, typos and other style issues.
CRs-Fixed: 1057562
Change-Id: I76c9a9e44755a4a77e6cffb1dc07f5b28c8b34b8
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
This change migrates all the relevant files and updates made
to the dvb/demux framework, required for mpq demux driver.
The snapshot is taken as of msm-3.18,
'commit e12c33f73fb0 ("Merge defconfig: Enabling confg INET_DIAG_DESTROY")'
In addition, introduce a few code changes to reduce checkpatch
warnings, typos and other style issues.
CRs-Fixed: 1057562
Change-Id: Ia50bd897f6bf4c0ea7adc27d53a657090a09e229
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
For pre power off event, we want to check for rotator IDLE status and
generate a timeout event logging if the rotator is still in BUSY state.
For post power on event, rotator is reset to default HW state. It is
necessary to synchronize the SW timestamp with the HW register location.
CRs-Fixed: 1066270
Change-Id: I1041141b8dc80db0baec7ffe71a5c2a7b41e2cbb
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
Add fw_name sysfs entry in Goodix driver. This entry allows
user to read and write firmware name from sysfs.
Change-Id: I69585d757f1a6dc40834a99ee67c872bf6f3ea13
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Remove unnecessary, redundant and improper debug code
and replace them with standard debug calls in Goodix
driver files.
Change-Id: I763598585cee9705d6def8b7fe61d3206788912b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Currently L1 suspend is disabled. Superspeed capable
device needs to support L1 suspend in HS/FS/LS mode.
Also, add module parameter to disable L1 suspend in
High speed mode.
Change-Id: Ie8e7f3949d276325305799640f2775343bd6b9da
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Client Driven Prefetch is enabled by Default in HW
and SW whereas the recommended configuration is to
disable this feature.
This change makes sure that driver disables this
feature in msmcobalt and only enables the feature
for targets that need to keep it enabled.
Change-Id: I34c4feb0297838889cc2505eb3e08516165c5f2f
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Use extcon notification to select the maximum speed for host as well
as for peripheral mode. Notification handler sets maximum speed based
on the extcon cable state flag. This provides an option to start host
or peripheral in high speed only mode and leave ss phy suspended.
Change-Id: Ic48c661e68a293822d30cbd491e0fe6e46d385c9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add DAI nodes for MI2S and AUX PCM interfaces so the MI2S and
AUX PCM DAIs are available to audio CUP dai driver.
CRs-Fixed: 1047362 1047365
Change-Id: Ice01d5a829b6637c24822943ab393fb0809895cd
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
Reset the clock mux when cable is disconnected and suspended
to avoid leakage on vdd rail. Also, add missing clock reset
when usb cable connect is notified.
Change-Id: If5485379934a222f19f5dd20b8d4f44769470e8d
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
Add function name and buffer size in error messages during modem load
and authentication.This will help to debug mba/modem loading issues in
faster way.
CRs-Fixed: 993625
Change-Id: I2c99df5de44a6fd924ce7f5921db0e1cf3ba5d11
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
For some use cases, the calculation of the ib
bandwidth prevails over the ab bandwidth. For
such use cases, we must consider the ib as well
as the ab before reducing/increasing the vote,
so the correct sequence to apply the bw vote
is executed along with the HW changes.
Current driver only considers the ab bw and
misses to consider the ib bw during the decision
of when to apply the bw vote.
This change includes ib into the consideration of
when to apply the bw vote.
CRs-Fixed: 1057105
Change-Id: I0822f2e60c4ac22b1636d1d5988ba322dafcdb49
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>