All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Christoph Pegel <christoph@cpegel.de>
Cc: LMML <linux-media@vger.kernel.org>
Subject: Re: Hauppauge WinTV MiniStick (siano) firmware not loading
Date: Thu, 12 Sep 2013 00:46:23 -0300	[thread overview]
Message-ID: <20130912004623.54e2ae71@samsung.com> (raw)
In-Reply-To: <5230529A.70604@cpegel.de>

Em Wed, 11 Sep 2013 13:23:06 +0200
Christoph Pegel <christoph@cpegel.de> escreveu:

> Hello Mauro,
> 
> I already sent this mail to your address at redhat, I guess it didn't
> reach you.

I'm not answering there anymore. Not sure why emails sent to it are not
returning back.

The better is to always copy the linux-media ML on such emails, as people
there can also help with it.

> Two month ago I noticed the firmware of my Hauppauge WinTV MiniStick
> wasn't loading anymore:

Probably, it is recognizing its firmware version wrong.

There's a logic at drivers/media/common/siano/smscoreapi.c that it is meant
to identify it:

                if (coredev->fw_version >= 0x800) {
                       	rc = smscore_init_device(coredev, mode);
                        if (rc < 0)
                               	sms_err("device init failed, rc %d.", rc);

Basically, this function should be called only for newer firmwares found
on sms2270. If this is called on old devices, this causes it to fail.

> 
> usb 1-1.5.1: new high-speed USB device number 9 using ehci-pci
> smscore_load_firmware_family2: line: 986: sending
> MSG_SMS_DATA_VALIDITY_REQ expecting 0xcfed1755
> smscore_onresponse: line: 1565: MSG_SMS_DATA_VALIDITY_RES, checksum =
> 0xcfed1755

The messages changed, but that doesn't mean that an error happened. The
above messages are actually OK: it just reports that a checksum is expected.

As the checksum is identical, the firmware uploaded matches.

> If I ignore that and try to tune in some channel, the kernel panics.

Well, we need the Kernel panic messages, in order to be able to identify
what happened.

> 
> This problem has already been reported in multiple places:
>     * https://bugzilla.kernel.org/show_bug.cgi?id=60645

Unfortunately, reported as a drivers/video error. It should, instead, be
reported as a v4l-dvb driver issue:

	https://bugzilla.kernel.org/describecomponents.cgi?product=v4l-dvb

>     *
> http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/68070
>     * http://markmail.org/message/3oczpksvbosavg54
>     * https://bbs.archlinux.org/viewtopic.php?pid=1309369

None of the above reports went to the proper channel (the linux-media
ML), and the kernel.org one went to the wrong people.

> 
> Since nobody seems to notice these reports, I checked the commits in the
> kernel tree and found that you did some major changes on the driver in
> 2013-03 which have been merged by Linus on 2013-04-30.
> 
> I'd appreciate any help in getting this problem fixed.

Please comment that lines at smscoreapi that call smscore_init_device()
if the firmware version is equal or upper to 0x800, and see what happens.

Unfortunately, I'm about to travel to 3 consecutive international trips 
starting this weekend. So, it is very doubtful that I would have any time
soon to dirt my hands on it before November.

I can try to guide you on how to fix it trough.

Regards,
Mauro

           reply	other threads:[~2013-09-12  3:46 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <5230529A.70604@cpegel.de>]

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=20130912004623.54e2ae71@samsung.com \
    --to=m.chehab@samsung.com \
    --cc=christoph@cpegel.de \
    --cc=linux-media@vger.kernel.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.