Commit graph

893,362 commits

Author SHA1 Message Date
qctecmdr
a38c0138a5 Merge "usb: gadget: composite: Allow vbus_draw() to be called with 0mA" 2020-12-18 08:04:01 -08:00
qctecmdr
f2ce7775cb Merge "cnss2: Fix a print error in time sync" 2020-12-18 08:04:01 -08:00
qctecmdr
b6116d39ae Merge "cnss2: Add fallback support for device specific path loading" 2020-12-18 08:04:01 -08:00
qctecmdr
0072068a83 Merge "msm: Adding config for r8125 driver" 2020-12-18 08:04:00 -08:00
qctecmdr
1a0f89937c Merge "qseecom: add CONFIG_COMPAT condition" 2020-12-18 08:04:00 -08:00
qctecmdr
a33823f357 Merge "cnss2: Make sure the write to remap window register take effect" 2020-12-18 08:04:00 -08:00
qctecmdr
b66e419089 Merge "msm: cvp: Set correct CVP NoC QoS values" 2020-12-18 03:37:16 -08:00
qctecmdr
bf2fc7d1c7 Merge "msm: kgsl: Dump PWR_COL_PREEMPT_KEEPALIVE on wait for lowest idle timeout" 2020-12-18 03:37:16 -08:00
qctecmdr
9215a33e14 Merge "trace: Add minidump support for ipc log buffers" 2020-12-18 03:37:16 -08:00
qctecmdr
ab3fb357dd Merge "serial: msm_geni_serial: Correct start rx sequence" 2020-12-18 03:37:15 -08:00
qctecmdr
0b2e862c96 Merge "netfilter: contrack: Adding check for SIP/2.0" 2020-12-18 03:37:15 -08:00
qctecmdr
94453399c7 Merge "cnss2: Group dev_boot debugfs handling by contexts" 2020-12-18 03:37:15 -08:00
qctecmdr
33249f65db Merge "clk: qcom: Add debug cc clk measure nodes for SDXNIGHTJAR" 2020-12-18 03:37:14 -08:00
qctecmdr
7d2263eaa2 Merge "pinctrl: qcom: Add flexibility to disable the wakeup capability for Yupik" 2020-12-18 03:37:14 -08:00
Rohit kumar
9cf5070f05 asoc: Update supported rate and format for dummy dai
Add support for 384KHz sample rate and S24_3LE
bitwidth for dummy dai.

Change-Id: I7d20311e58f6ec1f444a46908fd4827be32bed17
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2020-12-18 16:58:14 +05:30
Sriharsha Allenki
bbbaf52d01 usb: dwc3: Prevent use after free of dwc_ipc_log_ctx
The dbg_event function call in dwc3_msm_remove after the
child dwc3 device is removed is resulting in use after
free of dwc_ipc_log_ctx.
Even though the dwc_ipc_log_ctx is set to NULL in
dwc3_remove, the value is reset once the core platform
device is removed because the dwc3 is allocated using
devm_kzalloc. This call ensures that the memory is freed
up once the device driver is de-registered.
Fix this by calling the dbg_event before de-registering
the core driver.

Change-Id: Ib2cc3d233ea0fd4a1523cae23f57d3cb3753a53f
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2020-12-18 01:30:04 -08:00
Chandana Kishori Chiluveru
cbf6ccd429 usb: gadget: Fix issue in config_desc with OS descriptor handling
If a gadget provides "OS descriptors" from the userspace then composite
gadget driver designates only one configuration which has OS descriptor
support to be used always with the hosts. With this we are seeing
enumeration issues in multi-config compositions where device does not
allowing Host to identify preferred configuration to choose.

Hence change the logic in config_desc for handling OS descriptor
configuration.

Change-Id: I5daa7631f9f2d634ee6b4b377b8d66283b21a497
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-18 01:24:46 -08:00
Chandana Kishori Chiluveru
cd8dbdaeb5 usb: gadget: Avoid NULL pointer dereference during OS descriptors handling
With multi-config compositions some hosts can bind the configuration
incorrectly and sending os descriptor request on invalid interface.
This could cause accessing NULL pointer and results in panic.

Fix this by bailing out from the OS descriptor setup request handling
if the interface is NULL.

Change-Id: I65f01b876a46b907eb883e48878fc081860b0753
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-18 01:12:22 -08:00
Mohammed Siddiq
a1b300e054 icnss2: Add code to download BDF from device specific path
Add code to download bdf from device specific path, if the
file is not present then it returns error.

