Messages in this thread | | | Date | Tue, 6 Mar 2018 21:20:26 +0100 | From | Alexandre Belloni <> | Subject | Re: [PATCH v3 1/4] rtc: isl1208: enable interrupt after context preparation |
| |
On 05/03/2018 at 10:43:53 +0000, Denis OSTERLAND wrote: > From: Michael Grzeschik <m.grzeschik@pengutronix.de> > > The interrupt handler got enabled very early. If the interrupt cause is > triggering immediately before the context is fully prepared. This can > lead to undefined behaviour. Therefor we move the interrupt enable code > to the end of the probe function. > > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> > Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> > --- > drivers/rtc/rtc-isl1208.c | 34 +++++++++++++++++----------------- > 1 file changed, 17 insertions(+), 17 deletions(-) > Applied, thanks.
-- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
| |