Commit graph

884,342 commits

Author SHA1 Message Date
qctecmdr
a52031d060 Merge "soc: qti_battery_debug: Remove CONFIG_DEBUG_FS dependency" 2020-05-27 18:54:57 -07:00
Guru Das Srinagesh
665d78a15c pwm: qti-lpg: Support two-nvmem PPG scheme
On PMICs such as PM8350C, the lookup table containing the pattern data
is stored in a separate nvmem device from the one where the per-channel
data is stored.

Add two separate nvmems to handle this case while maintaining backward
compatibility for those targets that use only a single nvmem device.
Differentiate between the two schemes via an enum.

Change-Id: I2826a9acc8cee4d83b6cf2bf2d4d60b1ec3b67d7
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2020-05-27 18:39:07 -07:00
Can Guo
30632c34e3 scsi: ufs: Don't update urgent bkops level when toggle auto bkops
Urgent bkops level is used to compare against actual bkops status read
from UFS device. Urgent bkops level is set during initialization and might
be updated in exception event handler during runtime, but it should not be
updated to the actual bkops status every time when auto bkops is toggled.
Otherwise, if urgent bkops level is updated to 0, auto bkops shall always
be kept enabled.

Change-Id: I27e1ce00acc171c7c111dc3073ecdb23bd509851
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-05-28 08:56:32 +08:00
Fenglin Wu
6caf52bf7a input: qcom-hv-haptics: adjust T_LRA for auto RC CLK calibration case
When auto RC clock calibration mode is selected, the 32.768 KHz sleep
clock is used as the reference clock but the hardware module assumes
the reference clock is 32 KHz. This results in inaccuracy on output
drive frequency. Correct this by scaling the LRA period using a factor
of 1.024 in auto RC clock calibration case.

Change-Id: I1d4f6cb90c00ffbd9932928e64666a2122d8d4af
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-05-28 08:38:09 +08:00
Mao Jinlong
c13540d8f8 coresight: etm4x: Fix use-after-free of per-cpu etm drvdata
etm probe could be deferred due to the dependency in the trace
path chain and may be retried. We need to clear the per-cpu
etmdrvdata entry for the etm in case of a failure to avoid
use-after-free cases as reported below:

KASAN use-after-free bug in etm4_cpu_pm_notify():