Change-Id: I6358be8a9e09c0caa5f4478d08f1959e0a0f1c44
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2020-12-18 14:12:17 +05:30
Naina Mehta
34767acee9 soc: qcom: socinfo: Add soc information for YupikP
Add SOC ID to support socinfo for YupikP platform.

Change-Id: I6f74f83d058c50ae276f7930b63f19418dd6e2ad
Signed-off-by: Naina Mehta <nainmeht@codeaurora.org>
2020-12-18 13:26:38 +05:30
Srinivasarao P
cb91f25930 Merge android11-5.4.61+ (e0b1644) into msm-5.4
* refs/heads/tmp-e0b1644:
  BACKPORT: dmabuf: fix NULL pointer dereference in dma_buf_release()
  ANDROID: mm/memblock: export memblock_end_of_DRAM
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: x86: configs: gki: add missing CONFIG_BLK_CGROUP
  ANDROID: ABI: Update allowed list for QCOM
  ANDROID: kthread: break dependency between worker->lock and task_struct->pi_lock

Change-Id: Ia1e6fdce120a69891dad59858a1207211f05fbe7
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2020-12-18 12:47:46 +05:30
Chandana Kishori Chiluveru
5fa858f5d4 usb: gadget: Send BRK signal to host on flow disable ioctl
Currently in f_cdev driver, we are not handling the TIOCM_CTS
signal generared by SIO_IOCTL_INBOUND_FLOW IOCTL. Hence we
are not able to send BRK signal to the host and it keeps
sending data leading to data loss.

Fix this by handling TIOCM_CTS in the driver.

Change-Id: If8e4774e3e0772cb7189f3400d7e53e258b7d5a3
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 22:01:05 -08:00
Raghavendra Rao Ananta
ac6baffb12 arm: generic_defconfig: Enable CONFIG_BLK_INLINE_ENCRYPTION
Enable CONFIG_BLK_INLINE_ENCRYPTION in generic defconfig
to avoid build errors.

Change-Id: I9045700c5df5d788b23aa087d959767ed713b1c0
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-12-17 14:20:18 -08:00
Raghavendra Rao Ananta
d416373239 netfilter: Fix build error
The commit <d30948cecd> (netfilter: Changes to handle segmentation in
SIP ALG) breaks the build by defining the last argument of the function,
sip_tcp_skip_process (s16 *tdiff) incorrectly. Hence, fix the type by
changing it to a variable.

Change-Id: I5a336bd7aa47a649c24d7c34090f138b2e772bdc
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-12-17 14:20:18 -08:00
Ronak Vijay Raheja
3c98d45a86 usb: gadget: Resolve NULL pointer dereference in composite_disconnect
There is a race possibility in android_disconnect and
configfs_composite_unbind while using cdev leading to a NULL pointer
dereference in composite_disconnect. Combine android_disconnect with
configfs_composite_disconnect and remove the android_disconnect function.
configfs_composite_disconnect already has a gi->spinlock in place to
prevent the race condition.

Change-Id: Idfdebaf69f3aa68d90b55bffd7c2e04410c5a47f
Signed-off-by: Ronak Vijay Raheja <rraheja@codeaurora.org>
2020-12-17 11:24:13 -08:00
Mukesh Ojha
0b2dab507d pinctrl: qcom: Add flexibility to disable the wakeup capability
By default, the system firmware enables the mpm wakeup functionality
of all the supported GPIOs. However, certain usecases demand that
this capability be disabled on certain gpios. Hence, provide a
generic interface to disable the GPIOs as needed.

Change-Id: Ib36569d422d2336a81d71e451ef47196c956c3a5
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-12-17 22:31:47 +05:30
Chandana Kishori Chiluveru
326c88e3e0 usb: gsi: Allow suspend upon previous suspend failure in gsi_suspend
Driver marks func_is_suspended flag to true and queue suspend work in
gsi_suspend. suspend_work may fail the suspend if the LINK is not in U3.

During host hibernation testing gsi_suspend failing as LINK is not in U3
and next time when bus suspend initiated driver checking for
func_is_suspended flag and bailout the suspend with out queuing suspend
work. This causes a mismatch of usage count and usb not entering to
low power mode.

To fix this issue, Check for the state in gsi_suspend. If the state is
!= suspended or != suspend_in_progress then don't bail out the suspend.

Change-Id: Iade9ba330b232261e205cd821ef42053297befbb
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 21:46:40 +05:30
Ashish Kori
8b7a67cfa7 spi: spi-msm-geni: Propagate missing SPI Slave change from 4.14 to 5.4
Propagate following change from 4.14 to 5.4 for SPI SLAVE driver.
'commit 3c7e85615a1d64 ("spi: spi-geni-qcom: Restrict SPI
responder to transfer mode 1")'.

