Skip to contentSkip to conversation

Add chipid to fc2580.c

PATCH In review Oliver Schinagl 2 participants 5 messages Oct 22, 2012 – Nov 6, 2012 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add chipid to fc2580.c

drivers/media/tuners/fc2580.c +0 -0
index aff39ae..102d942 100644

I found a fellow Asus U3100+ user (mentioned him before with the firmware issue) that even when using the latest firmware, still see's 0xff as the chipID.

drivers/media/tuners/fc2580.c +1 -0
@@ -497,6 +497,7 @@ struct dvb_frontend *fc2580_attach(struct dvb_frontend *fe,
        switch (chip_id) {
        case 0x56:
        case 0x5a:
+       case 0xff:
                break;
        default:
                goto err;
#3 lore raw
In reply to a message not in the archive
Quoted 16 lines · Antti Palosaari

su 28.10.2012 22:07 Mauro Carvalho Chehab kirjoitti:

Quoted 15 lines

Em Mon, 22 Oct 2012 10:17:26 +0200
Oliver Schinagl <[email protected]> escreveu:

Quoted 6 lines
drivers/media/tuners/fc2580.c +0 -0
index aff39ae..102d942 100644

I found a fellow Asus U3100+ user (mentioned him before with the firmware issue) that even when using the latest firmware, still see's 0xff as the chipID.

You missed to add a signed-off-by on your patch.

Maybe it would make sense, in this case, to print some warning message, as this could be due to a bug either at the hardware or at some place at the driver, like the gpio config settings for this device.

Quoted 8 lines
Quoted 1 line

Anyway, Antti, your call.

I am on holiday now and dont want to look much these things at the moment.

Having 0x00 or 0xff as chip id is something very very stupid and not exits in real world. It is good indicator I2C operation was failing. Check GPIOs, see windows sniffs, add sleep, test if other I2C reads are working later, etc. to find out more info and fix it properly. In worst case it is possible that I2C reads are not working at all...

This was a random report for someone who I assisted via e-mail to get the latest git clone from antti's tree. Building, enabling debugging and getting this information alone took a week. I don't think we have the possibility to get a dump from anything. The stick has been working fine from my understanding using the 0xff tunerID. How to handle support for these 'bugged' tuners, I leave that up to you :)

AFTER your well deserved holiday. Enjoy and have a great time!

Quoted 30 lines
Quoted 15 lines
Quoted 15 lines
drivers/media/tuners/fc2580.c +1 -0
@@ -497,6 +497,7 @@ struct dvb_frontend *fc2580_attach(struct
 dvb_frontend *fe,
          switch (chip_id) {
          case 0x56:
          case 0x5a:
+       case 0xff:
                  break;
          default:
                  goto err;
Quoted 10 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Regards,
Mauro

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 28 lines · Oliver Schinagl
Quoted 20 lines · Antti Palosaari

su 28.10.2012 22:07 Mauro Carvalho Chehab kirjoitti:

Quoted 11 lines

Em Mon, 22 Oct 2012 10:17:26 +0200
Oliver Schinagl <[email protected]> escreveu:

Quoted 6 lines
drivers/media/tuners/fc2580.c +0 -0
index aff39ae..102d942 100644

I found a fellow Asus U3100+ user (mentioned him before with the firmware issue) that even when using the latest firmware, still see's 0xff as the chipID.

You missed to add a signed-off-by on your patch.

Quoted 5 lines

Maybe it would make sense, in this case, to print some warning message, as this could be due to a bug either at the hardware or at some place at the driver, like the gpio config settings for this device.

Anyway, Antti, your call.

I am on holiday now and dont want to look much these things at the moment.

Quoted 7 lines

Having 0x00 or 0xff as chip id is something very very stupid and not exits
in real world. It is good indicator I2C operation was failing. Check GPIOs, see windows sniffs, add sleep, test if other I2C reads are working later, etc. to find out more info and fix it properly. In worst case it is
possible that I2C reads are not working at all...

Quoted 6 lines

This was a random report for someone who I assisted via e-mail to get the latest git clone from antti's tree. Building, enabling debugging and getting this information alone took a week. I don't think we have the possibility to get a dump from anything. The stick has been working fine from my understanding using the 0xff tunerID. How to handle support for these 'bugged' tuners, I leave that up to you :)

Honestly I don't want to add hack like that with this little information. It must be found out if all I2C readings are failing, or just the first one, or some other condition. Currently there is only two register reads on that driver. Guess what happens if someone enhances that driver so that one bit from certain register is changed... Set register bit 7, current register value is 0x00. Register value will be 0x7ff as read returns always 0xff :-(

Quoted 34 lines

AFTER your well deserved holiday. Enjoy and have a great time!

Quoted 30 lines
Quoted 15 lines
Quoted 15 lines
drivers/media/tuners/fc2580.c +1 -0
@@ -497,6 +497,7 @@ struct dvb_frontend *fc2580_attach(struct
 dvb_frontend *fe,
          switch (chip_id) {
          case 0x56:
          case 0x5a:
+       case 0xff:
                  break;
          default:
                  goto err;
Quoted 10 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Regards,
Mauro

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

regards
Antti

Signature · 1 line
http://palosaari.fi/
#5 lore raw
Quoted 29 lines · Antti Palosaari
Quoted 28 lines · Oliver Schinagl
Quoted 27 lines · Antti Palosaari

su 28.10.2012 22:07 Mauro Carvalho Chehab kirjoitti:

Quoted 11 lines

Em Mon, 22 Oct 2012 10:17:26 +0200
Oliver Schinagl <[email protected]> escreveu:

Quoted 6 lines
drivers/media/tuners/fc2580.c +0 -0
index aff39ae..102d942 100644

I found a fellow Asus U3100+ user (mentioned him before with the firmware issue) that even when using the latest firmware, still see's 0xff as the chipID.

You missed to add a signed-off-by on your patch.

Quoted 5 lines

Maybe it would make sense, in this case, to print some warning message, as this could be due to a bug either at the hardware or at some place at the driver, like the gpio config settings for this device.

Anyway, Antti, your call.

I am on holiday now and dont want to look much these things at the moment.

Having 0x00 or 0xff as chip id is something very very stupid and not exits
in real world. It is good indicator I2C operation was failing. Check GPIOs, see windows sniffs, add sleep, test if other I2C reads are working later, etc. to find out more info and fix it properly. In worst case it is
possible that I2C reads are not working at all...

Quoted 8 lines
Quoted 6 lines

This was a random report for someone who I assisted via e-mail to get the latest git clone from antti's tree. Building, enabling debugging and getting this information alone took a week. I don't think we have the possibility to get a dump from anything. The stick has been working fine from my understanding using the 0xff tunerID. How to handle support for these 'bugged' tuners, I leave that up to you :)

Honestly I don't want to add hack like that with this little information. It must be found out if all I2C readings are failing, or just the first one, or some other condition. Currently there is only two register reads on that driver. Guess what happens if someone enhances that driver so that one bit from certain register is changed... Set register bit 7, current register value is 0x00. Register value will be 0x7ff as read returns always 0xff :-(

true, do you have some test code, that could test this? or a test module that prints some debug information for this specific case? I could then have the user in question try it out and report his findings?

oliver

Quoted 39 lines
Quoted 35 lines

AFTER your well deserved holiday. Enjoy and have a great time!

Quoted 30 lines
Quoted 25 lines
Quoted 20 lines
drivers/media/tuners/fc2580.c +1 -0
@@ -497,6 +497,7 @@ struct dvb_frontend *fc2580_attach(struct
 dvb_frontend *fe,
          switch (chip_id) {
          case 0x56:
          case 0x5a:
+       case 0xff:
                  break;
          default:
                  goto err;
Signature · 4 lines
To unsubscribe from this list: send the line "unsubscribe linux-media"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Regards,
Mauro
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

regards
Antti

#6 lore raw
Quoted 46 lines · Oliver Schinagl
Quoted 38 lines · Antti Palosaari
Quoted 30 lines · Oliver Schinagl
Quoted 21 lines · Antti Palosaari

su 28.10.2012 22:07 Mauro Carvalho Chehab kirjoitti:

Quoted 11 lines

Em Mon, 22 Oct 2012 10:17:26 +0200
Oliver Schinagl <[email protected]> escreveu:

Quoted 6 lines
drivers/media/tuners/fc2580.c +0 -0
index aff39ae..102d942 100644

I found a fellow Asus U3100+ user (mentioned him before with the firmware issue) that even when using the latest firmware, still see's 0xff as the chipID.

You missed to add a signed-off-by on your patch.

Quoted 6 lines

Maybe it would make sense, in this case, to print some warning message,
as this could be due to a bug either at the hardware or at some place at the driver, like the gpio config settings for this device.

Anyway, Antti, your call.

I am on holiday now and dont want to look much these things at the moment.

Quoted 8 lines

Having 0x00 or 0xff as chip id is something very very stupid and not exits
in real world. It is good indicator I2C operation was failing. Check GPIOs, see windows sniffs, add sleep, test if other I2C reads are working
later, etc. to find out more info and fix it properly. In worst case it is
possible that I2C reads are not working at all...

Quoted 6 lines

This was a random report for someone who I assisted via e-mail to get the latest git clone from antti's tree. Building, enabling debugging and getting this information alone took a week. I don't think we have the possibility to get a dump from anything. The stick has been working fine from my understanding using the 0xff tunerID. How to handle support for these 'bugged' tuners, I leave that up to you :)

Quoted 7 lines

Honestly I don't want to add hack like that with this little information. It must be found out if all I2C readings are failing, or just the first one, or some other condition. Currently there is only two register reads on that driver. Guess what happens if someone enhances that driver so that one bit from certain register is changed... Set register bit 7, current register value is 0x00. Register value will be 0x7ff as read returns always 0xff :-(

Quoted 3 lines

true, do you have some test code, that could test this? or a test module that prints some debug information for this specific case? I could then have the user in question try it out and report his findings?

Just add like 5 register reads one after another inside attach and print out returned values. Or add debug print to register read to see what it returns as read is used during tune too. Write different tuner id to af9035 firmware to see if it is fw issue. There is million ways to make tests and see what happens and make conclusions.

Antti

Quoted 48 lines

oliver

Quoted 38 lines
Quoted 37 lines

AFTER your well deserved holiday. Enjoy and have a great time!

Quoted 32 lines
Quoted 15 lines
Quoted 15 lines
drivers/media/tuners/fc2580.c +1 -0
@@ -497,6 +497,7 @@ struct dvb_frontend *fc2580_attach(struct
 dvb_frontend *fe,
          switch (chip_id) {
          case 0x56:
          case 0x5a:
+       case 0xff:
                  break;
          default:
                  goto err;
Quoted 11 lines
Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-media"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Regards,
Mauro

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 3 lines

regards
Antti

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
http://palosaari.fi/