[    8.574566] coresight etm0: CPU0: ETM v4.2 initialized
[    8.581920] BUG: KASAN: use-after-free in etm4_cpu_pm_notify+0x580/0x2024
[    8.581925] Read of size 8 at addr ffffff813304f8c8 by task swapper/3/0
[    8.581927]
[    8.581934] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G S      W         5.4.28 #314
[    8.587775] coresight etm1: CPU1: ETM v4.2 initialized
[    8.594195] Call trace:
[    8.594205]  dump_backtrace+0x0/0x188
[    8.594209]  show_stack+0x20/0x2c
[    8.594216]  dump_stack+0xdc/0x144
[    8.594227]  print_address_description+0x3c/0x494
[    8.594232]  __kasan_report+0x144/0x168
[    8.601598] coresight etm2: CPU2: ETM v4.2 initialized
[    8.602563]  kasan_report+0x10/0x18
[    8.602568]  check_memory_region+0x1a4/0x1b4
[    8.602572]  __kasan_check_read+0x18/0x24
[    8.602577]  etm4_cpu_pm_notify+0x580/0x2024
[    8.665945]  notifier_call_chain+0x5c/0x90
[    8.670166]  __atomic_notifier_call_chain+0x90/0xf8
[    8.675182]  cpu_pm_notify+0x40/0x6c
[    8.678858]  cpu_pm_enter+0x38/0x80
[    8.682451]  psci_enter_idle_state+0x34/0x70
[    8.686844]  cpuidle_enter_state+0xb8/0x20c
[    8.691143]  cpuidle_enter+0x38/0x4c
[    8.694820]  call_cpuidle+0x3c/0x68
[    8.698408]  do_idle+0x1a0/0x280
[    8.701729]  cpu_startup_entry+0x24/0x28
[    8.705768]  secondary_start_kernel+0x15c/0x170
[    8.710423]
[    8.711972] Allocated by task 242:
[    8.715473]  __kasan_kmalloc+0xf0/0x1ac
[    8.719426]  kasan_slab_alloc+0x14/0x1c
[    8.723375]  __kmalloc_track_caller+0x23c/0x388
[    8.728040]  devm_kmalloc+0x38/0x94
[    8.731632]  etm4_probe+0x48/0x3c8
[    8.735140]  amba_probe+0xbc/0x158
[    8.738645]  really_probe+0x144/0x408
[    8.742412]  driver_probe_device+0x70/0x140
[    8.746716]  __device_attach_driver+0x9c/0x110
[    8.751287]  bus_for_each_drv+0x90/0xd8
[    8.755236]  __device_attach+0xb4/0x164
[    8.759188]  device_initial_probe+0x20/0x2c
[    8.763490]  bus_probe_device+0x34/0x94
[    8.767436]  device_add+0x34c/0x3e0
[    8.771029]  amba_device_try_add+0x68/0x440
[    8.775332]  amba_deferred_retry_func+0x48/0xc8
[    8.779997]  process_one_work+0x344/0x648
[    8.784127]  worker_thread+0x2ac/0x47c
[    8.787987]  kthread+0x128/0x138
[    8.791313]  ret_from_fork+0x10/0x18
[    8.794993]
[    8.796532] Freed by task 242:
[    8.799684]  __kasan_slab_free+0x15c/0x22c
[    8.803897]  kasan_slab_free+0x10/0x1c
[    8.807761]  kfree+0x25c/0x4bc
[    8.810913]  release_nodes+0x240/0x2b0
[    8.814767]  devres_release_all+0x3c/0x54
[    8.818887]  really_probe+0x178/0x408
[    8.822661]  driver_probe_device+0x70/0x140
[    8.826963]  __device_attach_driver+0x9c/0x110
[    8.831539]  bus_for_each_drv+0x90/0xd8
[    8.835487]  __device_attach+0xb4/0x164
[    8.839431]  device_initial_probe+0x20/0x2c
[    8.843732]  bus_probe_device+0x34/0x94
[    8.847678]  device_add+0x34c/0x3e0
[    8.851274]  amba_device_try_add+0x68/0x440
[    8.855576]  amba_deferred_retry_func+0x48/0xc8
[    8.860240]  process_one_work+0x344/0x648
[    8.864366]  worker_thread+0x2ac/0x47c
[    8.868228]  kthread+0x128/0x138
[    8.871557]  ret_from_fork+0x10/0x18
[    8.875231]
[    8.876782] The buggy address belongs to the object at ffffff813304f800
[    8.876782]  which belongs to the cache kmalloc-1k of size 1024
[    8.889632] The buggy address is located 200 bytes inside of
[    8.889632]  1024-byte region [ffffff813304f800, ffffff813304fc00)
[    8.901761] The buggy address belongs to the page:
[    8.906695] page:ffffffff04ac1200 refcount:1 mapcount:0 mapping:ffffff8146c03800 index:0x0 compound_mapcount: 0
[    8.917047] flags: 0x4000000000010200(slab|head)
[    8.921799] raw: 4000000000010200 dead000000000100 dead000000000122 ffffff8146c03800
[    8.929753] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
[    8.937703] page dumped because: kasan: bad access detected
[    8.943433]
[    8.944974] Memory state around the buggy address:
[    8.949903]  ffffff813304f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[    8.957320]  ffffff813304f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[    8.964742] >ffffff813304f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[    8.972157]                                               ^
[    8.977886]  ffffff813304f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[    8.985298]  ffffff813304f980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[    8.992713] ==================================================================

Change-Id: I727afbac203b5b09fb7af729ad767669a86f3f27
Fixes: f188b5e76aae9 ( "coresight: etm4x: Save/restore state across CPU low power states ")
Reported-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200518180242.7916-22-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-Commit: 3f4943d422c5febbb3c764670011a00eb2a86238
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2020-05-28 07:45:39 +08:00
Amir Vajid
c054d9fc1c PM / devfreq: memlat: increase ratio_ceil limit
Increase the memlat ratio_ceil limit to 50k so
that it can cover a wider range of use cases.

Change-Id: I4785b418e160acc0dabe0ed98146c16336e1e923
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2020-05-27 16:29:55 -07:00
Siddharth Gupta
45c1f3c5da uapi: Fix QCOM headers to work with UAPI_HEADER_TEST
UAPI_HEADER_TEST ensures that all the uapi headers can be built as
standalone files which facilitates their use in the wider world. Fix
headers to use common kernel definitions.

