OSDN Git Service

spi: spi_qsd: serve set_cs call only for valid device status
authorMukesh Kumar Savaliya <msavaliy@codeaurora.org>
Tue, 13 Jun 2017 12:03:00 +0000 (17:33 +0530)
committerMukesh Kumar Savaliya <msavaliy@codeaurora.org>
Thu, 29 Jun 2017 10:20:38 +0000 (15:50 +0530)
commit61b9e193aafe4bb3eac6f1804a559916a7117410
treebb0dbfb356bee3aeb0adcc34b14d0e978150e2f5
parent085ef3652a1022611d7696837604953a55775db9
spi: spi_qsd: serve set_cs call only for valid device status

when set_cs() is called by framework, first check the device suspend
status and if not suspended then proceed for register access. Let system
suspend call SPI runtime suspend but make sure set_cs doesn't race with
it by holding the mutex.

Change-Id: Id6d05ac37227bf3358438eeedf279ddd1c9aab8b
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
drivers/spi/spi_qsd.c