The number of ACL entries is currently not sanitized, which
can allow for unreasonably large ACL to be allocated for
later processing. Allowing for this to happen doesn't make much
sense, as there aren't any valid usecases that require a large
ACL, so restrict the number of ACL entries to 16. Also, while we're
here, fix up some of the error handling in a few places.
Change-Id: I5d1371ed180608486bcde1e208a36782986313af
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The condition that determines if we print an error after
failing to register for the mem-buf message queue checks
the return code against EPROBE_DEFER. This is not correct, as
error codes are negative, so fix the check.
Change-Id: I4ed03bde56c6edf66e0ffed060ec23a87a46be54
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The mem-buf device can handle memory from anywhere in the
system. This includes memory with a physical address above
32 bits, so configure the DMA mask for the mem-buf device
based on the system configuration.
Change-Id: If91bb6d8044e8e6f47994acd7e50633b46596808
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
In case DSP failed to respond to CPU command correctly, cvp driver
shall ignore the DSP error other than print error message. It shall
keep working normally.
Change-Id: Id33c0063b6326bc45527e2b4d60584045ca1e07c
Signed-off-by: George Shen <sqiao@codeaurora.org>
Return proper value when DEBUG_FS is disabled.
Change-Id: I6d46dcac6c6321e1a19468a81906e5f98976d29b
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
This change adds support for 64bit division on 32bit LE targets
using do_div() api.
Change-Id: I30247f514e13bcba80f707acccd65878de38dff5
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
We are using memory as buffer for SW USB mode. Too small
buffer could cause packet drop issue. Always set ETR
buffer to 32MB on SW USB mode to resolve this issue.
Change-Id: I222152f15c5cc61141b9a9eb18c1b2bb19714174
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Cpus_read_lock needs to be unlocked when setting up cpu
hotplug callback failed and exiting probe.
Change-Id: Ibbcd49d2e2d993c63b825697bc5799373f8a9a9e
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Add A619 GPU variant support to deal with different
feature set of A619 GPU.
Change-Id: I4df945af138d03868fc0b26d915145e564d056ad
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
USB PHY base already has an atomic notifier chain that clients can
register for using usb_register_notifier(). Use the call chain to
indicate cable connect and disconnect status for interested clients.
Change-Id: I73f7df8fbd14cb2ee99739d6f7b6cc946fb1783c
Signed-off-by: Jack Pham <jackp@codeaurora.org>
If a request is dequeued, the transfer is cancelled. Give back all
the started requests.
In most scenarios, the function driver dequeues all requests of a
transfer when there's a failure. If the function driver follows this,
then it's fine. If not, then we'd be skipping TRBs at different points
within the dequeue and enqueue pointers, making dequeue/enqueue pointers
useless. To enforce and make sure that we're properly skipping TRBs,
cancel all the started requests and give back all the cancelled requests
to the function drivers.
Change-Id: Ia344a480048383f3fd7c16afbc9f7b0062492879
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Patch-mainline: linux-usb @ 05/03/20, 13:24
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
The value printed on cpu idle exit is a return value from the PSCI call.
To avoid confusion, let's change the text to match the return value.
Change-Id: I8938287fb4d2887aa190af835618d1d0e9f18a99
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Check the FIFO real time fill status and only stop FIFO playing in
FIFO empty interrupt handler after confirming all FIFO samples have
been played.
Change-Id: I634f424c960893e22456734f30ae28f5030ca9e1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Add debugfs parameters per effect to enable brake and brake sine
waveform gain setting. Meanwhile, change to print the FIFO samples
with signed magnitude values so that they can be used offline to
plot pattern waveform.
Change-Id: Iaeeeedbba570333c8c4fa9793e2b4e9c1b4af09a
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Add interfaces to run calibration sequence and read out the closed
loop LRA frequency. With this change, the closed loop LRA frequency
can be read out using following commands:
echo 1 > /sys/class/qcom-haptics/lra_calibration
cat /sys/class/qcom-haptics/lra_frequency_hz
Meanwhile, correct the setting for direct play, it expects a 8-bit
value to represent the proportion of vmax instead of the actual vmax
voltage.
Change-Id: I9f3bfb978240ca853446dee4877d6ece4b465058
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
As a preparatory move to adding device attributes to the battery_debug
device, remove the dependency on DEBUG_FS for driver enablement and add
config guards in the driver instead.
Change-Id: I8fcb385a583564935ce472416552e25ca79f4a84
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
As a part of sysfs reading of descriptors/attributes/flags,
query commands should only be executed when hba's
power runtime status is active.
To guarantee this, add pm_runtime_get/put_sync()
to those paths where query commands are sent.
Change-Id: Ieb924efd3159c7422e50bb69ecf70b369ec72d89
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Gaurd the rule to re generate vmlinux only when CONFIG_TRIM_UNUSED_KSYMS
is set. Without this change, the vmlinux was generated twice as opposed to
Image generating only once.
Change-Id: I8370f64553b0ed7cb6536aabb1c68d77e5b58bf1
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
HFI error, stream corrupt, will not cause functionality issue.
Do not handle it as error case.
Change-Id: Ieebf003e2fc7bd76dc197e8ff5b8eea8d1a917b3
Signed-off-by: George Shen <sqiao@codeaurora.org>
Add error checks in place to catch the errors returned by the API,
instead of assuming success and proceeding.
Change-Id: I8cd8b826f22a9406e934afaedc88e630695fb187
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Allow the subsystem to use some extra memory allocated
after the end of the image, for the subsystem to use.
This is porting from Kona of commit SHA:1279fb070282.
Change-Id: I79d19c9e48b7893d10ac814fb42e5783651417b4
Signed-off-by: Nurit Lichtenstein <nuritl@codeaurora.org>
Add support for gcc_gpu_iref_en and gcc_ufs_1_clkref_en
in GCC for SHIMA.
Change-Id: I826cbbc8869816584c6113fd2c873b59085ec998
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
Add clock ids for gcc_gpu_iref_clk and gcc_ufs_1_clkref_en in GCC
for SHIMA.
Change-Id: Ib1b053e14a1063704789e12b0ea97c74a0634a78
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
Ensure that a valid compatible string match is obtained during probe
before reading any further device tree parameters.
Change-Id: Idd03cfce6cc2011052ffc7fb776d7be935214172
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>