Change-Id: Id20599d5cf1c20150ad90752bccdcf2c218b35da
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-05-27 14:56:27 -07:00
Jeevan Shriram
bb34b06d34 .gitignore: Ignore vendor devicetree directories from git
As the vendor devicetree directories are softlinked, ignore them through
git. Remove "/" in the end for arm64 for properly ignoring.

Change-Id: Ib6c9c31ecd2322f93609f72cbfb0143bd042a649
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2020-05-27 14:44:33 -07:00
Satya Rama Aditya Pinapala
5b0306566e aarch64: ABI: add symbols to qcom whitelist
Change adds unmap_kernel_range, get_vm_area, and
ioremap_page_range to qcom whitelist and update the
ABI snapshot.

Change-Id: I34e3a976f68281b7937719f62379002cb7bf6d93
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-05-27 14:15:52 -07:00
Harshdeep Dhatt
9bfbf55881 msm: kgsl: Add BICUBIC registers to power up register list
These registers are driver owned and need to be saved/restored
across preemption and IFPC.

Change-Id: Ic9ccff0a047fb5566a7c20e860aefc9dd87284a0
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-05-27 13:31:14 -07:00
Asutosh Das
5dcd3204a9 scsi: ufshcd: Move to ufshcd core
Hereon use upstream ufshcd core.

Change-Id: I814921a5a30f27cf6911e9a99c952790888f7e56
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-27 10:20:57 -07:00
Asutosh Das
8fa52ab695 scsi: ufshcd: Turn-off Vdd-hba during suspend
Turn-off Vdd-hba of ufs when link is not off.
This will not prevent CxPC.

Change-Id: I70dc95a2b4f2001ce052877f698930adb6b4b72b
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-27 10:20:57 -07:00
Asutosh Das
a546e4ea24 scsi: ufshcd: Add a wmb before sending uic cmd
Adds a wmb

Change-Id: Iaf69210a2451227db040ec6dea57aeb09c284635
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-27 10:20:57 -07:00
Asutosh Das
0695d03ab9 scsi: ufs: remove unnecessary memset
Remove memset

Change-Id: I24fb8bc48679fd3b9801ff10d7557cea2366d13a
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-05-27 10:20:57 -07:00
Umesh Vats
ad03fb1739 bluetooth: add support for retrieving power resource values
Added support for retrieving and logging values for various power
resources used by bluetooth driver.

Change-Id: Ia92d6570ef93ca76fc68546e6466df80ec1cf397
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
2020-05-27 09:49:46 -07:00
Hemant Kumar
e3df032c05 arm64: defconfig: Enable config to add QTI specific code
Enable PCI_QTI config flag to add QTI specific code to upstream
PCI driver.

Change-Id: Ifb066c22faddaef96eaba57c14cc56ac9e79245e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-05-27 09:31:47 -07:00
Yue Ma
df93accff0 cnss2: Set no_d3hot flag to avoid PCIe framework saving config space
CNSS driver is already saving PCIe config space as part of suspend and
resume. There is no need for PCIe framework to do it again. This is
able to improve suspend/resume KPI.

Change-Id: I940959ec93c435b9fd711c5e75a8bbc40ec916ad
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2020-05-27 09:31:42 -07:00
Raghu Ananya Arabolu
eeb252147a msm: kgsl: 'qcom,kgsl-3d0' device does not need to get regulators
The vddcx-supply and vdd-supply properties are not defined by the
'qcom,kgsl-3d0' device in GPU DTSI since the corresponding regulators
are not required by the device. Invoking devm_regulator_get for vdd and
vddcx supply results in obtaining a dummy supply. Only invoke
devm_regulator_get for 'qcom,kgsl-3d0' device when the corresponding
supply properties are defined in the DTSI.

Change-Id: Ie3ae363e5644ff123bc984359abef9af2dc102d9
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
2020-05-27 09:06:56 -07:00
qctecmdr
17439c2c67 Merge "soc: qcom: Add VTCM handling to cdsprm driver" 2020-05-27 08:45:22 -07:00
qctecmdr
edebc0ccbb Merge "Revert "arm: dma: Allow CMA pages to not have a kernel mapping"" 2020-05-27 08:45:22 -07:00
Susheel Khiani
410c74bab1 Kconfig: Add menu choice option to reclaim virtual memory
Add menu choice options for reclaiming virtual
memory belonging to any subsystem expected to have
a lifetime of the entire system. By default virtual
memory is not reclaimed.

