All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Michael Krufky <mkrufky@linuxtv.org>
Cc: Antti Palosaari <crope@iki.fi>, linux-media@vger.kernel.org
Subject: Re: [PATCH RFC] em28xx: PCTV 520e switch tda18271 to tda18271c2dd
Date: Tue, 2 Oct 2012 07:19:58 -0300	[thread overview]
Message-ID: <20121002071958.2844e5da@redhat.com> (raw)
In-Reply-To: <CAOcJUbwGnm=jDkvqcJeQWr4ShraGbSNO9fGgkRgwr+18=h6H8g@mail.gmail.com>

Em Mon, 1 Oct 2012 21:43:51 -0400
Michael Krufky <mkrufky@linuxtv.org> escreveu:

> On Mon, Oct 1, 2012 at 8:52 PM, Antti Palosaari <crope@iki.fi> wrote:
> > New drxk firmware download does not work with tda18271. Actual
> > reason is more drxk driver than tda18271. Anyhow, tda18271c2dd
> > will work as it does not do as much I/O during attach than tda18271.
> >
> > Root of cause is tuner I/O during drx-k asynchronous firmware
> > download. request_firmware_nowait()... :-/
> >
> > Cc: Michael Krufky <mkrufky@linuxtv.org>
> > Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
> > Signed-off-by: Antti Palosaari <crope@iki.fi>
> > ---
> >  drivers/media/usb/em28xx/em28xx-dvb.c | 5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c
> > index 770a5af..fd750d4 100644
> > --- a/drivers/media/usb/em28xx/em28xx-dvb.c
> > +++ b/drivers/media/usb/em28xx/em28xx-dvb.c
> > @@ -1122,9 +1122,8 @@ static int em28xx_dvb_init(struct em28xx *dev)
> >
> >                 if (dvb->fe[0]) {
> >                         /* attach tuner */
> > -                       if (!dvb_attach(tda18271_attach, dvb->fe[0], 0x60,
> > -                                       &dev->i2c_adap,
> > -                                       &em28xx_cxd2820r_tda18271_config)) {
> > +                       if (!dvb_attach(tda18271c2dd_attach, dvb->fe[0],
> > +                                       &dev->i2c_adap, 0x60)) {
> >                                 dvb_frontend_detach(dvb->fe[0]);
> >                                 result = -EINVAL;
> >                                 goto out_free;
> > --
> > 1.7.11.4
> >
> 
> 
> utterly ridiculous.  I understand why Antti is making this patch, so I
> cannot blame him for it, but this whole idea of asynchronous firmware
> load instead of allowing the bridge driver to orchestrate things is a
> major problem -- THAT is what needs fixing.  let's fix the ACTUAL
> problem.
> 
> (if we have to merge this for the short-term, i understand... i just
> reiterate - we set a horrible president by merging a second tda18271
> driver)

It is not ridiculous: this bug affects Kernel 3.6, so it needs a quick fix.
This is very likely the quickest clean fix for this issue, and changes
only one statement.

So, it can be applied without any hash upstream.

After having this fix applied, a better solution can be developed for Kernel
3.8 (as it is likely too late for 3.7).

Regards,
Mauro

  reply	other threads:[~2012-10-02 10:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02  0:52 [PATCH RFC] em28xx: PCTV 520e switch tda18271 to tda18271c2dd Antti Palosaari
2012-10-02  1:43 ` Michael Krufky
2012-10-02 10:19   ` Mauro Carvalho Chehab [this message]
2012-10-02  1:58 ` Devin Heitmueller
2012-10-02  3:07   ` [PATCH] tda18271: prevent register access during attach() if delay_cal is set Michael Krufky
2012-10-02  3:17   ` [PATCH RFC] em28xx: PCTV 520e switch tda18271 to tda18271c2dd Michael Krufky
2012-10-02  9:55     ` Antti Palosaari
2012-10-02 11:05       ` Mauro Carvalho Chehab
2012-10-02 12:22         ` Michael Krufky
2012-10-02 13:17           ` Mauro Carvalho Chehab
2012-10-02 14:23             ` Antti Palosaari
2012-10-02 12:29         ` Antti Palosaari
2012-10-02 12:42           ` Michael Krufky
2012-10-02 12:49             ` Antti Palosaari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121002071958.2844e5da@redhat.com \
    --to=mchehab@redhat.com \
    --cc=crope@iki.fi \
    --cc=linux-media@vger.kernel.org \
    --cc=mkrufky@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.