2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/drivers/staging/ks7010
Tobin C. Harding f1e79f4b96 staging: ks7010: refactor SDIO read/write helpers
Driver SDIO code uses helper functions to do IO to the SDIO
device. Current helpers handle IO of a single byte as well as
multi-byte. Driver predominately uses single byte IO. If the
common case is made simple it simplifies the whole driver. The common
case can be made simple by splitting the multi-byte and single byte
calls into separate functions, i.e 4 functions in total, read single
byte, read multi-byte, write single byte, write multi-byte.

Also, we need to handle the debug code. Currently debug calls after
read/write fail access the IO buffer. This buffer, at best, does not hold
useful data on the error path, at worst is uninitialized and holds
garbage.

Split read/write helper functions into two functions each, one for
single byte IO and one for multi-byte IO. Fix all call sites. Do not
change the program logic.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-18 13:47:31 +02:00
..
eap_packet.h staging: ks7010: eap_packet: Format comments to fit in line 2017-03-09 14:01:29 +01:00
Kconfig staging: ks7010: remove custom firmware loader 2016-06-07 22:42:53 -07:00
ks7010_sdio.c staging: ks7010: refactor SDIO read/write helpers 2017-04-18 13:47:31 +02:00
ks7010_sdio.h staging: ks7010: add struct comment to ks_sdio_card 2017-04-18 13:47:31 +02:00
ks_hostif.c staging: ks7010: move hw info into dev private data 2017-04-18 13:47:31 +02:00
ks_hostif.h staging: ks7010: fix complete_handler 2017-04-18 13:33:17 +02:00
ks_wlan_ioctl.h staging: ks7010: add parentheses to complex macro 2017-03-14 06:20:57 +08:00
ks_wlan_net.c staging: ks7010: fix complete_handler 2017-04-18 13:33:17 +02:00
ks_wlan.h staging: ks7010: move hw info into dev private data 2017-04-18 13:47:31 +02:00
Makefile staging: ks7010: remove cfg file handling 2016-06-18 19:45:55 -07:00
michael_mic.c staging: ks7010: fix checkpatch SPACING 2017-03-21 08:52:33 +01:00
michael_mic.h staging: ks7010: fix spelling of Michael MIC 2017-03-14 08:04:51 +08:00
TODO staging: ks7010: add task to TODO file 2017-04-11 16:05:51 +02:00