]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw-mmio: Clock should be shut when error occurs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 10 Jul 2019 11:42:43 +0000 (14:42 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jul 2019 12:19:40 +0000 (13:19 +0100)
commita0874c403f8127280ce61b1691ff4631d4cdc708
tree770e956c414837a3d1d68d00df5b4286bbc25989
parent2a4cc08c1782443337853f4bc8950e01b8845b34
spi: dw-mmio: Clock should be shut when error occurs

When optional clock requesting fails, the main clock is still up and running,
we should shut it down in such caee.

Fixes: d09882fc638b ("spi: dw: Add support for an optional interface clock")
Cc: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Gareth Williams <gareth.williams.jx@renesas.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Gareth Williams <gareth.williams.jx@renesas.com>
Link: https://lore.kernel.org/r/20190710114243.30101-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-mmio.c