]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mxc: add check to return defer probe if clock tree NOT ready
authorAnson Huang <anson.huang@nxp.com>
Sat, 23 Feb 2019 03:18:25 +0000 (03:18 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Feb 2019 12:42:46 +0000 (13:42 +0100)
commitfa9d2d178cab4e53d965b07aaff13f635bfaa003
treee62ccaf8b7ce2ea9d9c7a397dceee4edca319cc8
parentea08d788646699da89362f7d438044f600af9bbf
gpio: mxc: add check to return defer probe if clock tree NOT ready

On i.MX8MQ platform, clock driver uses platform driver
model and it is probed after GPIO driver, so when GPIO
driver fails to get clock, it should check the error type
to decide whether to return defer probe or just ignore
the clock operation.

Fixes: 7812d2cd4203 ("gpio: mxc: add clock operation")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c