[OpenPower-Firmware] [PATCH 1/2] tty/hvc: Use IRQF_SHARED for OPAL hvc consoles

Samuel Mendoza-Jonas sam at mendozajonas.com
Wed Jul 20 09:05:18 AEST 2016


On Tue, 2016-07-19 at 22:46 +0930, Joel Stanley wrote:
> Hey Sam,
> 
> On Thu, Jul 14, 2016 at 9:52 AM, Samuel Mendoza-Jonas
> <sam at mendozajonas.com> wrote:
> > 
> > On Wed, 2016-07-13 at 11:36 -0300, Murilo Opsfelder Araújo wrote:
> > > 
> > > On 07/12/2016 10:15 PM, Samuel Mendoza-Jonas wrote:
> > > [...]
> > > > 
> > > > 
> > > > diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
> > > > index 47b54c6..b7cd0ae 100644
> > > > --- a/drivers/tty/hvc/hvc_opal.c
> > > > +++ b/drivers/tty/hvc/hvc_opal.c
> > > > @@ -224,6 +224,9 @@ static int hvc_opal_probe(struct platform_device *dev)
> > > >     hp = hvc_alloc(termno, irq, ops, MAX_VIO_PUT_CHARS);
> > > >     if (IS_ERR(hp))
> > > >             return PTR_ERR(hp);
> > > > +
> > > > +   /* hvc consoles on powernv may need to share a single irq */
> > > > +   hp->flags = IRQF_SHARED;
> > > 
> > > There is no other flag being used at the moment but shouldn't we do
> > > hp->flags |= IRQF_SHARED instead?
> > > 
> > 
> > Good point - hvc_alloc() doesn't set any default flags so at the moment
> > it's up to each type of hvc init to set the flags themselves. If that
> > were to change in the future it would be something to check.
> 
> Do you want me to take this as-is, or do you plan on sending a v2?
> 

I happy for it to go in as-is since there wouldn't be any functional change,
and I don't expect any conflicts here.


More information about the OpenPower-Firmware mailing list