[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-bluetooth
Subject:    Re: [PATCH] pcmcia: dtl1_cs: fix pcmcia_loop_config logic
From:       Wolfram Sang <w.sang () pengutronix ! de>
Date:       2009-07-27 10:30:29
Message-ID: 20090727103029.GD3671 () pengutronix ! de
[Download RAW message or body]

> > > On Fri, Feb 27, 2009 at 5:54 PM, Philipp Zabel \
> > > <philipp.zabel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > pcmcia_loop_config returns 0 on success.
> > > > 
> > > > Signed-off-by: Philipp Zabel \
> > > >                 <philipp.zabel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > > > ---
> > > > drivers/bluetooth/dtl1_cs.c |    2 +-
> > > > 1 files changed, 1 insertions(+), 1 deletions(-)
> > > > 
> > > > diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c
> > > > index 901bdd9..e0ee642 100644
> > > > --- a/drivers/bluetooth/dtl1_cs.c
> > > > +++ b/drivers/bluetooth/dtl1_cs.c
> > > > @@ -616,7 +616,7 @@ static int dtl1_config(struct pcmcia_device *link)
> > > > 
> > > > /* Look for a generic full-sized window */
> > > > link->io.NumPorts1 = 8;
> > > > -       if (!pcmcia_loop_config(link, dtl1_confcheck, NULL))
> > > > +       if (pcmcia_loop_config(link, dtl1_confcheck, NULL))
> > > > goto failed;
> > > > 
> > > > i = pcmcia_request_irq(link, &link->irq);
> > > > --
> > > > 1.5.6.5
> > > 
> > > with this change my Nokia DTL-1 CF card gets detected, but the
> > > interface stays down.
> > 
> > I am reviewing patches which came through the pcmcia-list since the last 
> > upstream commit last year.
> > 
> > IMHO the above patch could be queued, even though there seem to be further 
> > issues with the driver. What do you think?
> > 
> > So, for the above patch:
> > 
> > Acked-by: Wolfram Sang <w.sang@pengutronix.de>
> 
> can we change it into if (pcmcia_loop_config(...) < 0) to it perfectly
> clear here.

Yup, I'd like that better, too.

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |


["signature.asc" (application/pgp-signature)]
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic