3 Commits

Author SHA1 Message Date
Dilip Kota
2f28e456fd slim-msm: Use Dma mapping APIs in interrupt context
Call DMA map/unmap for DMA buffer mapping.

Change-Id: Iec2e506cb55874913090ddc50b70cdcd0482cae0
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
2018-03-02 00:07:15 -08:00
Karthikeyan Ramasubramanian
574dd0057c slimbus: Fix the type usage of transaction id
Transaction ID with a type of 'u8' will always have the range 0 to 255.
Checking it against the condition <= 255 and then incrementing it will
always return true and lead to an overflow.

Fix this behavior by updating the type of transaction ID to unsigned int
and use a preprocessor macro instead of magic number to check for the
upper threshold.

Change-Id: I43ec1d3dd2cda280292d416d422c298d9f8ebf6a
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2017-12-15 10:37:08 -07:00
Karthikeyan Ramasubramanian
6f1787348a slimbus: Add snapshot of slimbus driver.
This snapshot is taken as of msm-4.9 'commit <e8a6a75991d4>
("Merge "usb: core: Add usb_set_interface_timeout API"")'.

Change-Id: I8c4b1f9c7d2e288e82c086c64d1a07baf77c6015
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2017-12-15 10:37:07 -07:00