OSDN Git Service

iio: adc: at91-sama5d2_adc: initialize hardware after clock is started
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 1 Sep 2021 12:30:05 +0000 (15:30 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Sep 2021 11:00:33 +0000 (12:00 +0100)
commiteaefa151f48a3305cf73cbc02890eb63cdb48b16
tree2b679b44bbefc816cc995d661ed9040173ed97ff
parentf928670651dac9e09a8a848e0d49d0e83fbb610d
iio: adc: at91-sama5d2_adc: initialize hardware after clock is started

The hw_init hardware init call must happen after the clock is prepared and
enabled. Otherwise, writing to the registers might lead to a block or
external abort.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Link: https://lore.kernel.org/r/20210901123013.329792-3-eugen.hristev@microchip.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c