All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
@ 2020-11-25 18:23 Brian O'Keefe
  2020-11-25 18:25 ` [PATCH 2/2] " Brian O'Keefe
  2020-11-25 18:33 ` [PATCH 1/2] " Brian O'Keefe
  0 siblings, 2 replies; 7+ messages in thread
From: Brian O'Keefe @ 2020-11-25 18:23 UTC (permalink / raw)
  To: Ulf Hansson, linux-mmc
  Cc: linux-wireless, Arend Van Spriel, Greg Kroah-Hartman,
	Hans de Goede, Larry Finger

Macro names were derived from the Windows driver, as that was the best
available source.

Signed-off-by: Brian O'Keefe <bokeefe@alum.wpi.edu>
---
  include/linux/mmc/sdio_ids.h | 14 ++++++++++++++
  1 file changed, 14 insertions(+)

diff --git a/include/linux/mmc/sdio_ids.h b/include/linux/mmc/sdio_ids.h
index 12036619346c..97ccb0ac5e43 100644
--- a/include/linux/mmc/sdio_ids.h
+++ b/include/linux/mmc/sdio_ids.h
@@ -42,6 +42,20 @@
  #define SDIO_VENDOR_ID_TI                      0x0097
  #define SDIO_DEVICE_ID_TI_WL1271               0x4076

+#define SDIO_VENDOR_ID_REALTEK                  0x024c
+#define SDIO_DEVICE_ID_REALTEK_BESTBUY_0        0x0240
+#define SDIO_DEVICE_ID_REALTEK_BESTBUY_1        0x0241
+#define SDIO_DEVICE_ID_REALTEK_HP               0x0523
+#define SDIO_DEVICE_ID_REALTEK_ECS              0x0524
+#define SDIO_DEVICE_ID_REALTEK_TCL              0x0525
+#define SDIO_DEVICE_ID_REALTEK_ACER             0x0623
+#define SDIO_DEVICE_ID_REALTEK_RSVD             0x0624
+#define SDIO_DEVICE_ID_REALTEK_ROCKCHIP         0x0625
+#define SDIO_DEVICE_ID_REALTEK_BRASWELL         0x0626
+#define SDIO_DEVICE_ID_REALTEK_ACER_PWR_LIMIT   0x0627
+#define SDIO_DEVICE_ID_REALTEK_COMMON_01        0x8753
+#define SDIO_DEVICE_ID_REALTEK_COMMON_02        0xb723
+
  #define SDIO_VENDOR_ID_ATHEROS                 0x0271
  #define SDIO_DEVICE_ID_ATHEROS_AR6003_00       0x0300
  #define SDIO_DEVICE_ID_ATHEROS_AR6003_01       0x0301
