From: Peter Korsgaard <peter@korsgaard.com>
To: Joseph CHANG <josright123@gmail.com>
Cc: Peter Korsgaard <jacmet@sunsite.dk>,
netdev@vger.kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org,
Joseph Chang <joseph_chang@davicom.com.tw>
Subject: Re: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation
Date: Thu, 10 Mar 2016 19:36:46 +0100 [thread overview]
Message-ID: <87r3fimb7l.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1457609038-3636-1-git-send-email-josright123@gmail.com> (Joseph CHANG's message of "Thu, 10 Mar 2016 19:23:58 +0800")
>>>>> "Joseph" == Joseph CHANG <josright123@gmail.com> writes:
> Add to maintain variant eeprom adapters which may have not right
> dm962x's format.
> Signed-off-by: Joseph CHANG <josright123@gmail.com>
> +static void dm_render_begin(struct usbnet *dev)
> +{
> + /* Render eeprom if need, WORD3 render, set D[15:14] 01b */
> + dm_eeprom_render(dev, 3, 0x4000, 0xc000);
> + /* Render eeprom if need, WORD7 render, clear D[10] */
> + dm_eeprom_render(dev, 7, 0x0000, 0x0400);
> + /* Render eeprom if need, WORD11 render, need 0x005a */
> + dm_eeprom_render(dev, 11, 0x005a, 0xffff);
> + /* Render eeprom if need, WORD12 render, need 0x0007 */
> + dm_eeprom_render(dev, 12, DM_EP3I_VAL, 0xffff);
With render I guess you mean something like fixup? I'm not sure we want
to do this automatically without an explicit action from the user.
How common are these adapters without valid eeprom? What happens if the
eeprom content isn't fixed?
Do we need to reset the device once the eeprom is updated?
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2016-03-10 18:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 11:23 Joseph CHANG
2016-03-10 18:36 ` Peter Korsgaard [this message]
2016-03-11 10:56 ` Joseph Chang
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=87r3fimb7l.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=jacmet@sunsite.dk \
--cc=joseph_chang@davicom.com.tw \
--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
all inboxes | Powered by JetHome®