netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "allan" <allan@asix.com.tw>
To: "'Jussi Kivilinna'" <jussi.kivilinna@mbnet.fi>,
	"'Grant Grundler'" <grundler@chromium.org>
Cc: <netdev@vger.kernel.org>, "'Freddy Xin'" <freddy@asix.com.tw>,
	"'Olof Johansson'" <olofj@chromium.org>,
	"'David S. Miller'" <davem@davemloft.net>,
	"'David Hollis'" <dhollis@davehollis.com>
Subject: RE: asix, setting MAC broken in v3.2. Bisected to "NET: fix phy init for AX88772 USB ethernet".
Date: Sun, 8 Jan 2012 23:28:41 +0800	[thread overview]
Message-ID: <002001ccce1a$3c5337a0$b4f9a6e0$@com.tw> (raw)
In-Reply-To: <20120108171802.287811bpiixnymys@www.81.fi>

Dear Jussi,

Please help to double check if the following information is helpful to solve your issue or not? If no, please deliver us your test asix.c driver file and detailed test procedures for further investigation. Thanks a lot.

==============
Actually, if you just want to manually set the MAC address of your AX88772B/AX88772A/AX88178 devices for engineering testing, you can refer to below procedures to temporary change the MAC address of your AX88772B/AX88772A/AX88178 device on Linux platform through the “ax8817x_set_mac_addr()” routine of AX88772B/AX88772A/AX88178 Linux driver source code.

How to change MAC address in Linux
http://linuxhelp.blogspot.com/2005/09/how-to-change-mac-address-of-your.html 

# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:30
# ifconfig eth0 up


---
Best regards,
Allan Chou
Technical Support Division
ASIX Electronics Corporation
TEL: 886-3-5799500 ext.228
FAX: 886-3-5799558
E-mail: allan@asix.com.tw 
http://www.asix.com.tw/ 

-----Original Message-----
From: Jussi Kivilinna [mailto:jussi.kivilinna@mbnet.fi] 
Sent: Sunday, January 08, 2012 11:18 PM
To: Grant Grundler
Cc: netdev@vger.kernel.org; Freddy Xin; Olof Johansson; David S. Miller; David Hollis; Allan Chou
Subject: Re: asix, setting MAC broken in v3.2. Bisected to "NET: fix phy init for AX88772 USB ethernet".

Quoting Grant Grundler <grundler@chromium.org>:

> On Fri, Jan 6, 2012 at 3:10 AM, Jussi Kivilinna
> <jussi.kivilinna@mbnet.fi> wrote:
>> Hello,
>>
>> I have asix adapter plugged to mini-server
>
> Which Asix adapter do you have? (Vendor/model)

It's Wii Ethernet adapter,
Bus 001 Device 008: ID 0b95:7720 ASIX Electronics Corp. AX88772

>
> Can you please provide:
> 1) dmesg output from asix driver
> 2) lsusb output for the device

Both attached.

>> and have to change MAC address
>> before DHCP because of ISP. This worked fine, until v3.2. Now I have to set
>> interface in promisc mode to have custom MAC working.
>
> Sorry - I didn't test this but I also would not expect this to break
> with the changes in 3.2.
>
> I'll see if Freddy or Allan (ASIX) need my help with this.

I found out that setting MAC in ax88722_reset() solves the issue for  
me. Maybe changes to init/reset sequence causes hardware to be reseted  
after set_mac_address call and revert to default MAC?

Patch attached.

-Jussi

  reply	other threads:[~2012-01-08 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 11:10 asix, setting MAC broken in v3.2. Bisected to "NET: fix phy init for AX88772 USB ethernet" Jussi Kivilinna
2012-01-06 17:33 ` Grant Grundler
2012-01-08 15:18   ` Jussi Kivilinna
2012-01-08 15:28     ` allan [this message]
2012-01-09 10:53       ` Jussi Kivilinna
2012-01-10  1:53         ` ASIX Allan Email [office]
2012-01-10  5:27         ` ASIX Allan Email [office]
2012-01-09 17:21     ` Grant Grundler
2012-01-10  1:38       ` Grant Grundler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002001ccce1a$3c5337a0$b4f9a6e0$@com.tw' \
    --to=allan@asix.com.tw \
    --cc=davem@davemloft.net \
    --cc=dhollis@davehollis.com \
    --cc=freddy@asix.com.tw \
    --cc=grundler@chromium.org \
    --cc=jussi.kivilinna@mbnet.fi \
    --cc=netdev@vger.kernel.org \
    --cc=olofj@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).