* [U-Boot-Users] [PATCH resending] Align the QE UEC driver with commit 505be87
@ 2008-01-08 20:32 Emil Medve
2008-01-08 22:34 ` Timur Tabi
0 siblings, 1 reply; 2+ messages in thread
From: Emil Medve @ 2008-01-08 20:32 UTC (permalink / raw)
To: u-boot
Commit 505be87 - NET: Proper return code handling in eth_init() function in file eth.c
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
---
Resending as the previous e-mail had a bad header
drivers/qe/uec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c
index dc2765b..d7d7ccc 100644
--- a/drivers/qe/uec.c
+++ b/drivers/qe/uec.c
@@ -1110,7 +1110,7 @@ static int uec_init(struct eth_device* dev, bd_t *bd)
if (dev->enetaddr[0] & 0x01) {
printf("%s: MacAddress is multcast address\n",
__FUNCTION__);
- return 0;
+ return -EINVAL;
}
uec_set_mac_address(uec, dev->enetaddr);
uec->the_first_run = 1;
@@ -1119,10 +1119,10 @@ static int uec_init(struct eth_device* dev, bd_t *bd)
err = uec_open(uec, COMM_DIR_RX_AND_TX);
if (err) {
printf("%s: cannot enable UEC device\n", dev->name);
- return 0;
+ return err;
}
- return uec->mii_info->link;
+ return !uec->mii_info->link;
}
static void uec_halt(struct eth_device* dev)
--
1.5.4-rc2.GIT
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH resending] Align the QE UEC driver with commit 505be87
2008-01-08 20:32 [U-Boot-Users] [PATCH resending] Align the QE UEC driver with commit 505be87 Emil Medve
@ 2008-01-08 22:34 ` Timur Tabi
0 siblings, 0 replies; 2+ messages in thread
From: Timur Tabi @ 2008-01-08 22:34 UTC (permalink / raw)
To: u-boot
Emil Medve wrote:
> Commit 505be87 - NET: Proper return code handling in eth_init() function in file eth.c
>
> Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
This fixes the 8323.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-08 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 20:32 [U-Boot-Users] [PATCH resending] Align the QE UEC driver with commit 505be87 Emil Medve
2008-01-08 22:34 ` Timur Tabi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox