aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/powerpc-hcalls.py
diff options
context:
space:
mode:
authorMarcin Wojtas <[email protected]>2020-12-23 12:38:26 +0200
committerMark Brown <[email protected]>2020-12-28 12:25:30 +0000
commite2be70318d7b0ad9446d8a64ed1bc73e3316ee39 (patch)
tree6a124300d4ad82083daa35a6f5379743da130508 /tools/perf/scripts/python/powerpc-hcalls.py
parenta34d4197a144d83d508163404ad7d214082e909a (diff)
spi: orion: enable clocks before spi_setup
The spi-orion driver disables its clocks whenever it is not used. In usual case during boot (i.e. using SPI flash) it is not a problem, as the child device driver is present and probed along with spi_register_master() execution. However in case the child device driver is not ready (e.g. when its type is module_spi_driver) the spi_setup() callback can be called after the spi-orion probe. It may happen, that as a result there will be an attempt to access controller's registers with the clocks disabled. Prevent such situations and make sure the clocks are on, each time the spi_setup() is called. Signed-off-by: Marcin Wojtas <[email protected]> Signed-off-by: Konstantin Porotchkin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions