From: "Joseph Chang" <joseph_chang@davicom.com.tw>
To: "'Ben Hutchings'" <ben@decadent.org.uk>,
"'Joseph Chang'" <joseph_chang@davicom.com.tw>,
"'Joseph CHANG'" <josright123@gmail.com>,
"'Peter Korsgaard'" <jacmet@sunsite.dk>, <netdev@vger.kernel.org>,
<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH 3/3] dm9601: add support ethtool style utility
Date: Fri, 11 Mar 2016 19:08:57 +0800 [thread overview]
Message-ID: <201603111110.u2BBAiwV020429@mail.davicom.com.tw> (raw)
In-Reply-To: <1457615865.3001.36.camel@decadent.org.uk>
I tested by
./ethtool -E eth0 magic 0x9620 offset 0 length 3 value 0xf1 value 0xf2 value 0xf3
I think ethtool need [ value N ] for each byte (so need three "value xx" in above command line),
am I right?
Oh, I can see it goes wrong~ Thanks~
* I will go a vacation from now on, this issue will be study later.
Any helpful reference implementation data is appreciated.
Best Regards,
Joseph CHANG
System Application Engineering Division
Davicom Semiconductor, Inc.
No. 6 Li-Hsin 6th Rd., Science-Based Park,
Hsin-Chu, Taiwan.
Tel: 886-3-5798797 Ex 8534
Fax: 886-3-5646929
Web: http://www.davicom.com.tw
-----Original Message-----
From: Ben Hutchings [mailto:ben@decadent.org.uk]
Sent: Thursday, March 10, 2016 9:18 PM
To: Joseph Chang; 'Joseph CHANG'; 'Peter Korsgaard'; netdev@vger.kernel.org; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] dm9601: add support ethtool style utility
On Thu, 2016-03-10 at 20:51 +0800, Joseph Chang wrote:
> I did verify to dump EEPROM data and also write EEPROM by per byte.
>
> 1.Plug dm9601/dm9621 adapter and has get dm9601.ko be 'insmod' to have 'eht0',
> 2.Run ethtool v3.7 (as attached executable file and it's help display.)
> 3. Commands:
> ./ethtool -e eth0 (dump EEPROM data for all the .get_eeprom_len )
> ./ethtool -E eth0 magic 0x9620 offset 0 value 0xf1 (write 0xf1 to eeprom byte0)
> ./ethtool -E eth0 magic 0x9620 offset 1 value 0xf2 (write 0xf2 to eeprom byte1)
> ./ethtool -E eth0 magic 0x9620 offset 2 value 0xf3 (write 0xf3 to eeprom byte2)
[...]
So you only tested writing 1 byte at a time. Try again with 3 bytes
and you'll see how it goes wrong.
Ben.
--
Ben Hutchings
To err is human; to really foul things up requires a computer.
next prev parent reply other threads:[~2016-03-11 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 11:24 [PATCH 3/3] dm9601: add support ethtool style utility Joseph CHANG
[not found] ` <1457609067-3674-1-git-send-email-josright123-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-10 11:49 ` Ben Hutchings
2016-03-10 12:51 ` Joseph Chang
[not found] ` <201603101253.u2ACrnUJ002444-LuMwerrUz4dPN/9CU4g/Nk1QfAb4XDUr@public.gmane.org>
2016-03-10 13:17 ` Ben Hutchings
2016-03-11 11:08 ` Joseph Chang [this message]
2016-03-11 11:33 ` Ben Hutchings
[not found] ` <1457696013.3001.86.camel-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
2016-03-11 11:42 ` Ben Hutchings
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=201603111110.u2BBAiwV020429@mail.davicom.com.tw \
--to=joseph_chang@davicom.com.tw \
--cc=ben@decadent.org.uk \
--cc=jacmet@sunsite.dk \
--cc=josright123@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.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