* [PATCH] net/e1000: init eeprom word size if only iNVM is found
@ 2018-01-23 14:41 Lucas Stach
2018-01-24 10:34 ` Lucas Stach
0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2018-01-23 14:41 UTC (permalink / raw)
To: barebox
The commit removing the iNVM enum type didn't make sure that the code path
initializing the word size is also executed when only the iNVM is present.
This leads to failed reads, as the read function will check the word size.
Fixes: 761bed13abcb (net/e1000: provide access to iNVM even if a
flash is present)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
drivers/net/e1000/eeprom.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/e1000/eeprom.c b/drivers/net/e1000/eeprom.c
index 748d8afe7922..bf08ac87fdbb 100644
--- a/drivers/net/e1000/eeprom.c
+++ b/drivers/net/e1000/eeprom.c
@@ -506,7 +506,8 @@ int32_t e1000_init_eeprom_params(struct e1000_hw *hw)
break;
}
- if (eeprom->type == e1000_eeprom_spi) {
+ /* SPI or iNVM */
+ if (!eeprom->word_size) {
/* eeprom_size will be an enum [0..8] that maps
* to eeprom sizes 128B to
* 32KB (incremented by powers of 2).
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/e1000: init eeprom word size if only iNVM is found
2018-01-23 14:41 [PATCH] net/e1000: init eeprom word size if only iNVM is found Lucas Stach
@ 2018-01-24 10:34 ` Lucas Stach
0 siblings, 0 replies; 2+ messages in thread
From: Lucas Stach @ 2018-01-24 10:34 UTC (permalink / raw)
To: barebox
Please drop this patch. It seems there are some more issues with the
iNVM support that I'm currently digging into.
Am Dienstag, den 23.01.2018, 15:41 +0100 schrieb Lucas Stach:
> The commit removing the iNVM enum type didn't make sure that the code
> path
> initializing the word size is also executed when only the iNVM is
> present.
> This leads to failed reads, as the read function will check the word
> size.
>
> Fixes: 761bed13abcb (net/e1000: provide access to iNVM even if a
> flash is present)
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> drivers/net/e1000/eeprom.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/e1000/eeprom.c b/drivers/net/e1000/eeprom.c
> index 748d8afe7922..bf08ac87fdbb 100644
> --- a/drivers/net/e1000/eeprom.c
> +++ b/drivers/net/e1000/eeprom.c
> @@ -506,7 +506,8 @@ int32_t e1000_init_eeprom_params(struct e1000_hw
> *hw)
> break;
> }
>
> - if (eeprom->type == e1000_eeprom_spi) {
> + /* SPI or iNVM */
> + if (!eeprom->word_size) {
> /* eeprom_size will be an enum [0..8] that maps
> * to eeprom sizes 128B to
> * 32KB (incremented by powers of 2).
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-24 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 14:41 [PATCH] net/e1000: init eeprom word size if only iNVM is found Lucas Stach
2018-01-24 10:34 ` Lucas Stach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox