Skip to content
Commit db58dc54 authored by Dhruva Gole's avatar Dhruva Gole Committed by Jagan Teki
Browse files

spi: spi-mem: perform odd len check only while writing data



in spi_mem_dtr_supports_op we have a check for allowing only even number
of bytes to be r/w. Odd bytes writing can be a concern while writing
data to a flash for example because 8 DTR mode doesn't support it.
However, reading ODD Bytes even  though may not be physically possible
we can still allow for it because it will not have serious implications
on any critical registers being overwritten since they are just reads.

Cc: Vaishnav Achath <vaishnav.a@ti.com>
Cc: Pratyush Yadav <pratyush@kernel.org>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: default avatarNikhil M Jain <n-jain1@ti.com>
Signed-off-by: default avatarDhruva Gole <d-gole@ti.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 963b5da3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment