Re: [RFC PATCH 1/4] i2c: allow drivers to announce that they are IRQ safe

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

 



Hi Tony,

> * Stefan Lengfeld <contact@xxxxxxxxxxxxxxx> [180813 21:19]:
> > Making I2C transfers in atomic context is sometimes needed, e.g.  for
> > reboot handlers.
> 
> Just a generic comment related to where this might be needed.
> Let's try to avoid the slippery slope of making i2c work super
> early.. That will just make the race to the bottom initcall
> level and defferd probe situation worse :)
> 
> It's best to initialize everything late instead of trying to
> initialize something early except for what's needed for system
> timers and interrupts.
> 
> So from that point of view I don't have any issues limiting
> atomic i2c to shutdown time only.

I agree to that. A solution should only/mainly focus on reboot and
shutdown handlers. Getting I2C transfers in atomic/disabled IRQ contexts
is already hard enough there :-)

Kind regards,
Stefan



[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