Change-Id: I6170a0e021cc0a09a2bc9ee26dfc504ee85bbf91
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-17 21:19:33 +05:30
Ashish Kori
36f8c42cdc spi: spi-msm-geni: Propagate a change from 4.14 to 5.4
Propagate following change from 4.14 to 5.4 for SPI driver.
'commit 60dc9d0568e31 ("spi: spi-geni-qcom: Suspend SPI slave
after timeout")'.

Change-Id: I08c7c2a861285ce45a28ea1aab1db9a99016a35e
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-17 21:17:30 +05:30
Ashish Kori
c759cdb5df platform: msm-geni-se: Propagate missing change from 4.14 to 5.4
Propagate following change from 4.14 to 5.4.
'commit f9f1b07419520b ("platform: qcom-geni-se:
Correct macro definition of GENI_IO_MUX_1_EN")'.

Change-Id: I6d5bd2b3e7252ad272d88352a52dc005e4368af1
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-17 20:27:31 +05:30
Ashish Kori
09f97a40af platform: msm-geni-se: Propagate missing change from 4.14 to 5.4
Propagate following change from 4.14 to 5.4.
'commit ab708589654b ("platform: qcom-geni-se: Correct macro definition")'.

Change-Id: I7fbc1bfad0788ab90f62b66ecf2e2d0c8ec82485
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-17 20:16:02 +05:30
Chandana Kishori Chiluveru
4d8eb15487 usb: gadget: Mark notify_modem as NULL on usb_cser_disconnect
On some targets, f_serial switches transport path from
char_bridge to TTY in DUN+SoftAP scenario. As a part of that,
we call usb_cser_disconnect but notify_modem callback is still
marked as usb_cser_notify_modem. Then on getting a SETUP req
from host PC, usb_cser_notify_modem is called which can lead
to NULL pointer dereference because port_usb is NULL.

Fix this by marking notify_modem callback as NULL on
usb_cser_disconnect.

Change-Id: I4470030cde6f38b905f7a88e16ed9f261a8954d6
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 06:41:07 -08:00
Chandana Kishori Chiluveru
29d7fb35e0 usb: gadget: Send DSR linestate on DTR high from host
When the host PC sends a DTR high during DUN call,
it expects to get a DSR signal from the modem in reply.
Add necessary support for that.

Change-Id: If46c4b75fa6210c2b15cd2880bc93461fa3a4e89
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-17 06:31:38 -08:00
Jagadeesh Kona
135a5c5608 clk: qcom: gcc-yupik: Remove .name for all external clocks
Cleanup .name for all external clocks as these clocks are
mapped using .fw_name and references to their phandles in
GCC DT node.

Change-Id: I8b4a0600749da29594f5efc9406237945d2c3a1e
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2020-12-17 18:20:51 +05:30
himta ram
9067213ba6 RTC6226: Configure Vdd with supplied load in NPM
Configure the Vdd regulator with supplied load
in NPM mode. Configure the Vdd regulator with 0
load in LPM mode.

Adding support for reading load value for Vdd regulator from
device tree. If this property is not present, no explicit vote
required for load.

CRs-Fixed: 2840599
Change-Id: Ic2f12d9f9ce3e6a9ba6b58888cc5c202a74d8cc3
Signed-off-by: himta ram <hram@codeaurora.org>
2020-12-17 17:18:02 +05:30
Pankaj Gupta
4128054b46 msm: kgsl: Add support for A635 GPU
Add support to deal with different feature set of A635 GPU.

Change-Id: I8add6e83624f833a937364995da9431b02a3f6c4
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
2020-12-17 03:44:16 -08:00
Prakash Gupta
285f7f6b94 arm64: defconfig: enable cma debugfs
Enable CONFIG_CMA_DEBUGFS for QGKI. This enables read only nodes on QGKI
build.  Enable CONFIG_CMA_ALLOW_WRITE_DEBUGFS for debug config. This
enables writeable cma debugfs node for debug build.

Change-Id: Ia40eea08c42b5c4d29691ea354411216c03e60a7
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-17 15:29:00 +05:30
Prakash Gupta
1a394f02c0 Revert "Revert "mm: cma: make writeable CMA debugfs optional""
This reverts commit 8d0b09d4f2.
With CONFIG_DEBUG_FS enable for non-debug build, we can enable read only
CMA debugfs nodes on all builds.

Change-Id: Ia4a0a9431e27ec908feaae54dbe622a1d985958b
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-12-17 15:22:06 +05:30
Ashish Kori
0fcac2da17 spi: spi-msm-geni: Propagate SPI Slave MISO<->MOSI connection change
Propagate Propagate following change from 4.14 to 5.4 for SPI driver.
'commit 005c3a05b41c3ea ("spi: spi-geni-qcom: Allow MISO<->MOSI
connectivity for slave pins")'.

