commit d2450c6937018d40d4111fe830fa48d4ddceb8d0 upstream.
The UDC core uses req->num_sgs to judge if scatter buffer list is used.
Eg: usb_gadget_map_request_by_dev. For f_fs sync io mode, the request
is re-used for each request, so if the 1st request->length > PAGE_SIZE,
and the 2nd request->length is <= PAGE_SIZE, the f_fs uses the 1st
req->num_sgs for the 2nd request, it causes the UDC core get the wrong
req->num_sgs value (The 2nd request doesn't use sg). For f_fs async
io mode, it is not harm to initialize req->num_sgs as 0 either, in case,
the UDC driver doesn't zeroed request structure.
Cc: Jun Li <jun.li@nxp.com>
Cc: stable <stable@vger.kernel.org>
Fixes: 772a7a724f ("usb: gadget: f_fs: Allow scatter-gather buffers")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I5df62ff47afb05d0ed02a396d4c67de23160e6c4
Git-commit: d2450c6937018d40d4111fe830fa48d4ddceb8d0
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
When performing secure pool allocations, it's possible to
spuriously trigger pool refill attempts for the cached and
uncached pools. Fix this by adding a check to see if we're
performing a secure allocation or not, before refilling a pool.
Change-Id: I9a415a302ca92790e6a793784020b09dea6a86e1
[cgoldswo@codeaurora.org: Fix merge conflicts]
Signed-off-by: Chris Goldsworthy <cgoldswo@codeaurora.org>
Add node IDs for interconnect nodes that target display BCMs
and display specific voter.
Change-Id: If3c30c517417b2621b7ea768a7a61254cd0982d2
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Signed-off-by: Georgi Djakov <gdjako@codeaurora.org>
It is expected that PLLs are already enabled since
boot usually enable PLLs. clk_hw_get_name can't be
used in clock pre-registration stage since hw->core
will be NULL.
PLL already enabled warning is valid in enable path.
Change-Id: I9040426f2803e5a413d919b143de6fa59098b09b
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
Clients may need irq number to handle doorbell, e.g. to use a common irq
handler framework.
Change-Id: Iab64a0ce3330eab2b8fa052e9d8b9b9856510e6a
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
When the buffer pointed to by test_virt_addr is allocated, there
is no synchronization with respect to checking if it is necessary
to allocate the buffer. This can lead to various adversarial
scenarios, where multiple concurrent allocations of the same
buffer can occur, resulting in memory leaks.
To avoid these scenarios, make the check and allocation of the
buffer atomic with respect to other accesses to test_virt_addr.
Change-Id: Ie7e05930042b0bbf4bec0a4f1f5b325970023a5a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Add a new module to track iommu domains, including those which
may not currently be active. Supports multiple types of smmu
drivers.
Change-Id: Iacb98d823db8a87a2cf0868c467914847351950b
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[isaacm@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Remove this interface in preparation for a more modern replacement.
Change-Id: I84e6827167be54366bb78c6389131119ca6ccd33
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
[isaacm@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Disable this Kconfig in preparation for its removal.
Change-Id: Ifff0c6d2f92b56b67b31a9c4caa8dc4d42e1ee5c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This change adds snapshot of the db.txt.
This snapshot is taken as of commit <d8a1c5fd0d2d8>
(net: wireless: update db.txt for 60GHz band).
Change-Id: Ibadad5ccdb006fda79b4d494a1995fb77995b953
Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
This reverts commit c8c240e284.
Restore support for internal regulatory database. It is
needed since Android does not have CRDA.
Change-Id: Ie60e0f4dd450c6efbbc8643e01c946bc11b557ee
Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Enable QUPv3(Common driver, I2C, SPI, UART, I3C and GSI) drivers
support on Lahaina QGKI defconfig for perf image.
In addition also enable Slimbus satellite driver called NGD.
Change-Id: I0201cc33e98b06f56ce57e2be83a9e3466039c98
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Enable CPUFREQ-HW for enabling cpu frequency scaling.
Change-Id: I8fadd29676063361d8d4ea2237e9ec0e94ce8c85
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
qti_flash_led_prepare() API is used by flash clients (E.g. Camera) to
query maximum current available for flash. Add support for this API
which initially returns maximum current that is supported for flash
LED module (2000 mA). Also, add a sysfs parameter under switch devices
to show max available flash current.
Change-Id: I3aed009a0d7e0f34a6d05a45af34fcd0f37a6fe7
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>