Skip to content

Commit 7d14c68

Browse files
palistorulf
authored andcommitted
mmc: sdio: Move SDIO IDs from mwifiex driver to common include file
Add _WLAN suffix to macro names for consistency with other Marvell macros. These IDs represents wlan function of combo bt/wlan cards. Other functions of these cards have different IDs. Signed-off-by: Pali Rohár <[email protected]> Acked-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Ganapathi Bhat <[email protected]>
1 parent 2849bee commit 7d14c68

File tree

2 files changed

+19
-29
lines changed

2 files changed

+19
-29
lines changed

drivers/net/wireless/marvell/mwifiex/sdio.c

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -480,45 +480,25 @@ static void mwifiex_sdio_coredump(struct device *dev)
480480
schedule_work(&card->work);
481481
}
482482

483-
/* Device ID for SD8786 */
484-
#define SDIO_DEVICE_ID_MARVELL_8786 (0x9116)
485-
/* Device ID for SD8787 */
486-
#define SDIO_DEVICE_ID_MARVELL_8787 (0x9119)
487-
/* Device ID for SD8797 */
488-
#define SDIO_DEVICE_ID_MARVELL_8797 (0x9129)
489-
/* Device ID for SD8897 */
490-
#define SDIO_DEVICE_ID_MARVELL_8897 (0x912d)
491-
/* Device ID for SD8887 */
492-
#define SDIO_DEVICE_ID_MARVELL_8887 (0x9135)
493-
/* Device ID for SD8801 */
494-
#define SDIO_DEVICE_ID_MARVELL_8801 (0x9139)
495-
/* Device ID for SD8977 */
496-
#define SDIO_DEVICE_ID_MARVELL_8977 (0x9145)
497-
/* Device ID for SD8987 */
498-
#define SDIO_DEVICE_ID_MARVELL_8987 (0x9149)
499-
/* Device ID for SD8997 */
500-
#define SDIO_DEVICE_ID_MARVELL_8997 (0x9141)
501-
502-
503483
/* WLAN IDs */
504484
static const struct sdio_device_id mwifiex_ids[] = {
505-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8786),
485+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8786_WLAN),
506486
.driver_data = (unsigned long) &mwifiex_sdio_sd8786},
507-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8787),
487+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8787_WLAN),
508488
.driver_data = (unsigned long) &mwifiex_sdio_sd8787},
509-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8797),
489+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8797_WLAN),
510490
.driver_data = (unsigned long) &mwifiex_sdio_sd8797},
511-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8897),
491+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8897_WLAN),
512492
.driver_data = (unsigned long) &mwifiex_sdio_sd8897},
513-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8887),
493+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8887_WLAN),
514494
.driver_data = (unsigned long)&mwifiex_sdio_sd8887},
515-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8801),
495+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8801_WLAN),
516496
.driver_data = (unsigned long)&mwifiex_sdio_sd8801},
517-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8977),
497+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8977_WLAN),
518498
.driver_data = (unsigned long)&mwifiex_sdio_sd8977},
519-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8987),
499+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8987_WLAN),
520500
.driver_data = (unsigned long)&mwifiex_sdio_sd8987},
521-
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8997),
501+
{SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8997_WLAN),
522502
.driver_data = (unsigned long)&mwifiex_sdio_sd8997},
523503
{},
524504
};

include/linux/mmc/sdio_ids.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,18 @@
5858
#define SDIO_DEVICE_ID_MARVELL_LIBERTAS 0x9103
5959
#define SDIO_DEVICE_ID_MARVELL_8688_WLAN 0x9104
6060
#define SDIO_DEVICE_ID_MARVELL_8688_BT 0x9105
61+
#define SDIO_DEVICE_ID_MARVELL_8786_WLAN 0x9116
62+
#define SDIO_DEVICE_ID_MARVELL_8787_WLAN 0x9119
6163
#define SDIO_DEVICE_ID_MARVELL_8797_F0 0x9128
64+
#define SDIO_DEVICE_ID_MARVELL_8797_WLAN 0x9129
65+
#define SDIO_DEVICE_ID_MARVELL_8897_WLAN 0x912d
6266
#define SDIO_DEVICE_ID_MARVELL_8887_F0 0x9134
67+
#define SDIO_DEVICE_ID_MARVELL_8887_WLAN 0x9135
68+
#define SDIO_DEVICE_ID_MARVELL_8801_WLAN 0x9139
69+
#define SDIO_DEVICE_ID_MARVELL_8997_F0 0x9140
70+
#define SDIO_DEVICE_ID_MARVELL_8997_WLAN 0x9141
71+
#define SDIO_DEVICE_ID_MARVELL_8977_WLAN 0x9145
72+
#define SDIO_DEVICE_ID_MARVELL_8987_WLAN 0x9149
6373

6474
#define SDIO_VENDOR_ID_MEDIATEK 0x037a
6575

0 commit comments

Comments
 (0)