9
0
Fork 0
barebox/commands
Antony Pavlov 9b0c2e47ef mii-tool: make the 'No MII transceiver present!' message more clear
Suppose you have two network controllers.
The first one is ENC28J60 (it is in low power mode
after start) the second one is always-enabled eth1.

As ENC28J60 is in low power mode before enc28j60_eth_open()
is called. ENC28J60's mii traceiver is in low power mode too
so the mii traceiver's register are inaccessable.

Here is a sample log just after barebox start:

  barebox:/ miitool
  miibus0: registered phy as /dev/phy0
    No MII transceiver present!.
  miibus1: registered phy as /dev/phy1
  phy1: eth1: negotiated 100baseTx-FD, link ok
  barebox:/ miitool
    No MII transceiver present!.
  phy1: eth1: negotiated 100baseTx-FD, link ok

The 'No MII transceiver present!.' message is confusing here.

This patch fixes the problem so the miitool output
looks like this:

  barebox:/ miitool
  phy0: spieth0:  No MII transceiver present!.
  phy1: eth1: negotiated 100baseTx-FD, link ok

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-02 07:46:31 +02:00
..
2048.c 2048: Reset score on startup 2014-06-06 06:33:53 +02:00
Kconfig bootm: beautify output 2014-06-02 09:07:12 +02:00
Makefile drvlist: factor the driver list out of 'devinfo' 2014-06-02 09:06:45 +02:00
automount.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
barebox-update.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
basename.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
boot.c boot: fix typo 2014-07-01 08:44:56 +02:00
bootm.c bootm: beautify output 2014-06-02 09:07:12 +02:00
cat.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
cd.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
clear.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
clk.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
cp.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
crc.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
detect.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
devinfo.c Merge branch 'for-next/misc' 2014-06-04 21:03:36 +02:00
dfu.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
digest.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
dirname.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
drvinfo.c commands: drvinfo: Make locally used function static 2014-06-05 10:18:06 +02:00
echo.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
edit.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
exec.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
export.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
false.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
filetype.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
flash.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
global.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
go.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
gpio.c commands: gpio_direction_output: add missed VALUE parameter to help message 2014-06-17 20:35:40 +02:00
help.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
i2c.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
insmod.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
iomemport.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
led.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
let.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
linux16.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
linux_exec.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
ln.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
loadb.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
loadenv.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
loads.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
loadxy.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
login.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
ls.c commands: ls: add ll as an alias for ls -l 2014-06-23 08:41:53 +02:00
lsmod.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
magicvar.c magicvars: can now also list values 2014-05-15 14:44:33 +02:00
md.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
mem.c commands/mem.c: drop non used DEVMEM 2013-05-08 07:16:40 +02:00
memcmp.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
memcpy.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
meminfo.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
memset.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
memtest.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
menu.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
menutree.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
miitool.c mii-tool: make the 'No MII transceiver present!' message more clear 2014-07-02 07:46:31 +02:00
mkdir.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
mm.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
mount.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
msleep.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
mw.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
nand.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
nandtest.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
net.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
of_dump.c of: Drop devicetree merge support 2014-05-22 08:09:13 +02:00
of_node.c complete: Add devicetree completion 2014-05-19 22:23:56 +02:00
of_property.c complete: Add devicetree completion 2014-05-19 22:23:56 +02:00
oftree.c oftree command: make devicetree file optargs to -l/-s 2014-05-22 08:09:13 +02:00
partition.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
passwd.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
poweroff.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
printenv.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
pwd.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
readf.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
readline.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
readlink.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
reginfo.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
regulator.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
reset.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
rm.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
rmdir.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
saveenv.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
setenv.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
sleep.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
spi.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
splash.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
stddev.c treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
test.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
tftp.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
time.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
timeout.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
trigger.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
true.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
ubi.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
ubiformat.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
uimage.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
umount.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
uncompress.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
usb.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
usbserial.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
version.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
wd.c commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00