Hi Folks, I am getting the following dmesg during shutdown on a stable kernel (5.15.90) on a sunxi-a20 board. Please consider cherry-pick the following commits to fix the issue in stable kernel 09b343038e34 ("i2c: mv64xxx: Remove shutdown method from driver") 544a8d75f3d6 ("i2c: mv64xxx: Add atomic_xfer method to driver") Thanks and have a good one, - Tong Tested-by: Tong Zhang <ztong0001@xxxxxxxxx> 8<------------------------------ 0 PID: 1 at drivers/i2c/i2c-core.h:41 i2c_transfer+0xf8/0x104 [786648.647796] No atomic I2C transfer handler for 'i2c-1' [786648.653055] Modules linked in: ip_tables x_tables ipv6 [786648.658372] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.15.88 #3 [786648.665040] Hardware name: Allwinner sun7i (A20) Family [786648.670406] [<c010df14>] (unwind_backtrace) from [<c010a5b4>] (show_stack+0x10/0x14) [786648.678329] [<c010a5b4>] (show_stack) from [<c082dbcc>] (dump_stack_lvl+0x40/0x4c) [786648.686066] [<c082dbcc>] (dump_stack_lvl) from [<c011dce4>] (__warn+0xe0/0xe4) [786648.693455] [<c011dce4>] (__warn) from [<c011dd60>] (warn_slowpath_fmt+0x78/0xbc) [786648.701106] [<c011dd60>] (warn_slowpath_fmt) from [<c06111d8>] (i2c_transfer+0xf8/0x104) [786648.709375] [<c06111d8>] (i2c_transfer) from [<c0611234>] (i2c_transfer_buffer_flags+0x50/0x74) [786648.718256] [<c0611234>] (i2c_transfer_buffer_flags) from [<c0549dd8>] (regmap_i2c_write+0x14/0x30) [786648.727493] [<c0549dd8>] (regmap_i2c_write) from [<c05454b4>] (_regmap_raw_write_impl+0x368/0x66c) [786648.736629] [<c05454b4>] (_regmap_raw_write_impl) from [<c0545830>] (_regmap_bus_raw_write+0x78/0xa0) [786648.746020] [<c0545830>] (_regmap_bus_raw_write) from [<c0546138>] (regmap_write+0x3c/0x5c) [786648.754541] [<c0546138>] (regmap_write) from [<c054e754>] (axp20x_power_off+0x2c/0x38) [786648.762627] [<c054e754>] (axp20x_power_off) from [<c01424ac>] (__do_sys_reboot+0x144/0x1d8) [786648.771158] [<c01424ac>] (__do_sys_reboot) from [<c0100060>] (ret_fast_syscall+0x0/0x48) [786648.779420] Exception stack(0xc104ffa8 to 0xc104fff0) [786648.784614] ffa0: 4321fedc bedb2bc8 fee1dead 28121969 4321fedc 00000000 [786648.792943] ffc0: 4321fedc bedb2bc8 bedb2bc4 00000058 bedb2bc8 bedb2bc4 fffff000 bedb2bcc [786648.801264] ffe0: 00000058 bedb2b3c b6f55045 b6ed37e6 [786648.806440] ---[ end trace 66f75e44e685be28 ]--- [786650.693467] i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0 [786651.213455] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 [786651.221278] CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G W 5.15.88 #3 [786651.229346] Hardware name: Allwinner sun7i (A20) Family [786651.234710] [<c010df14>] (unwind_backtrace) from [<c010a5b4>] (show_stack+0x10/0x14) [786651.242640] [<c010a5b4>] (show_stack) from [<c082dbcc>] (dump_stack_lvl+0x40/0x4c) [786651.250378] [<c082dbcc>] (dump_stack_lvl) from [<c082bcf0>] (panic+0xf4/0x2d8) [786651.257778] [<c082bcf0>] (panic) from [<c01227f0>] (do_exit+0x8d0/0xadc) [786651.264652] [<c01227f0>] (do_exit) from [<c01424b4>] (__do_sys_reboot+0x14c/0x1d8) [786651.272405] [<c01424b4>] (__do_sys_reboot) from [<c0100060>] (ret_fast_syscall+0x0/0x48) [786651.280667] Exception stack(0xc104ffa8 to 0xc104fff0) [786651.285860] ffa0: 4321fedc bedb2bc8 fee1dead 28121969 4321fedc 00000000 [786651.294188] ffc0: 4321fedc bedb2bc8 bedb2bc4 00000058 bedb2bc8 bedb2bc4 fffff000 bedb2bcc [786651.302508] ffe0: 00000058 bedb2b3c b6f55045 b6ed37e6 [786651.307700] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 ]---