]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Apply CS clk quirk to BXT
authorEvan Green <evgreen@chromium.org>
Mon, 27 Apr 2020 23:32:48 +0000 (16:32 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 30 Apr 2020 14:22:58 +0000 (15:22 +0100)
commit9c6bdd61ddadf07fb67208e96cc9bef7565736b5
tree13374b8dad2fa03d559671d763f224bfe63df853
parent373d6205c87507697116fe6c3ad5ac1964fd4e59
spi: pxa2xx: Apply CS clk quirk to BXT

With a couple allies at Intel, and much badgering, I got confirmation
from Intel that at least BXT suffers from the same SPI chip-select
issue as Cannonlake (and beyond). The issue being that after going
through runtime suspend/resume, toggling the chip-select line without
also sending data does nothing.

Add the quirk to BXT to briefly toggle dynamic clock gating off and
on, forcing the fabric to wake up enough to notice the CS register
change.

Signed-off-by: Evan Green <evgreen@chromium.org>
Cc: Shobhit Srivastava <shobhit.srivastava@intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200427163238.1.Ib1faaabe236e37ea73be9b8dcc6aa034cb3c8804@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c