Change-Id: I66ca5c2f851f8e3d1485580486cd2900a3756341
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-16 23:08:56 -08:00
Rama Krishna Phani A
10386109e9 spi: spi-msm-geni: Add spi slave mode support to QUPv3
Propagate SPI slave change from 4.14 to 5.4.
'commit db7d4f6203927b ("spi: spi-geni-qcom: Add spi
slave mode support to QUPv3")'.

Change-Id: I353198be51525572d8916ebbaab66db8e797c245
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Signed-off-by: Ashish Kori <akori@codeaurora.org>
2020-12-16 23:08:29 -08:00
Neeraj Upadhyay
188f75cf17 pinctrl: qcom: Add flexibility to disable the wakeup capability for Yupik
By default, the system firmware enables the mpm wakeup functionality
of all the supported GPIOs. However, certain usecases demand that
this capability be disabled on certain gpios. Hence, provide a
generic interface to disable the GPIOs as needed.

Change-Id: I147629e0126b2eb41c645de03958ef480fd5d7d0
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-12-17 12:12:57 +05:30
Neeraj Upadhyay
84f5b6aef8 pinctrl: qcom: Update configuration for Yupik
Update pinctrl driver for Yupik, to match latest
configuration.

Change-Id: I067fb20535dd144bf07f1253dbf9b498de8bb123
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-12-17 12:06:56 +05:30
qctecmdr
f838988d41 Merge "sched/walt: Improve the scheduler" 2020-12-16 22:16:34 -08:00
qctecmdr
e2539ffd27 Merge "soc: qcom: cmd-db: Fix compilation error when CMD_DB is disabled" 2020-12-16 22:16:34 -08:00
qctecmdr
10159b228d Merge "usb: dt-bindings: Add USB QMP PHY registers definition" 2020-12-16 22:16:33 -08:00
qctecmdr
be3525da72 Merge "arm64: defconfig: enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI" 2020-12-16 22:16:33 -08:00
Ram Prakash Gupta
03454835bd mmc: core: Fix clk scaling when card max freq below 50MHz
When card max supported clk frequency is less than 50MHz,
driver registers scale up frequency as 0 and scale down
frequency as max card supported clk frequency. So read/write
during high load performace is dropping.

Ideally in this scenario, clk scaling could be disabled by
skipping registration with devfreq, but userspace might see
scaling supported for some card and its not supported for another
which might create confusion. Hence keeping low and high, clk
scaling frequency as same, and scaling would be skipped when
devfreq attempts to scale the clk.

Change-Id: I25977bdff4275c4ebec7309952029f43e0d2455f
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
2020-12-16 21:51:02 -08:00
Chandana Kishori Chiluveru
2b186e7ffc serial: msm_geni_serial: Perform Abort sequence for cancel failure
Currently driver performing Abort sequence only when we seeing timeout
for Cancel interrupt. When there is a race condition between rx data
coming into rx fifo and a cancel_s_cmd is given. The rx data will end
up consuming the rx dma buffer mapped for cancel command and due to
this geni secondary sequencer will be in active state even after
cancel command.

This changes is to check for geni status after cancel operation. If geni
is active perform abort sequence.

Change-Id: I1b463284b48eb940de342da6df9233157d48f469
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-12-16 20:50:59 -08:00
Yuanfang Zhang
9f17bb73d5 coresight: Add snapshot of Coresight Fuse driver
Add snapshot for coresight fuse driver from msm-3.18
commit cf126d1be1a("ANDROID: sdcardfs: Add option to
not link obb"). Make necessary change to adopt coresight
framework change.

Change-Id: If0c677c9e7cb33c2c1656fb458649f0b4c069a00
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
2020-12-17 10:54:45 +08:00
Fenglin Wu
a2451a5b29 input: qcom-hv-haptics: toggle HAPTICS_EN bit before playing FIFO
When FIFO samples are played back to back along with SWR mode, there is
a chance that FIFO samples won't get flushed out if they're not fully
played before FIFO mode is stopped. When this happens, FIFO samples gets
accumulated leading to overflow after which FIFO mode stops working.
Only way to recover from this is to toggle HAPTICS_EN_BIT before
starting FIFO mode playing again. While at it, add logs to print out
FIFO real time fill status which is helpful for debugging.

Change-Id: I07cd9ac34ad5ccfe7011850db554ba727f568482
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-12-17 10:10:45 +08:00