diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2020-11-29 12:53:05 +0530 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2021-01-12 10:21:41 +0530 |
commit | f3f83ad4caf4f4fb2394d70585a20ce56b552c5e (patch) | |
tree | a65f08243fd14a0132289e2fed9926ce1bbecc88 /drivers/core/root.c | |
parent | 705082d4b1a2040c9f1ff2a7d5c4f2fccafde4bc (diff) |
spi: omap3_spi: Fix speed and mode selection
McSPI IP provides per CS specific speed and mode selection. Therefore it
is possible to apply these settings only after CS is known. But
set_speed and set_mode can be called without bus being claimed, this
would lead driver to set up wrong CS (or previously used CS).
Fix this by apply set_speed and set_mode only if bus is already claimed.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/core/root.c')
0 files changed, 0 insertions, 0 deletions