Thread (19 messages) 19 messages, 5 authors, 2016-02-12

Re: [PATCH 1/2] regulator: ltc3589: make IRQ optional

From: Lothar Waßmann <hidden>
Date: 2016-01-25 12:38:17
Also in: linux-arm-kernel, linux-omap, lkml

Hi,

On Fri, 22 Jan 2016 16:26:10 +0000 Mark Brown wrote:
On Fri, Jan 22, 2016 at 06:41:45AM +0100, Lothar Waßmann wrote:
quoted
quoted
On Thu, Jan 21, 2016 at 12:33:11PM +0100, Lothar Waßmann wrote:
quoted
quoted
Your commit message (quoted above) claims that without this patch if no
interrupt is supplied then the unsupplied interrupt will somehow be left
screaming and make the system unusable.  This doesn't make sense, if
there is no interrupt there is nothing to scream.
quoted
"Otherwise" meant the case where the IRQ is specified in DT as is
currently required to get the driver loaded at all.
quoted
quoted
So, contrary to what you've been saying, the interrupt is actually
connected (and worse, connected to a NMI) but apparently not described
in DT.  Why is it sensible to make the driver poll (which will affect
all systems using this device, even those that don't care) and not just
describe the interrupt in DT so it can be handled promptly in the normal
fashion?  Presumably this will run into serious problems if the
interrupt actually fires at runtime since the NMI will scream, it's not
clear to me how the poll will manage to run successfully in that case.
quoted
Currently the driver won't even load without an IRQ specified in DT.
My patch makes it possible to use the driver without requiring an IRQ!
You're not just making the interrupt optional, you are also implementing
polling support.  That's really unusual and there's no clear reason for
it, your changelog seems to claim that it is needed to make the system
work but that seems at best very surprising and would need a more
detailed changelog.

You at least need to provide an understandable changelog, though it
seems it is more likely that there is a more sensible way of dealing
with this.
Any suggestions how to handle this case in a more sensible way?


Lothar Waßmann
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help