Re: [RFC PATCH 3/7] regulator: IRQ based event/error notification helpers

2021-02-15 Thread Vaittinen, Matti
On Thu, 2021-02-11 at 14:35 +0200, Matti Vaittinen wrote: > Provide helper function for IC's implementing regulator notifications > when an IRQ fires. The helper also works for IRQs which can not be > acked. > Helper can be set to disable the IRQ at handler and then re-enabling > it > on delayed

Re: [RFC PATCH 3/7] regulator: IRQ based event/error notification helpers

2021-02-12 Thread Mark Brown
On Fri, Feb 12, 2021 at 09:33:44AM +, Vaittinen, Matti wrote: > There seems to be few drivers which need delayed wq and which implement > .remove() just to call the cancel_delayed_work_sync(). > I think this might help cleaning up those(?) Or am I completely off > here? I can see it being

Re: [RFC PATCH 3/7] regulator: IRQ based event/error notification helpers

2021-02-12 Thread Vaittinen, Matti
On Thu, 2021-02-11 at 14:35 +0200, Matti Vaittinen wrote: > Provide helper function for IC's implementing regulator notifications > when an IRQ fires. The helper also works for IRQs which can not be > acked. > Helper can be set to disable the IRQ at handler and then re-enabling > it > on delayed

[RFC PATCH 3/7] regulator: IRQ based event/error notification helpers

2021-02-11 Thread Matti Vaittinen
Provide helper function for IC's implementing regulator notifications when an IRQ fires. The helper also works for IRQs which can not be acked. Helper can be set to disable the IRQ at handler and then re-enabling it on delayed work later. The helper also adds regulator_get_error_flags() errors in