--
2.25.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
  2020-11-25 18:23 [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file Brian O'Keefe
@ 2020-11-25 18:25 ` Brian O'Keefe
  2020-11-25 18:33 ` [PATCH 1/2] " Brian O'Keefe
  1 sibling, 0 replies; 7+ messages in thread
From: Brian O'Keefe @ 2020-11-25 18:25 UTC (permalink / raw)
  To: linux-wireless, Greg Kroah-Hartman, Hans de Goede, Larry Finger
  Cc: Ulf Hansson, linux-mmc, Arend Van Spriel

Macro names were derived from the Windows driver, as that was the best
available source.

Signed-off-by: Brian O'Keefe <bokeefe@alum.wpi.edu>
---
  drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 13 +++++++------
  1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c 
b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index b2208e5f190a..8dd3763d1a33 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -10,18 +10,19 @@
  #include <rtw_debug.h>
  #include <hal_btcoex.h>
  #include <linux/jiffies.h>
+#include <linux/mmc/sdio_ids.h>

  #ifndef dev_to_sdio_func
  #define dev_to_sdio_func(d)     container_of(d, struct sdio_func, dev)
  #endif

  static const struct sdio_device_id sdio_ids[] = {
-	{ SDIO_DEVICE(0x024c, 0x0523), },
-	{ SDIO_DEVICE(0x024c, 0x0525), },
-	{ SDIO_DEVICE(0x024c, 0x0623), },
-	{ SDIO_DEVICE(0x024c, 0x0626), },
-	{ SDIO_DEVICE(0x024c, 0x0627), },
-	{ SDIO_DEVICE(0x024c, 0xb723), },
+	{ SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, SDIO_DEVICE_ID_REALTEK_HP), },
+	{ SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, SDIO_DEVICE_ID_REALTEK_TCL), },
+	{ SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, SDIO_DEVICE_ID_REALTEK_ACER), },
+	{ SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, SDIO_DEVICE_ID_REALTEK_BRASWELL), },
+	{ SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 
SDIO_DEVICE_ID_REALTEK_ACER_PWR_LIMIT), },
+	{ SDIO_DEVICE(SDIO_VENDOR_ID_REALTEK, 
SDIO_DEVICE_ID_REALTEK_COMMON_02), },
  	{ /* end: all zeroes */				},
  };
  MODULE_DEVICE_TABLE(sdio, sdio_ids);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
  2020-11-25 18:23 [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file Brian O'Keefe
  2020-11-25 18:25 ` [PATCH 2/2] " Brian O'Keefe
@ 2020-11-25 18:33 ` Brian O'Keefe
  2020-11-25 19:13   ` Greg Kroah-Hartman
  1 sibling, 1 reply; 7+ messages in thread
From: Brian O'Keefe @ 2020-11-25 18:33 UTC (permalink / raw)
  To: Ulf Hansson, linux-mmc
  Cc: linux-wireless, Arend Van Spriel, Greg Kroah-Hartman,
	Hans de Goede, Larry Finger

Macro names were derived from the Windows driver, as that was the best
available source.

Signed-off-by: Brian O'Keefe <bokeefe@alum.wpi.edu>
---

  With apologies; something I did mangled spacing in the previous 
version of the first patch.

---
  include/linux/mmc/sdio_ids.h | 14 ++++++++++++++
  1 file changed, 14 insertions(+)

diff --git a/include/linux/mmc/sdio_ids.h b/include/linux/mmc/sdio_ids.h
index 12036619346c..97ccb0ac5e43 100644
--- a/include/linux/mmc/sdio_ids.h
+++ b/include/linux/mmc/sdio_ids.h
@@ -42,6 +42,20 @@
  #define SDIO_VENDOR_ID_TI			0x0097
  #define SDIO_DEVICE_ID_TI_WL1271		0x4076

+#define SDIO_VENDOR_ID_REALTEK			0x024c
+#define SDIO_DEVICE_ID_REALTEK_BESTBUY_0	0x0240
+#define SDIO_DEVICE_ID_REALTEK_BESTBUY_1	0x0241
+#define SDIO_DEVICE_ID_REALTEK_HP		0x0523
+#define SDIO_DEVICE_ID_REALTEK_ECS		0x0524
+#define SDIO_DEVICE_ID_REALTEK_TCL		0x0525
+#define SDIO_DEVICE_ID_REALTEK_ACER		0x0623
+#define SDIO_DEVICE_ID_REALTEK_RSVD		0x0624
+#define SDIO_DEVICE_ID_REALTEK_ROCKCHIP		0x0625
+#define SDIO_DEVICE_ID_REALTEK_BRASWELL		0x0626
+#define SDIO_DEVICE_ID_REALTEK_ACER_PWR_LIMIT	0x0627
+#define SDIO_DEVICE_ID_REALTEK_COMMON_01	0x8753
+#define SDIO_DEVICE_ID_REALTEK_COMMON_02	0xb723
+
  #define SDIO_VENDOR_ID_ATHEROS			0x0271
  #define SDIO_DEVICE_ID_ATHEROS_AR6003_00	0x0300
  #define SDIO_DEVICE_ID_ATHEROS_AR6003_01	0x0301
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
  2020-11-25 18:33 ` [PATCH 1/2] " Brian O'Keefe
@ 2020-11-25 19:13   ` Greg Kroah-Hartman
  2020-11-26  6:57     ` Arend Van Spriel
  0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2020-11-25 19:13 UTC (permalink / raw)
  To: Brian O'Keefe
  Cc: Ulf Hansson, linux-mmc, linux-wireless, Arend Van Spriel,
	Hans de Goede, Larry Finger

On Wed, Nov 25, 2020 at 01:33:00PM -0500, Brian O'Keefe wrote:
> Macro names were derived from the Windows driver, as that was the best
> available source.

Why move these?  What does this help with?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
  2020-11-25 19:13   ` Greg Kroah-Hartman
@ 2020-11-26  6:57     ` Arend Van Spriel
  2020-11-26  7:28       ` Greg Kroah-Hartman
  0 siblings, 1 reply; 7+ messages in thread
From: Arend Van Spriel @ 2020-11-26  6:57 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Brian O'Keefe
  Cc: Ulf Hansson, linux-mmc, linux-wireless, Hans de Goede, Larry Finger

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

On November 25, 2020 8:13:07 PM Greg Kroah-Hartman 
<gregkh@linuxfoundation.org> wrote:

> On Wed, Nov 25, 2020 at 01:33:00PM -0500, Brian O'Keefe wrote:
>> Macro names were derived from the Windows driver, as that was the best
>> available source.
>
> Why move these?  What does this help with?

Hi Greg,

Most if not all SDIO-based (wifi) drivers in mainline have their venid and 
devid definitions in that header file. So seems like a good idea to me, but 
maybe not so for a staging driver?

Regards,
Arend



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4176 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
  2020-11-26  6:57     ` Arend Van Spriel
@ 2020-11-26  7:28       ` Greg Kroah-Hartman
  2020-11-26 12:29         ` Ulf Hansson
  0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2020-11-26  7:28 UTC (permalink / raw)
  To: Arend Van Spriel
  Cc: Brian O'Keefe, Ulf Hansson, linux-mmc, linux-wireless,
	Hans de Goede, Larry Finger

On Thu, Nov 26, 2020 at 07:57:23AM +0100, Arend Van Spriel wrote:
> On November 25, 2020 8:13:07 PM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> 
> > On Wed, Nov 25, 2020 at 01:33:00PM -0500, Brian O'Keefe wrote:
> > > Macro names were derived from the Windows driver, as that was the best
> > > available source.
> > 
> > Why move these?  What does this help with?
> 
> Hi Greg,
> 
> Most if not all SDIO-based (wifi) drivers in mainline have their venid and
> devid definitions in that header file. So seems like a good idea to me, but
> maybe not so for a staging driver?

If the driver ever gets moved out, maybe do it then as part of that
effort.  I haven't seen that happening, so I would recommend just
leaving this alone for now.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file
  2020-11-26  7:28       ` Greg Kroah-Hartman
@ 2020-11-26 12:29         ` Ulf Hansson
  0 siblings, 0 replies; 7+ messages in thread
From: Ulf Hansson @ 2020-11-26 12:29 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Arend Van Spriel, Brian O'Keefe, linux-mmc, linux-wireless,
	Hans de Goede, Larry Finger

On Thu, 26 Nov 2020 at 08:27, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> On Thu, Nov 26, 2020 at 07:57:23AM +0100, Arend Van Spriel wrote:
> > On November 25, 2020 8:13:07 PM Greg Kroah-Hartman
> > <gregkh@linuxfoundation.org> wrote:
> >
> > > On Wed, Nov 25, 2020 at 01:33:00PM -0500, Brian O'Keefe wrote:
> > > > Macro names were derived from the Windows driver, as that was the best
> > > > available source.
> > >
> > > Why move these?  What does this help with?
> >
> > Hi Greg,
> >
> > Most if not all SDIO-based (wifi) drivers in mainline have their venid and
> > devid definitions in that header file. So seems like a good idea to me, but
> > maybe not so for a staging driver?
>
> If the driver ever gets moved out, maybe do it then as part of that
> effort.  I haven't seen that happening, so I would recommend just
> leaving this alone for now.

+1

Kind regards
Uffe

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-26 12:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 18:23 [PATCH 1/2] mmc: sdio: Move SDIO IDs from rtl8723bs, driver to common include file Brian O'Keefe
2020-11-25 18:25 ` [PATCH 2/2] " Brian O'Keefe
2020-11-25 18:33 ` [PATCH 1/2] " Brian O'Keefe
2020-11-25 19:13   ` Greg Kroah-Hartman
2020-11-26  6:57     ` Arend Van Spriel
2020-11-26  7:28       ` Greg Kroah-Hartman
2020-11-26 12:29         ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.