staging: rtl8192e: Rework EEPROM handling code
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Thu, 30 Jul 2015 21:48:50 +0000 (23:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:46:43 +0000 (17:46 -0700)
commit08582d83e5a23aa2f6316421a4f14a44be3c8e32
treedddf23e7e46346287a4f03ab22a10a54043b01e7
parentfdc792cd1b5c86cb34770707aa1b04edce5288cf
staging: rtl8192e: Rework EEPROM handling code

Card configuration is stored in SPI EEPROM (93c46 or 93c56)
working in 128|256x16 mode.
Communication is handled using GPIO bitbang.

>From behaviour perspective, delay after read was removed.
It is not needed as we wait after reading GPIO mapped to
PCI-E register - it should have no side effects.

According to sample EEPROM datasheet (AT93Cx6), max frequency for
worst case scenario (1.8V supply) is 250kHZ (vs. 1MHz for 5V).
Driver generates ~50kHZ clock - margin should be big enough
even for devices from other vendors.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h
drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c