I have spent today convinced something was wrong with gpio_to_irq() on DM355, 
and am slowly getting round to thinking that things are as intended, with 
confusing side effects.

Namely, gpio_to_irq(1) returns 65, which eth0 reports on boot:

 eth0: dm9000a at c8814000,c8818002 IRQ 65 MAC: 06:06:0b:0b:06:06 (eeprom)

And everything works. DM355 highest IRQ is 63. eth0 is actually using IRQ 54 
(GPIOBNK0) and this "IRQ" seems to be not really an IRQ but an abstracted index 
number. This makes me confused and sad :(

Under 2.6.10 it used to be a real, honest-to-hardware IRQ:

 eth0: dm9000 at c7810000,c7812002 IRQ 45 MAC: 00:50:c2:68:00:10

I think I see why this has been done, but it makes me wonder how we might 
report real IRQs instead..

Mailing so someone might say "that's as intended, you did indeed waste your 
day" or (unlikely) "well spotted, that's not right."

--
Jon Povey
jon.po...@racelogic.co.uk

Racelogic is a limited company registered in England. Registered number 2743719 
.
Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, 
MK18 1TB .

The information contained in this electronic mail transmission is intended by 
Racelogic Ltd for the use of the named individual or entity to which it is 
directed and may contain information that is confidential or privileged. If you 
have received this electronic mail transmission in error, please delete it from 
your system without copying or forwarding it, and notify the sender of the 
error by reply email so that the sender's address records can be corrected. The 
views expressed by the sender of this communication do not necessarily 
represent those of Racelogic Ltd. Please note that Racelogic reserves the right 
to monitor e-mail communications passing through its network


_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to