]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
SMC911X: Add chip auto detection
authorOlof Johansson <olof@lixom.net>
Tue, 29 Sep 2009 14:21:29 +0000 (10:21 -0400)
committerTom Rix <Tom.Rix@windriver.com>
Tue, 13 Oct 2009 11:17:37 +0000 (06:17 -0500)
commit2a6cc97b91997ae485312ac91ffbcea6a89b663a
treef17675c5af12eb4dad8b93249bb3bdda59bfe322
parent0297ec7e2a4039b8a28346f52f3ccca4db1ddc62
SMC911X: Add chip auto detection

Refactor the smc911x driver to allow for detecting when the chip is missing.
I.e. the detect_chip() function is called earlier and will abort gracefully
when the Chip ID read returns all 1's.

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Dirk Behme <dirk.behme@googlemail.com>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/smc911x.c
drivers/net/smc911x.h