Change-Id: I1b8a1492062bb9532700122878618989e5148647
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2020-05-27 08:06:31 -07:00
Charan Teja Reddy
d18971d0d4 dma-mapping: add i/o coherency support for 32bit
Add the I/O coherency support for devices that can issue a cache
coherent transactions.

Change-Id: I01b1dca4d72395df41ac5b882dcd3fd75a682b8c
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Vishwanath Raju K <vishk@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2020-05-27 23:01:54 +08:00
Bavyasritha Alahari
694724873c soc: qcom: Add VTCM handling to cdsprm driver
VTCM handling in cdsp request manager, reads the device
tree as part of platform driver registration notifier and
sends the data to guestos driver via rpmsg channel and
exposes methods to override partition mapping via
debugfs node.

Change-Id: Ie28e750f0a27f35ec114278aa0b87952ecda70f6
Acked-by: Sreekanth Gande <sgande@qti.qualcomm.com>
Signed-off-by: Bavyasritha Alahari <alahari@codeaurora.org>
2020-05-27 16:25:46 +05:30
Qingqing Zhou
cce1d3c648 Revert "arm: dma: Allow CMA pages to not have a kernel mapping"
This reverts commit 0b06cd5ca5.

The meaning of DMA_ATTR_NO_KERNEL_MAPPING changes, it will not remove
kernel mapping, just return the page pointer directly, so make 32 bit
align with 64 bit.

Change-Id: I905f2faa11681dff745191928345fef00c9ec796
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
2020-05-27 18:17:19 +08:00
qctecmdr
8f9e82655d Merge "net: qrtr: Ignore ENODEV failures in ns" 2020-05-27 00:13:42 -07:00
qctecmdr
c05ee13d5e Merge "NFC: Enable NFC driver in the GKI build" 2020-05-27 00:13:42 -07:00
qctecmdr
c606037c2d Merge "mm: Remove shrink_page" 2020-05-27 00:13:41 -07:00
George Shen
917cd8adfa msm: cvp: stop session queue when session closed
There is a chance CVP application closes a session without
stopping it first. The change will ensure there is no resource
leakage in above case.

Change-Id: I2b93af11a47eda8de81f3d8c0f054e3319e48802
Signed-off-by: George Shen <sqiao@codeaurora.org>
2020-05-26 23:48:03 -07:00
Jack Pham
7a6428be4b usb: dwc3: gadget: Avoid spuriously printing NO_PULLUP in log
This log message can come unnecessarily particularly when the
controller is operating in host mode and the xHCI HCD driver
is primarily handling interrupts. As there should be no gadget
specific events there should not be any value showing in the
GEVNTCOUNT registers so dwc3_interrupt() should normally return
silently. Only print the "NO_PULLUP" log in case there are
new/pending events and the gadget is in halted state.

Change-Id: I4e5040409a14f18d454833fd67d41ca5d0f13501
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-05-26 23:33:16 -07:00
Jack Pham
ad718dac47 usb: dwc3: gadget: Rate limit ep_queue() error message
In case of a soft disconnect the controller will be halted
via dwc3_gadget_run_stop(). However, a function driver might
be unaware of this and could still be continuing to call
usb_ep_queue() in a different process. Since pullups_connected
is false, this results in a dev_err() to be printed and could
happen quite frequently before the function's disconnect or
unbind callbacks are finally notified. Rate limit this error
message to avoid flooding the kernel log.

Change-Id: If5299cdfd7eee13bb51a8cf29917d9674d0a7c9b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2020-05-26 23:33:06 -07:00
Hareesh Gundu
b603804f80 defconfig: holi: Enable GPU driver
Enable the GPU driver and the dependent driver to support
graphics functionaltiy for holi SOC.

Change-Id: I37c5fb748af0d41e8351c42e1d0bd623f6620389
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-05-26 22:10:15 -07:00
Sujeev Dias
259c6481eb pci: framework: disable auto suspend link
Some endpoint devices do not go into D3hot during suspend.
By pass auto suspend if device do not allow D3hot. In order
prevent ABI breakage warp this QTI specific change under
CONFIG_PCI_QTI.

