Re: [PATCH v3 3/3] i2c: s3c24xx: add support for atomic transfers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marek,

On Tue, Oct 31, 2023 at 03:42:52PM +0100, Marek Szyprowski wrote:
> Add support for atomic transfers using polling mode with interrupts
> intentionally disabled to get rid of the following warning introduced by
> commit 63b96983a5dd ("i2c: core: introduce callbacks for atomic
> transfers") during system reboot and power-off:
> 
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 1518 at drivers/i2c/i2c-core.h:40 i2c_transfer+0xe8/0xf4
> No atomic I2C transfer handler for 'i2c-0'
> Modules linked in:
> CPU: 0 PID: 1518 Comm: reboot Not tainted 6.6.0-next-20231031 #7453
> Hardware name: Samsung Exynos (Flattened Device Tree)
>  unwind_backtrace from show_stack+0x10/0x14
>  show_stack from dump_stack_lvl+0x40/0x4c
>  dump_stack_lvl from __warn+0x7c/0x124
>  __warn from warn_slowpath_fmt+0x110/0x178
>  warn_slowpath_fmt from i2c_transfer+0xe8/0xf4
>  i2c_transfer from regmap_i2c_read+0x58/0x88
>  regmap_i2c_read from _regmap_raw_read+0xfc/0x260
>  _regmap_raw_read from _regmap_bus_read+0x44/0x70
>  _regmap_bus_read from _regmap_read+0x60/0x14c
>  _regmap_read from regmap_read+0x3c/0x60
>  regmap_read from regulator_get_voltage_sel_regmap+0x2c/0x74
>  regulator_get_voltage_sel_regmap from regulator_get_voltage_rdev+0x64/0x15c
>  regulator_get_voltage_rdev from _regulator_do_set_voltage+0x2c/0x5a8
>  _regulator_do_set_voltage from regulator_set_voltage_rdev+0x90/0x248
>  regulator_set_voltage_rdev from regulator_do_balance_voltage+0x350/0x4d0
>  regulator_do_balance_voltage from regulator_set_voltage_unlocked+0xd4/0x118
>  regulator_set_voltage_unlocked from regulator_set_voltage+0x40/0x74
>  regulator_set_voltage from _opp_config_regulator_single+0x44/0x110
>  _opp_config_regulator_single from _set_opp+0x118/0x500
>  _set_opp from dev_pm_opp_set_rate+0x108/0x20c
>  dev_pm_opp_set_rate from __cpufreq_driver_target+0x568/0x6cc
>  __cpufreq_driver_target from cpufreq_generic_suspend+0x28/0x50
>  cpufreq_generic_suspend from cpufreq_suspend+0xbc/0x124
>  cpufreq_suspend from device_shutdown+0x18/0x230
>  device_shutdown from kernel_restart+0x38/0x90
>  kernel_restart from __do_sys_reboot+0x12c/0x1f8
>  __do_sys_reboot from ret_fast_syscall+0x0/0x54
> Exception stack(0xf0fedfa8 to 0xf0fedff0)
> ...
> ---[ end trace 0000000000000000 ]---
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> Reviewed-by: Chanho Park <chanho61.park@xxxxxxxxxxx>

Thanks!

Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxx>

Andi



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux