Commit 09738cc
iio: adc: meson: fix core clock enable/disable moment
Enable core clock at probe stage and disable it at remove stage.
Core clock is responsible for turning on/off the entire SoC module so
it should be on before the first module register is touched and be off
at very last moment.
Fixes: 3adbf34 ("iio: adc: add a driver for the SAR ADC found in Amlogic Meson SoCs")
Signed-off-by: George Stark <gnstark@sberdevices.ru>
Link: https://lore.kernel.org/r/20230721102413.255726-2-gnstark@sberdevices.ru
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>1 parent b2a6996 commit 09738cc
1 file changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | 919 | | |
926 | 920 | | |
927 | 921 | | |
| |||
948 | 942 | | |
949 | 943 | | |
950 | 944 | | |
951 | | - | |
952 | | - | |
953 | 945 | | |
954 | 946 | | |
955 | 947 | | |
| |||
977 | 969 | | |
978 | 970 | | |
979 | 971 | | |
980 | | - | |
981 | | - | |
982 | 972 | | |
983 | 973 | | |
984 | 974 | | |
| |||
1211 | 1201 | | |
1212 | 1202 | | |
1213 | 1203 | | |
1214 | | - | |
| 1204 | + | |
1215 | 1205 | | |
1216 | 1206 | | |
1217 | 1207 | | |
| |||
1294 | 1284 | | |
1295 | 1285 | | |
1296 | 1286 | | |
| 1287 | + | |
1297 | 1288 | | |
1298 | 1289 | | |
1299 | 1290 | | |
| 1291 | + | |
| 1292 | + | |
1300 | 1293 | | |
1301 | 1294 | | |
1302 | 1295 | | |
1303 | 1296 | | |
1304 | 1297 | | |
1305 | 1298 | | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1306 | 1307 | | |
1307 | 1308 | | |
1308 | 1309 | | |
| |||
0 commit comments