diff options
author | Nicolas Boichat <[email protected]> | 2015-11-25 13:51:07 +0800 |
---|---|---|
committer | Lee Jones <[email protected]> | 2016-01-11 06:07:51 +0000 |
commit | 6d6e44a953161e4ce60d1fe805d165d8290ce9e8 (patch) | |
tree | f8ee3aeb287378449363c39526e13cfa51264e02 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
parent | 12ebc1370766e85253f0db4b21e77d5ffca4abed (diff) |
mfd: cros ec: Lock the SPI bus while holding chipselect
cros_ec_cmd_xfer_spi and cros_ec_pkt_xfer_spi generally work like
this:
- Pull CS down (active), wait a bit, then send a command
- Wait for response (multiple requests)
- Wait a while, pull CS up (inactive)
These operations, individually, lock the SPI bus, but there is
nothing preventing the SPI framework from interleaving messages
intended for other devices as the bus is unlocked in between.
This is a problem as the EC expects CS to be held low for the
whole duration.
Solution: Lock the SPI bus during the whole transaction, to make
sure that no other messages can be interleaved.
Signed-off-by: Nicolas Boichat <[email protected]>
Reviewed-by: Gwendal Grignou <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions