Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355307

Re: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation

From Peter Korsgaard <peter@korsgaard.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation
Date 2016-03-10 19:40 +0100
Message-ID <rbdF7-2tR-1@gated-at.bofh.it> (permalink)
References <rb6X0-6lf-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>>>>> "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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation Joseph CHANG <josright123@gmail.com> - 2016-03-10 12:30 +0100
  Re: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation Peter Korsgaard <peter@korsgaard.com> - 2016-03-10 19:40 +0100
    RE: [PATCH 2/3] dm9601: manage eeprom to assure the chip for correct operation "Joseph Chang" <joseph_chang@davicom.com.tw> - 2016-03-11 12:00 +0100

csiph-web