linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] USB: quirks: Goodix Fingerprint device is not a modem
@ 2021-02-12 10:44 Yorick de Wid
  2021-02-12 11:07 ` [PATCH v2] " Yorick de Wid
  0 siblings, 1 reply; 10+ messages in thread
From: Yorick de Wid @ 2021-02-12 10:44 UTC (permalink / raw)
  To: linux-usb, Oliver Neukum; +Cc: Yorick de Wid

The CDC ACM driver is false matching the Goodix Fingerprint device against
the USB_CDC_ACM_PROTO_AT_V25TER.

Signed-off-by: Yorick de Wid <ydewid@gmail.com>
---
 drivers/usb/class/cdc-acm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 78190574581..41d20a44dc3 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1922,6 +1922,11 @@ static const struct usb_device_id acm_ids[] = {
 	.driver_info = IGNORE_DEVICE,
 	},
 
+	/* Exclude Goodix Fingerprint Reader */
+	{ USB_DEVICE(0x27c6, 0x5395),
+	.driver_info = IGNORE_DEVICE,
+	},
+
 	{ USB_DEVICE(0x1bc7, 0x0021), /* Telit 3G ACM only composition */
 	.driver_info = SEND_ZERO_PACKET,
 	},
-- 
2.30.0


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

* [PATCH v2] Goodix Fingerprint device is not a modem
  2021-02-12 10:44 [PATCH] USB: quirks: Goodix Fingerprint device is not a modem Yorick de Wid
@ 2021-02-12 11:07 ` Yorick de Wid
  2021-02-12 11:10   ` [PATCH v3] " Yorick de Wid
  0 siblings, 1 reply; 10+ messages in thread
From: Yorick de Wid @ 2021-02-12 11:07 UTC (permalink / raw)
  To: linux-usb, Oliver Neukum; +Cc: Yorick de Wid

The CDC ACM driver is false matching the Goodix Fingerprint device against
the USB_CDC_ACM_PROTO_AT_V25TER.

Keep the entries sorted on in VID/PID.

Signed-off-by: Yorick de Wid <ydewid@gmail.com>
---
 drivers/usb/class/cdc-acm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 78190574581..41d20a44dc3 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1922,6 +1922,11 @@ static const struct usb_device_id acm_ids[] = {
 	.driver_info = IGNORE_DEVICE,
 	},
 
+	/* Exclude Goodix Fingerprint Reader */
+	{ USB_DEVICE(0x27c6, 0x5395),
+	.driver_info = IGNORE_DEVICE,
+	},
+
 	{ USB_DEVICE(0x1bc7, 0x0021), /* Telit 3G ACM only composition */
 	.driver_info = SEND_ZERO_PACKET,
 	},
-- 
2.30.0


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

* [PATCH v3] Goodix Fingerprint device is not a modem
  2021-02-12 11:07 ` [PATCH v2] " Yorick de Wid
@ 2021-02-12 11:10   ` Yorick de Wid
  2021-02-12 11:17     ` Greg KH
  2021-02-12 11:43     ` Oliver Neukum
  0 siblings, 2 replies; 10+ messages in thread
From: Yorick de Wid @ 2021-02-12 11:10 UTC (permalink / raw)
  To: linux-usb, Oliver Neukum; +Cc: Yorick de Wid

The CDC ACM driver is false matching the Goodix Fingerprint device against
the USB_CDC_ACM_PROTO_AT_V25TER.

Keep the entries sorted on in VID/PID.

Signed-off-by: Yorick de Wid <ydewid@gmail.com>
---
 drivers/usb/class/cdc-acm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 78190574581..2f4e5174e78 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1929,6 +1929,11 @@ static const struct usb_device_id acm_ids[] = {
 	.driver_info = SEND_ZERO_PACKET,
 	},
 
+	/* Exclude Goodix Fingerprint Reader */
+	{ USB_DEVICE(0x27c6, 0x5395),
+	.driver_info = IGNORE_DEVICE,
+	},
+
 	/* control interfaces without any protocol set */
 	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM,
 		USB_CDC_PROTO_NONE) },
-- 
2.30.0


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

* Re: [PATCH v3] Goodix Fingerprint device is not a modem
  2021-02-12 11:10   ` [PATCH v3] " Yorick de Wid
@ 2021-02-12 11:17     ` Greg KH
  2021-02-12 11:43     ` Oliver Neukum
  1 sibling, 0 replies; 10+ messages in thread
From: Greg KH @ 2021-02-12 11:17 UTC (permalink / raw)
  To: Yorick de Wid; +Cc: linux-usb, Oliver Neukum

On Fri, Feb 12, 2021 at 12:10:48PM +0100, Yorick de Wid wrote:
> The CDC ACM driver is false matching the Goodix Fingerprint device against
> the USB_CDC_ACM_PROTO_AT_V25TER.
> 
> Keep the entries sorted on in VID/PID.
> 
> Signed-off-by: Yorick de Wid <ydewid@gmail.com>
> ---
>  drivers/usb/class/cdc-acm.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
> index 78190574581..2f4e5174e78 100644
> --- a/drivers/usb/class/cdc-acm.c
> +++ b/drivers/usb/class/cdc-acm.c
> @@ -1929,6 +1929,11 @@ static const struct usb_device_id acm_ids[] = {
>  	.driver_info = SEND_ZERO_PACKET,
>  	},
>  
> +	/* Exclude Goodix Fingerprint Reader */
> +	{ USB_DEVICE(0x27c6, 0x5395),
> +	.driver_info = IGNORE_DEVICE,
> +	},
> +
>  	/* control interfaces without any protocol set */
>  	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM,
>  		USB_CDC_PROTO_NONE) },
> -- 
> 2.30.0
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- This looks like a new version of a previously submitted patch, but you
  did not list below the --- line any changes from the previous version.
  Please read the section entitled "The canonical patch format" in the
  kernel file, Documentation/SubmittingPatches for what needs to be done
  here to properly describe this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

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

* Re: [PATCH v3] Goodix Fingerprint device is not a modem
  2021-02-12 11:10   ` [PATCH v3] " Yorick de Wid
  2021-02-12 11:17     ` Greg KH
@ 2021-02-12 11:43     ` Oliver Neukum
  2021-02-12 11:59       ` Yorick de Wid
  1 sibling, 1 reply; 10+ messages in thread
From: Oliver Neukum @ 2021-02-12 11:43 UTC (permalink / raw)
  To: Yorick de Wid, linux-usb

Am Freitag, den 12.02.2021, 12:10 +0100 schrieb Yorick de Wid:
> The CDC ACM driver is false matching the Goodix Fingerprint device against
> the USB_CDC_ACM_PROTO_AT_V25TER.

Hi,

what else is it? Which driver should be used or is it to be handled
in user space? That needs to go into the change log. Otherwise
this patch just looks like it drops every access to the device.

	Regards
		Oliver



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

* Re: [PATCH v3] Goodix Fingerprint device is not a modem
  2021-02-12 11:43     ` Oliver Neukum
@ 2021-02-12 11:59       ` Yorick de Wid
  2021-02-12 14:00         ` Oliver Neukum
  0 siblings, 1 reply; 10+ messages in thread
From: Yorick de Wid @ 2021-02-12 11:59 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-usb

> what else is it?

It's a fingerprint device/biometrics that should be handled by the
Goodix MOC driver in libfprint. libfprint supports some Goodix devices
but not all. I _suspect_ that other PID's from the same VID and
class/subclass/protocol will also match the ACM driver.

Y.

On Fri, Feb 12, 2021 at 12:43 PM Oliver Neukum <oneukum@suse.com> wrote:
>
> Am Freitag, den 12.02.2021, 12:10 +0100 schrieb Yorick de Wid:
> > The CDC ACM driver is false matching the Goodix Fingerprint device against
> > the USB_CDC_ACM_PROTO_AT_V25TER.
>
> Hi,
>
> what else is it? Which driver should be used or is it to be handled
> in user space? That needs to go into the change log. Otherwise
> this patch just looks like it drops every access to the device.
>
>         Regards
>                 Oliver
>
>

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

* Re: [PATCH v3] Goodix Fingerprint device is not a modem
  2021-02-12 11:59       ` Yorick de Wid
@ 2021-02-12 14:00         ` Oliver Neukum
  2021-02-12 14:08           ` [PATCH v4] " Yorick de Wid
  0 siblings, 1 reply; 10+ messages in thread
From: Oliver Neukum @ 2021-02-12 14:00 UTC (permalink / raw)
  To: Yorick de Wid; +Cc: linux-usb

Am Freitag, den 12.02.2021, 12:59 +0100 schrieb Yorick de Wid:
> > what else is it?
> 
> It's a fingerprint device/biometrics that should be handled by the
> Goodix MOC driver in libfprint. libfprint supports some Goodix devices
> but not all. I _suspect_ that other PID's from the same VID and
> class/subclass/protocol will also match the ACM driver.

Hi,
thank you. That is a very good answer. Now could you include
it into the patch description and resend it?

	Regards
		Oliver



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

* [PATCH v4] Goodix Fingerprint device is not a modem
  2021-02-12 14:00         ` Oliver Neukum
@ 2021-02-12 14:08           ` Yorick de Wid
  2021-02-12 15:34             ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Yorick de Wid @ 2021-02-12 14:08 UTC (permalink / raw)
  To: linux-usb, Oliver Neukum; +Cc: Yorick de Wid

The CDC ACM driver is false matching the Goodix Fingerprint device against the USB_CDC_ACM_PROTO_AT_V25TER.

The Goodix Fingerprint device is a biometrics sensor that should be handled in user-space.
libfprint has some support for Goodix fingerprint sensors, although not for this particular one.
It is possible that the vendor allocates a PID per OEM (Lenovo, Dell etc).
If this happens to be the case then more devices from the same vendor could potentially match the ACM modem module table.

Signed-off-by: Yorick de Wid <ydewid@gmail.com>
---
v1 -> v3:
Moved the entry down to keep the VID/PID order.
v3 -> v4:
Patch description of device in question

 drivers/usb/class/cdc-acm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 78190574581..2f4e5174e78 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1929,6 +1929,11 @@ static const struct usb_device_id acm_ids[] = {
 	.driver_info = SEND_ZERO_PACKET,
 	},
 
+	/* Exclude Goodix Fingerprint Reader */
+	{ USB_DEVICE(0x27c6, 0x5395),
+	.driver_info = IGNORE_DEVICE,
+	},
+
 	/* control interfaces without any protocol set */
 	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM,
 		USB_CDC_PROTO_NONE) },
-- 
2.30.0


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

* Re: [PATCH v4] Goodix Fingerprint device is not a modem
  2021-02-12 14:08           ` [PATCH v4] " Yorick de Wid
@ 2021-02-12 15:34             ` Greg KH
  2021-02-13 14:49               ` Yorick de Wid
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2021-02-12 15:34 UTC (permalink / raw)
  To: Yorick de Wid; +Cc: linux-usb, Oliver Neukum

On Fri, Feb 12, 2021 at 03:08:39PM +0100, Yorick de Wid wrote:
> The CDC ACM driver is false matching the Goodix Fingerprint device against the USB_CDC_ACM_PROTO_AT_V25TER.
> 
> The Goodix Fingerprint device is a biometrics sensor that should be handled in user-space.
> libfprint has some support for Goodix fingerprint sensors, although not for this particular one.
> It is possible that the vendor allocates a PID per OEM (Lenovo, Dell etc).
> If this happens to be the case then more devices from the same vendor could potentially match the ACM modem module table.

Can you wrap these lines at 72 columns and resend?

thanks,

greg k-h

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

* [PATCH v4] Goodix Fingerprint device is not a modem
  2021-02-12 15:34             ` Greg KH
@ 2021-02-13 14:49               ` Yorick de Wid
  0 siblings, 0 replies; 10+ messages in thread
From: Yorick de Wid @ 2021-02-13 14:49 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-usb, Oliver Neukum, Yorick de Wid

The CDC ACM driver is false matching the Goodix Fingerprint device
against the USB_CDC_ACM_PROTO_AT_V25TER.

The Goodix Fingerprint device is a biometrics sensor that should be
handled in user-space. libfprint has some support for Goodix
fingerprint sensors, although not for this particular one. It is
possible that the vendor allocates a PID per OEM (Lenovo, Dell etc).
If this happens to be the case then more devices from the same vendor
could potentially match the ACM modem module table.

Signed-off-by: Yorick de Wid <ydewid@gmail.com>
---
v1 -> v3:
Moved the entry down to keep the VID/PID order.
v3 -> v4:
Patch description of device in question

 drivers/usb/class/cdc-acm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 78190574581..2f4e5174e78 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1929,6 +1929,11 @@ static const struct usb_device_id acm_ids[] = {
 	.driver_info = SEND_ZERO_PACKET,
 	},
 
+	/* Exclude Goodix Fingerprint Reader */
+	{ USB_DEVICE(0x27c6, 0x5395),
+	.driver_info = IGNORE_DEVICE,
+	},
+
 	/* control interfaces without any protocol set */
 	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM,
 		USB_CDC_PROTO_NONE) },
-- 
2.30.0


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

end of thread, other threads:[~2021-02-13 14:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 10:44 [PATCH] USB: quirks: Goodix Fingerprint device is not a modem Yorick de Wid
2021-02-12 11:07 ` [PATCH v2] " Yorick de Wid
2021-02-12 11:10   ` [PATCH v3] " Yorick de Wid
2021-02-12 11:17     ` Greg KH
2021-02-12 11:43     ` Oliver Neukum
2021-02-12 11:59       ` Yorick de Wid
2021-02-12 14:00         ` Oliver Neukum
2021-02-12 14:08           ` [PATCH v4] " Yorick de Wid
2021-02-12 15:34             ` Greg KH
2021-02-13 14:49               ` Yorick de Wid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).