From: Hans Verkuil <hverkuil@xs4all.nl>
To: "edubezval@gmail.com" <edubezval@gmail.com>
Cc: Dinesh Ram <dinesh.ram@cern.ch>,
Linux-Media <linux-media@vger.kernel.org>,
d ram <dinesh.ram086@gmail.com>
Subject: Re: [REVIEW PATCH 6/9] si4713 : Added the USB driver for Si4713
Date: Thu, 07 Nov 2013 08:40:13 +0100 [thread overview]
Message-ID: <527B43DD.1050405@xs4all.nl> (raw)
In-Reply-To: <CAC-25o_X+Pgi3C5TKK5WpViEH=t4AdVRd072xkYmmiYmbscAYQ@mail.gmail.com>
On 11/05/2013 03:18 PM, edubezval@gmail.com wrote:
> Dinesh
>
> On Tue, Oct 15, 2013 at 11:24 AM, Dinesh Ram <dinesh.ram@cern.ch> wrote:
>> This is the USB driver for the Silicon Labs development board.
>> It contains the Si4713 FM transmitter chip.
>>
>
> I tried this driver again. The system attempts to probe the device but
> it fails because the product revision read out of the USB device is
> wrong.
> [ 220.855158] usb 2-1.3.3: new full-speed USB device number 10 using ehci-pci
> [ 220.949677] usb 2-1.3.3: New USB device found, idVendor=10c4, idProduct=8244
> [ 220.949683] usb 2-1.3.3: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [ 220.949688] usb 2-1.3.3: Product: Si47xx Baseboard
> [ 220.949691] usb 2-1.3.3: Manufacturer: SILICON LABORATORIES INC.
> [ 220.949695] usb 2-1.3.3: SerialNumber: CBDA8-00-0
> [ 220.950157] usbhid 2-1.3.3:1.0: couldn't find an input interrupt endpoint
> [ 1014.981012] radio-usb-si4713 2-1.3.3:1.0: Si4713 development board
> discovered: (10C4:8244)
> [ 1015.870984] si4713 12-0063: IRQ not configured. Using timeouts.
> [ 1015.943551] si4713 12-0063: Invalid product number <<< Here is
> the code without modification
> [ 1015.943556] si4713 12-0063: Failed to probe device information.
> [ 1015.943568] si4713: probe of 12-0063 failed with error -22
> [ 1015.943613] radio-usb-si4713 2-1.3.3:1.0: cannot get v4l2 subdevice
> [ 1015.943672] usbcore: registered new interface driver radio-usb-si4713
> [ 1274.419987] perf samples too long (2504 > 2500), lowering
> kernel.perf_event_max_sample_rate to 50000
> [ 1308.851059] usbcore: deregistering interface driver radio-usb-si4713
> [ 1500.478308] radio-usb-si4713 2-1.3.3:1.0: Si4713 development board
> discovered: (10C4:8244)
> [ 1500.612240] si4713 12-0063: IRQ not configured. Using timeouts.
> [ 1500.683489] si4713 12-0063: Invalid product number 0x15 <<< Here it
> prints the PN read
> [ 1500.683495] si4713 12-0063: Failed to probe device information.
> [ 1500.683509] si4713: probe of 12-0063 failed with error -22
> [ 1500.683558] radio-usb-si4713 2-1.3.3:1.0: cannot get v4l2 subdevice
> [ 1500.683624] usbcore: registered new interface driver radio-usb-si4713
>
> Here is simple diff of what I used to print the PN value:
> diff --git a/drivers/media/radio/si4713/si4713.c
> b/drivers/media/radio/si4713/si4713.c
> index aadecb5..ee53584 100644
> --- a/drivers/media/radio/si4713/si4713.c
> +++ b/drivers/media/radio/si4713/si4713.c
> @@ -464,7 +464,7 @@ static int si4713_checkrev(struct si4713_device *sdev)
> v4l2_info(&sdev->sd, "chip found @ 0x%02x (%s)\n",
> client->addr << 1, client->adapter->name);
> } else {
> - v4l2_err(&sdev->sd, "Invalid product number\n");
> + v4l2_err(&sdev->sd, "Invalid product number 0x%X\n", resp[1]);
> rval = -EINVAL;
> }
> return rval;
>
> It is expected to be 0x0D instead of 0x15, if I am not mistaken.
What are the markings on the si471x chip on your USB board? Perhaps you have
a slightly different version of the chip?
A value of 0x15 suggests a si4721 transceiver instead of a si4713 transmitter.
Which might actually still work with this driver (although with the TX
functionality only, of course), so you might try accepting the 0x15 value.
Regards,
Hans
>
>> Signed-off-by: Dinesh Ram <dinesh.ram@cern.ch>
>> ---
>> drivers/media/radio/si4713/Kconfig | 15 +
>> drivers/media/radio/si4713/Makefile | 1 +
>> drivers/media/radio/si4713/radio-usb-si4713.c | 540 +++++++++++++++++++++++++
>> 3 files changed, 556 insertions(+)
>> create mode 100644 drivers/media/radio/si4713/radio-usb-si4713.c
next prev parent reply other threads:[~2013-11-07 7:40 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 15:24 [Review Patch 0/9] si4713 usb device driver Dinesh Ram
2013-10-15 15:24 ` [REVIEW PATCH 1/9] si4713 : Reorganized drivers/media/radio directory Dinesh Ram
2013-10-15 15:24 ` [REVIEW PATCH 2/9] si4713 : Modified i2c driver to handle cases where interrupts are not used Dinesh Ram
2013-12-03 15:35 ` Mauro Carvalho Chehab
2013-12-03 17:06 ` Hans Verkuil
[not found] ` <1386129496.79520.YahooMailNeo@web190906.mail.sg3.yahoo.com>
2013-12-04 17:42 ` Mauro Carvalho Chehab
2013-12-05 7:39 ` Hans Verkuil
2013-10-15 15:24 ` [REVIEW PATCH 3/9] si4713 : Reorganized includes in si4713.c/h Dinesh Ram
2013-10-15 15:24 ` [REVIEW PATCH 4/9] si4713 : Bug fix for si4713_tx_tune_power() method in the i2c driver Dinesh Ram
2013-10-15 15:24 ` [REVIEW PATCH 5/9] si4713 : HID blacklist Si4713 USB development board Dinesh Ram
2013-10-15 15:24 ` [REVIEW PATCH 6/9] si4713 : Added the USB driver for Si4713 Dinesh Ram
2013-11-05 14:18 ` edubezval
2013-11-07 7:40 ` Hans Verkuil [this message]
2013-11-11 12:34 ` edubezval
2013-11-18 14:47 ` edubezval
2013-10-15 15:24 ` [REVIEW PATCH 7/9] si4713 : Added MAINTAINERS entry for radio-usb-si4713 driver Dinesh Ram
2013-10-15 15:24 ` [REVIEW PATCH 8/9] si4713: move supply list to si4713_platform_data Dinesh Ram
2013-11-04 14:07 ` edubezval
2013-11-05 8:38 ` Hans Verkuil
2013-11-05 14:14 ` edubezval
2013-10-15 15:24 ` [REVIEW PATCH 9/9] si4713: si4713_set_rds_radio_text overwrites terminating \0 Dinesh Ram
2013-12-03 15:39 ` [REVIEW PATCH 1/9] si4713 : Reorganized drivers/media/radio directory Mauro Carvalho Chehab
[not found] ` <CAP_RhzeRgLir1FGL6UN2-yXXaS-1knsS2BP20MjfMJRAEyDqeg@mail.gmail.com>
2013-12-03 16:06 ` FW: " Dinesh Ram
2013-12-03 16:58 ` Hans Verkuil
2013-12-04 17:41 ` Mauro Carvalho Chehab
2013-10-15 17:37 ` [Review Patch 0/9] si4713 usb device driver edubezval
2013-11-04 9:33 ` Hans Verkuil
2013-11-04 14:09 ` edubezval
2013-11-04 14:13 ` Hans Verkuil
[not found] ` <CAP_RhzfWKc8y27uU4VXFu6cAt87NvO=BnLNq9WeGG_kpxihTKQ@mail.gmail.com>
2013-11-04 14:39 ` edubezval
2013-11-18 14:31 ` edubezval
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=527B43DD.1050405@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=dinesh.ram086@gmail.com \
--cc=dinesh.ram@cern.ch \
--cc=edubezval@gmail.com \
--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