All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset
@ 2015-06-15 10:40 Bin Meng
  2015-06-15 15:43 ` Joe Hershberger
  2015-07-08 17:43 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Bin Meng @ 2015-06-15 10:40 UTC (permalink / raw)
  To: u-boot

commit f566c99 "net: Update hardware MAC address if it changes in env"
removes writing MAC address to designware controller after soft reset.
This makes designware ethernet port fail to work. Actually the MAC
address should always be programmed after soft reset.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 drivers/net/designware.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index ae51cf3..645ca64 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -243,6 +243,12 @@ static int _dw_eth_init(struct dw_eth_dev *priv, u8 *enetaddr)
 		mdelay(100);
 	};
 
+	/*
+	 * Soft reset above clears HW address registers.
+	 * So we have to set it here once again.
+	 */
+	_dw_write_hwaddr(priv, enetaddr);
+
 	rx_descs_init(priv);
 	tx_descs_init(priv);
 
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset
  2015-06-15 10:40 [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset Bin Meng
@ 2015-06-15 15:43 ` Joe Hershberger
  2015-07-08  3:56   ` Bin Meng
  2015-07-08 17:43 ` [U-Boot] " Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Joe Hershberger @ 2015-06-15 15:43 UTC (permalink / raw)
  To: u-boot

Hi Bin,

On Mon, Jun 15, 2015 at 5:40 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
> commit f566c99 "net: Update hardware MAC address if it changes in env"
> removes writing MAC address to designware controller after soft reset.
> This makes designware ethernet port fail to work. Actually the MAC
> address should always be programmed after soft reset.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset
  2015-06-15 15:43 ` Joe Hershberger
@ 2015-07-08  3:56   ` Bin Meng
  0 siblings, 0 replies; 4+ messages in thread
From: Bin Meng @ 2015-07-08  3:56 UTC (permalink / raw)
  To: u-boot

+Tom

On Mon, Jun 15, 2015 at 11:43 PM, Joe Hershberger
<joe.hershberger@gmail.com> wrote:
> Hi Bin,
>
> On Mon, Jun 15, 2015 at 5:40 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
>> commit f566c99 "net: Update hardware MAC address if it changes in env"
>> removes writing MAC address to designware controller after soft reset.
>> This makes designware ethernet port fail to work. Actually the MAC
>> address should always be programmed after soft reset.
>>
>> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>> ---
>
> Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Can you grab this one for v2015.07 release? Thanks!

Regards,
Bin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] net: designware: Program MAC address to hardware after soft reset
  2015-06-15 10:40 [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset Bin Meng
  2015-06-15 15:43 ` Joe Hershberger
@ 2015-07-08 17:43 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2015-07-08 17:43 UTC (permalink / raw)
  To: u-boot

On Mon, Jun 15, 2015 at 06:40:19PM +0800, Bin Meng wrote:

> commit f566c99 "net: Update hardware MAC address if it changes in env"
> removes writing MAC address to designware controller after soft reset.
> This makes designware ethernet port fail to work. Actually the MAC
> address should always be programmed after soft reset.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150708/754c3c79/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-08 17:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-15 10:40 [U-Boot] [PATCH] net: designware: Program MAC address to hardware after soft reset Bin Meng
2015-06-15 15:43 ` Joe Hershberger
2015-07-08  3:56   ` Bin Meng
2015-07-08 17:43 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.