CRs-Fixed: 2418347
Change-Id: Ida6e4a2b60b7d08932bfff79144afd67787ca0f2
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-05-26 22:03:44 -07:00
Karthik Poosa
eca0dbcda6 NFC: Enable NFC driver in the GKI build
Add NFC I2C driver as loadable module.

Change-Id: Ib6188940c850f63a458b6bf0eba6b35a2b898362
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
2020-05-26 20:41:41 -07:00
qctecmdr
58f1b8ccb0 Merge "ARM: dts: msm: Create softlink for vendor specific dt" 2020-05-26 19:58:21 -07:00
qctecmdr
32e550cb6b Merge "soc: qcom: socinfo: Add LAHAINAP's soc-id" 2020-05-26 19:58:21 -07:00
qctecmdr
29fc359d04 Merge "aarch64: ABI: Remove slim_* APIs from whitelist" 2020-05-26 19:58:21 -07:00
qctecmdr
44978760c1 Merge "thermal: adc-tm: Ensure valid match data is obtained" 2020-05-26 19:58:20 -07:00
qctecmdr
e7b04640ad Merge "net: qrtr: Fix error pointer vs NULL bugs" 2020-05-26 19:58:20 -07:00
Chris Lew
e5bbd357d9 net: qrtr: Ignore ENODEV failures in ns
Ignore the ENODEV failures returned by kernel_sendmsg(). These errors
mean either the local port has closed or the remote has gone down.
Neither of these scenarios are fatal and will eventually be handled
through packets that are later queued on the control port.

Also improve the logging messages to print the error code returned by
kernel_sendmsg().

Change-Id: Ibcebd1f44a3fbc87febaa84b11e05675663da5a0
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-05-26 10:16:56 -07:00
Chris Lew
617ffc4bf4 net: qrtr: Add pr_fmt to ns
Add pr_fmt to the ns file for easier error log matching.

Change-Id: I711735ee60c1fd9fde25850b8e625bb44c04f4c4
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-05-26 10:16:42 -07:00
qctecmdr
08a7059080 Merge "arm: dma: Allow CMA pages to not have a kernel mapping" 2020-05-26 09:46:03 -07:00
qctecmdr
e9fb0680f4 Merge "msm: adsprpc: Fix NULL pointer error when DEBUG_FS is disabled" 2020-05-26 09:46:03 -07:00
qctecmdr
9db02bb1ad Merge "msm: rdbg: Add snapshot of remote debugger driver" 2020-05-26 09:46:02 -07:00
qctecmdr
89194b4b74 Merge "msm: kgsl: Use DMA APIs for cache operations" 2020-05-26 09:46:02 -07:00
qctecmdr
7dbb2a281f Merge "msm: cvp: handles dsp error more reliably" 2020-05-26 09:46:02 -07:00
Raghavendra Rao Ananta
c6146aa00d soc: qcom: socinfo: Add LAHAINAP's soc-id
Add "LAHAINAP", that has an msm-id of 439, to the list of
soc-ids supported.

Change-Id: I9e9a98bb66b541e654de6ad9e9a8ec9d2bd5cd03
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-05-26 09:21:28 -07:00
Naveen Yadav
ebfe3f7908 clk: qcom: clk-alpha-pll: Add support for Lucid EVO PLL print registers
Lucid EVO PLL print registers are required to get the PLL values from
the debugfs, thus add support for the same.

Change-Id: Ia5c43a032e8e844c41d4ec2ff9097bac6a08bfa2
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-05-26 20:11:58 +05:30
Naveen Yadav
938fe46469 clk: qcom: clk-alpha-pll: Add support for fixed Lucid EVO PLL
Lucid EVO PLL is required to be supported from HLOS clock controller,
thus add support for fixed lucid evo pll ops.

Change-Id: I09f89af4e9f3e85649a957872e6bc49e95a94679
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-05-26 19:43:36 +05:30
qctecmdr
113813fd26 Merge "arm: make default iova alignment as 2mb" 2020-05-26 05:19:43 -07:00
Mohammed Nayeem Ur Rahman
9fb522a577 msm: adsprpc: Fix NULL pointer error when DEBUG_FS is disabled
Add extra checks to avoid NULL pointer derefernce when DEBUG_FS
is disabled.

Change-Id: I46ff3b8b27b53ff5bb5dead78ccdefc410435dda
Acked-by: Tadakamalla Krishnaiah <ktadakam@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-05-26 04:35:23 -07:00