From: Antti Palosaari <crope@iki.fi>
To: Nils Kassube <kassube@gmx.net>
Cc: linux-media@vger.kernel.org
Subject: Re: Fix for crash in dvb-usb-af9015
Date: Sat, 11 Jul 2009 02:49:05 +0300 [thread overview]
Message-ID: <4A57D371.4070307@iki.fi> (raw)
In-Reply-To: <200907071634.00168.kassube@gmx.net>
Heips Nils,
On 07/07/2009 05:33 PM, Nils Kassube wrote:
> Hi Antti,
>
> Antti Palosaari wrote:
>> Nils Kassube wrote:
>>> As I'm not familiar with the hardware, I can't say what buffer size
>>> would be appropriate but I can say that for my device the parameter
>> I see the problem but your fix is not ideally correct for my eyes.
>
> You're probably right - like I wrote, I'm not familiar with the
> hardware.
>
>> I
>> don't have currently access to sniffs to ensure that but I think BOOT
>> should be write command. Now it is defined as read. I think moving
>> BOOT from read to write fixes problem.
>
> Yes, that makes a lot of sense to me. Therefore I changed the code to
> make it a write command like this:
>
> --- orig/linux-2.6.31/drivers/media/dvb/dvb-usb/af9015.c 2009-06-30
> 11:34:45.000000000 +0200
> +++ linux-2.6.31/drivers/media/dvb/dvb-usb/af9015.c 2009-07-07
> 14:58:27.000000000 +0200
> @@ -81,7 +81,6 @@
>
> switch (req->cmd) {
> case GET_CONFIG:
> - case BOOT:
> case READ_MEMORY:
> case RECONNECT_USB:
> case GET_IR_CODE:
> @@ -100,6 +99,7 @@
> case WRITE_VIRTUAL_MEMORY:
> case COPY_FIRMWARE:
> case DOWNLOAD_FIRMWARE:
> + case BOOT:
> break;
> default:
> err("unknown command:%d", req->cmd);
>
> And of course I removed the earlier change. With this modification it
> works as well.
I need your signed off by tag in order to forward this mainline. Patch
is correct and I tested it also.
About tags http://kerneltrap.org/node/8329
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2009-07-10 23:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 10:32 Fix for crash in dvb-usb-af9015 Nils Kassube
2009-07-07 11:00 ` Antti Palosaari
2009-07-07 14:33 ` Nils Kassube
2009-07-10 23:49 ` Antti Palosaari [this message]
2009-07-11 6:02 ` Nils Kassube
2009-07-13 20:50 ` 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=4A57D371.4070307@iki.fi \
--to=crope@iki.fi \
--cc=kassube@gmx.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox