patch "staging: rtl8192e: rtl92e_get_eeprom_size Fix read size of EPROM_CMD." added to staging-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging: rtl8192e: rtl92e_get_eeprom_size Fix read size of EPROM_CMD.
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
90be652c9f157d44b9c2803f902a8839796c090dMon Sep 17 00:00:00 2001
From: Malcolm Priestley <[email protected]>
Date: Thu, 11 May 2017 18:57:45 +0100
Subject: staging: rtl8192e: rtl92e_get_eeprom_size Fix read size of EPROM_CMD.
EPROM_CMD is 2 byte aligned on PCI map so calling with rtl92e_readl will return invalid data so use rtl92e_readw.
The device is unable to select the right eeprom type.
--- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +1 -1
@@ -625,7 +625,7 @@ void rtl92e_get_eeprom_size(struct net_device *dev)struct r8192_priv *priv =rtllib_priv (dev);RT_TRACE (COMP_INIT ,"===========>%s()\n" , __func__); - curCR =rtl92e_readl (dev,EPROM_CMD ); + curCR =rtl92e_readw (dev,EPROM_CMD );RT_TRACE (COMP_INIT ,"read from Reg Cmd9346CR(%x):%x\n" ,EPROM_CMD , curCR); priv->epromtype = (curCR & EPROM_CMD_9356SEL) ? EEPROM_93C56 :
Signature · 1 line
2.13.0