All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Vincent McIntyre <vincent.mcintyre@gmail.com>
Cc: linux-media <linux-media@vger.kernel.org>
Subject: Re: regression: (repost) firmware loading for dvico dual digital 4
Date: Mon, 30 Jun 2014 11:56:33 -0300	[thread overview]
Message-ID: <20140630115633.6c5b5d95.m.chehab@samsung.com> (raw)
In-Reply-To: <CAEsFdVOLAE+VzZ0pQv33Ga-vEN4D3=0ktcFjn4ejZ1rR=nww7w@mail.gmail.com>

Em Mon, 30 Jun 2014 23:19:46 +1000
Vincent McIntyre <vincent.mcintyre@gmail.com> escreveu:

> Hi,
> 
> I am reposting this since it got ignored/missed last time around...
> 
> On 5/14/14, Vincent McIntyre <vincent.mcintyre@gmail.com> wrote:
> > Hi,
> >
> > Antti asked me to report this.
> >
> > I built the latest media_build git on Ubuntu 12.04, with 3.8.0 kernel,
> > using './build --main-git'.
> > The attached tarball has the relvant info.
> >
> > Without the media_build modules, firmware loads fine (file dmesg.1)
> > Once I build and install the media_build modules, the firmware no
> > longer loads. (dmesg.2)
> >
> > The firmware loading issue appears to have been reported to ubuntu (a
> > later kernel, 3.11)  with a possible fix proposed, see
> > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1291459
> >
> > I can post lspci etc details if people want.
> >
> 
> An updated version of the tar file is attached.
> 
> dmesg.1 is from 3.8.0-38 plus media-build modules and shows the
> firmware loading issue.
> The media-build HEAD revision was
>   commit e4a8d40f63afa8b0276ea7758d9b4d32e64a964d
>   Author: Hans Verkuil <hans.verkuil@cisco.com>
>   Date:   Wed Jun 18 10:27:51 2014 +0200
> 
> dmesg.2 is from 3.8.0-42 with the ubuntu-provided modules and does not
> show the issue.
> 
> The issue occurs in later ubuntu kernels, 3.11 as noted previously
> and 3.13.0-30.
> 
> The OS is ubuntu 12.04 LTS, amd64.
> 
> I looked into bisecting this but could not figure out a procedure
> since the 'build' script tries really hard to use the latest
> media-build and kernel sources. It looks like one has to run the
> media-build 'make' against a checkout of the vanilla kernel that
> roughly corresponds in time (or at least is not from a time later than
> the current media-build revision that is checked out).

> 
> 
> Please respond this time

Next time, please add the logs directly at the email, as this makes
clearer about what's the problem and what driver has the issues.

Anyway, based on this:

[   16.332247] xc2028 0-0061: Loading firmware for type=BASE F8MHZ (3), id 0000000000000000.
[   16.344378] cxusb: i2c wr: len=64 is too big!

I suspect that the enclosed patch should fix your issue. Please test. If it
works, please reply to this email with:
	Tested-by: your name <your@email>

Cheers,
Mauro

-

cxusb: increase buffer lenght to 80 bytes

As reported by Vincent:
	[   16.332247] xc2028 0-0061: Loading firmware for type=BASE F8MHZ (3), id 0000000000000000.
	[   16.344378] cxusb: i2c wr: len=64 is too big!

64 bytes is too short for firmware load on this device. So, increase it
to 80 bytes.

Reported-by: Vincent McIntyre <vincent.mcintyre@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c
index 6acde5ee4324..a22726ccca64 100644
--- a/drivers/media/usb/dvb-usb/cxusb.c
+++ b/drivers/media/usb/dvb-usb/cxusb.c
@@ -44,7 +44,7 @@
 #include "atbm8830.h"
 
 /* Max transfer size done by I2C transfer functions */
-#define MAX_XFER_SIZE  64
+#define MAX_XFER_SIZE  80
 
 /* debug */
 static int dvb_usb_cxusb_debug;


  reply	other threads:[~2014-06-30 14:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30 13:19 regression: (repost) firmware loading for dvico dual digital 4 Vincent McIntyre
2014-06-30 14:56 ` Mauro Carvalho Chehab [this message]
2014-07-03 14:00   ` Vincent McIntyre

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=20140630115633.6c5b5d95.m.chehab@samsung.com \
    --to=m.chehab@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=vincent.mcintyre@gmail.com \
    /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.