staging: rtl8192e: rtl92e_get_eeprom_size Fix read size of EPROM_CMD.
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 11 May 2017 17:57:45 +0000 (18:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 09:48:45 +0000 (11:48 +0200)
commit90be652c9f157d44b9c2803f902a8839796c090d
tree95ad049ebed70e1f14061cbaa339ee455af7509d
parent867510bde14e7b7fc6dd0f50b48f6753cfbd227a
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.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c