All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550
@ 2021-01-05  4:58 Seth Miller
  2021-01-08 14:53 ` Jiri Kosina
  0 siblings, 1 reply; 5+ messages in thread
From: Seth Miller @ 2021-01-05  4:58 UTC (permalink / raw)
  To: linux-input; +Cc: Benjamin Tissoires, Jiri Kosina

Battery status is being reported for the Elan touchscreen on ASUS
UX550 laptops despite not having a batter. It always shows either 0 or
1%.

Signed-off-by: Seth Miller <miller.seth@gmail.com>
---
 drivers/hid/hid-ids.h   | 1 +
 drivers/hid/hid-input.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 4c5f23640f9c..5ba0aa1d2335 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -389,6 +389,7 @@
 #define USB_DEVICE_ID_TOSHIBA_CLICK_L9W        0x0401
 #define USB_DEVICE_ID_HP_X2            0x074d
 #define USB_DEVICE_ID_HP_X2_10_COVER   0x0755
+#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN   0x2706

 #define USB_VENDOR_ID_ELECOM           0x056e
 #define USB_DEVICE_ID_ELECOM_BM084     0x0061
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index dc7f6b4a775c..f23027d2795b 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -322,6 +322,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
        { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
                USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD),
          HID_BATTERY_QUIRK_IGNORE },
+       { HID_USB_DEVICE(USB_VENDOR_ID_ELAN,
USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN),
+         HID_BATTERY_QUIRK_IGNORE },
        {}
 };

-- 
2.29.2

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

* Re: [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550
  2021-01-05  4:58 [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550 Seth Miller
@ 2021-01-08 14:53 ` Jiri Kosina
  2021-01-08 15:41   ` Seth Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2021-01-08 14:53 UTC (permalink / raw)
  To: Seth Miller; +Cc: linux-input, Benjamin Tissoires

On Mon, 4 Jan 2021, Seth Miller wrote:

> Battery status is being reported for the Elan touchscreen on ASUS
> UX550 laptops despite not having a batter. It always shows either 0 or
> 1%.
> 
> Signed-off-by: Seth Miller <miller.seth@gmail.com>

Seth, thanks for the patch. It has, however, been line-wrapped by your 
mail client, so I can't apply it as-is. Could you please fix that up and 
resend?

Thanks,

-- 
Jiri Kosina
SUSE Labs


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

* Re: [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550
  2021-01-08 14:53 ` Jiri Kosina
@ 2021-01-08 15:41   ` Seth Miller
  2021-01-08 15:53     ` Jiri Kosina
  0 siblings, 1 reply; 5+ messages in thread
From: Seth Miller @ 2021-01-08 15:41 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input, Benjamin Tissoires

On Fri, 2021-01-08 at 15:53 +0100, Jiri Kosina wrote:
> On Mon, 4 Jan 2021, Seth Miller wrote:
> 
> > Battery status is being reported for the Elan touchscreen on ASUS
> > UX550 laptops despite not having a batter. It always shows either 0
> > or
> > 1%.
> > 
> > Signed-off-by: Seth Miller <miller.seth@gmail.com>
> 
> Seth, thanks for the patch. It has, however, been line-wrapped by
> your 
> mail client, so I can't apply it as-is. Could you please fix that up
> and 
> resend?
> 
> Thanks,
> 

Jiri,
My apologies for the formatting issues. I wasn't aware Gmail's client silently inserted line breaks in plain text emails. Hopefully Evolution can do a bit better.

Signed-off-by: Seth Miller <miller.seth@gmail.com>

---
 drivers/hid/hid-ids.h   | 1 +
 drivers/hid/hid-input.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index f170feaac40b..94180c63571e 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -387,6 +387,7 @@
 #define USB_DEVICE_ID_TOSHIBA_CLICK_L9W	0x0401
 #define USB_DEVICE_ID_HP_X2		0x074d
 #define USB_DEVICE_ID_HP_X2_10_COVER	0x0755
+#define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN	0x2706
 
 #define USB_VENDOR_ID_ELECOM		0x056e
 #define USB_DEVICE_ID_ELECOM_BM084	0x0061
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 4dca11392459..32024905fd70 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -322,6 +322,8 @@ static const struct hid_device_id hid_battery_quirks[] = {
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH,
 		USB_DEVICE_ID_LOGITECH_DINOVO_EDGE_KBD),
 	  HID_BATTERY_QUIRK_IGNORE },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN),
+	  HID_BATTERY_QUIRK_IGNORE },
 	{}
 };
 
-- 
2.29.2


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

* Re: [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550
  2021-01-08 15:41   ` Seth Miller
@ 2021-01-08 15:53     ` Jiri Kosina
  2021-01-08 17:13       ` Seth Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2021-01-08 15:53 UTC (permalink / raw)
  To: Seth Miller; +Cc: linux-input, Benjamin Tissoires

On Fri, 8 Jan 2021, Seth Miller wrote:

> Jiri,

> My apologies for the formatting issues. I wasn't aware Gmail's client 
> silently inserted line breaks in plain text emails. Hopefully Evolution 
> can do a bit better.
> 
> Signed-off-by: Seth Miller <miller.seth@gmail.com>

Thanks. This one didn't have proper changelog :) but I've combined the two 
and applied.

-- 
Jiri Kosina
SUSE Labs


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

* Re: [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550
  2021-01-08 15:53     ` Jiri Kosina
@ 2021-01-08 17:13       ` Seth Miller
  0 siblings, 0 replies; 5+ messages in thread
From: Seth Miller @ 2021-01-08 17:13 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input, Benjamin Tissoires

Thanks for the patience. I'm sure I'll get the next one right ;)

-Seth

On Fri, Jan 8, 2021 at 9:53 AM Jiri Kosina <jikos@kernel.org> wrote:
>
> On Fri, 8 Jan 2021, Seth Miller wrote:
>
> > Jiri,
>
> > My apologies for the formatting issues. I wasn't aware Gmail's client
> > silently inserted line breaks in plain text emails. Hopefully Evolution
> > can do a bit better.
> >
> > Signed-off-by: Seth Miller <miller.seth@gmail.com>
>
> Thanks. This one didn't have proper changelog :) but I've combined the two
> and applied.
>
> --
> Jiri Kosina
> SUSE Labs
>

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

end of thread, other threads:[~2021-01-08 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05  4:58 [PATCH] HID: Ignore battery for Elan touchscreen on ASUS UX550 Seth Miller
2021-01-08 14:53 ` Jiri Kosina
2021-01-08 15:41   ` Seth Miller
2021-01-08 15:53     ` Jiri Kosina
2021-01-08 17:13       ` Seth Miller

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.