• Heiko Schocher's avatar
    arm, davinci_emac: fix driver bug if more then 3 PHYs are detected · dc02bada
    Heiko Schocher authored
    since commits:
    davinci: emac: add support for more than 1 PHYs
    062fe7d3
    
    davinci: remove obsolete macro CONFIG_EMAC_MDIO_PHY_NUM
    fb1d6332
    
    I get following warning on the enbw_cmc board:
    
    Err:   serial
    Net:    5 ETH PHY detected
    miiphy_register: non unique device name 'KSZ8873 @ 0x01'
    DaVinci-EMAC
    Hit any key to stop autoboot:  0
    
    Also I see some debug printfs:
    
    => run load
    + emac_close
    + emac_ch_teardown
    - emac_ch_teardown
    + emac_ch_teardown
    - emac_ch_teardown
    - emac_close
    + emac_open
    - emac_open
    Using DaVinci-EMAC device
    
    reason is 062fe7d3 new define MAX_PHY.
    This is set to 3! I get on this board 5 active phys, so
    this leads in wrong memory writes ...
    
    so I changed:
    
    - define CONFIG_SYS_DAVINCI_EMAC_PHY_COUNT to set
      the MAX_PHY value, add a description in README
      for the new CONFIG_SYS option.
    - print an error message if more then MAX_PHYs are
      detected.
    - fill the active_phy_addr array in a for loop with
      0xff
    - changed printf() in debug_emac()
    Signed-off-by: 's avatarHeiko Schocher <hs@denx.de>
    Cc: Sandeep Paulraj <s-paulraj@ti.com>
    Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
    Cc: Wolfgang Denk <wd@denx.de>
    Cc: Manjunath Hadli <manjunath.hadli@ti.com>
    Cc: Prabhakar Lad <prabhakar.csengg@gmail.com>
    Cc: Mike Frysinger <vapier@gentoo.org>
    Cc: Tom Rini <tom.rini@gmail.com>
    Signed-off-by: 's avatarSandeep Paulraj <s-paulraj@ti.com>
    dc02bada
Name
Last commit
Last update
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
nand_spl Loading commit data...
net Loading commit data...
onenand_ipl Loading commit data...
post Loading commit data...
spl Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
boards.cfg Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
rules.mk Loading commit data...
snapshot.commit Loading commit data...