HI!
I am porting the smc91x.c driver for SMC91C113-NC
chip on a S3c2410 based platform.The driver has come
up fine but I am not at all receiving any interrupts
for receive or send.Also I am getting the message as
eth0: link fail from the driver if I enable the debug
statements.
I get the following output during boot up
-----------------------------------------
smc91x: smc_probe
smc91x: bank signature probe returned 0x3300
smc91x: revision = 0x3391
smc91x.c: v1.0, mar 07 2003 by Nicolas Pitre
<[EMAIL PROTECTED]>
eth%d: smc_reset
eth%d: smc_detect_phy
smc_phy_read: phyaddr=0x1, phyreg=0x2, phydata=0x0
smc_phy_read: phyaddr=0x1, phyreg=0x3, phydata=0x0
eth%d: phy_id1=0x0, phy_id2=0x0
smc_phy_read: phyaddr=0x2, phyreg=0x2, phydata=0x0
smc_phy_read: phyaddr=0x2, phyreg=0x3, phydata=0x0
eth%d: phy_id1=0x0, phy_id2=0x0
smc_phy_read: phyaddr=0x3, phyreg=0x2, phydata=0x0
smc_phy_read: phyaddr=0x3, phyreg=0x3, phydata=0x0
eth%d: phy_id1=0x0, phy_id2=0x0
smc_phy_read: phyaddr=0x1e, phyreg=0x2, phydata=0x0
smc_phy_read: phyaddr=0x1e, phyreg=0x3, phydata=0x0
eth%d: phy_id1=0x0, phy_id2=0x0
smc_phy_read: phyaddr=0x1f, phyreg=0x2, phydata=0x0
smc_phy_read: phyaddr=0x1f, phyreg=0x3, phydata=0x0
eth%d: phy_id1=0x0, phy_id2=0x0
smc_phy_read: phyaddr=0x0, phyreg=0x2, phydata=0x16
smc_phy_read: phyaddr=0x0, phyreg=0x3, phydata=0xf840
eth%d: phy_id1=0x16, phy_id2=0xf840
eth0: smc_query_statistics
eth0: SMC91C11xFD (rev 1) at 0xc2860300 IRQ 59
[nowait]
eth0: Ethernet addr: 08:00:06:2b:ad:99
eth0: PHY LAN83C183 (LAN91C111 Internal)
I get the following putput as a result of ifconfig
--------------------------------------------------
# ifconfig eth0 x.y.193.175 netmask 0xffffff00 up
eth0: smc_open
eth0: smc_reset
eth0: smc_enable
eth0: MASK 0xb1
eth0: MASK 0x00
eth0:smc_program_phy()
smc_phy_write: phyaddr=0x0, phyreg=0x0, phydata=0x8000
smc_phy_read: phyaddr=0x0, phyreg=0x0, phydata=0x400
smc_phy_write: phyaddr=0x0, phyreg=0x13,
phydata=0x3fc0
smc_phy_read: phyaddr=0x0, phyreg=0x1, phydata=0x7809
smc_phy_write: phyaddr=0x0, phyreg=0x4, phydata=0x1e1
smc_phy_read: phyaddr=0x0, phyreg=0x4, phydata=0x1e1
eth0: phy caps=7809
eth0: phy advertised caps=1e1
smc_phy_write: phyaddr=0x0, phyreg=0x0, phydata=0x1200
smc_phy_read: phyaddr=0x0, phyreg=0x1, phydata=0x7809
smc_phy_read: phyaddr=0x0, phyreg=0x1, phydata=0x7809
eth0: link down
eth0: smc_set_multicast_list
eth0: ~(RCR_PRMS|RCR_ALMUL)
eth0: smc_query_statistics
eth0: smc_set_multicast_list
eth0: smc_set_multicast_list
eth0: smc_query_statistics
eth0: smc_query_statistics
eth0: smc_set_multicast_list
If I do a ping from the target I get the following
message
----------------------------------------------------
ping x.y.193.163
PING x.y.193.163 (x.y.193eth0: smc_hard_start_xmit
eth0: TX memory allocation deferred.
.163): 56 data bytes
:w
Could anyone please tell me what exactly is going
wrong. Also If I check the interrupt mask in the
smc_set_multicast_list function in the end I find it
as 0x00. If I check the mask in smc_open just after a
call to smc_enable ther also I get the mask as 0x00 as
shown in the above output.
Is there any latest patch available for this driver
for 2.6.9 with latest bug fixes.
Thanking u in advance
regards
-Nitin
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html