All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids
@ 2018-09-26 23:41 Roderick Colenbrander
  2018-09-26 23:41 ` [PATCH 3.18.y 1/2] HID: sony: Update " Roderick Colenbrander
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Roderick Colenbrander @ 2018-09-26 23:41 UTC (permalink / raw)
  To: stable; +Cc: Roderick Colenbrander

Hi,

We would like to request inclusion of updated DualShock 4 device ids for hid-sony
in Linux 3.18. Existing devices on older kernels already support the original
DualShock 4, but not recent hardware revisions. A similar backport was submitted
for 4.4/4.9. Kernels newer than 4.12 already include these patches.

The patches were cherry-picked from upstream and modified to apply cleanly and
compile.

Thanks,
Roderick Colenbrander

Roderick Colenbrander (2):
  HID: sony: Update device ids
  HID: sony: Support DS4 dongle

 drivers/hid/hid-core.c | 3 +++
 drivers/hid/hid-ids.h  | 2 ++
 drivers/hid/hid-sony.c | 6 ++++++
 3 files changed, 11 insertions(+)

-- 
2.17.1

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

* [PATCH 3.18.y 1/2] HID: sony: Update device ids
  2018-09-26 23:41 [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Roderick Colenbrander
@ 2018-09-26 23:41 ` Roderick Colenbrander
  2018-09-26 23:41 ` [PATCH 3.18.y 2/2] HID: sony: Support DS4 dongle Roderick Colenbrander
  2018-09-27  8:52 ` [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Greg KH
  2 siblings, 0 replies; 5+ messages in thread
From: Roderick Colenbrander @ 2018-09-26 23:41 UTC (permalink / raw)
  To: stable; +Cc: Roderick Colenbrander, Jiri Kosina

From: Roderick Colenbrander <roderick.colenbrander@sony.com>

commit cf1015d65d7c8a5504a4c03afb60fb86bff0f032 upstream.

Support additional DS4 model.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
 drivers/hid/hid-core.c | 2 ++
 drivers/hid/hid-ids.h  | 1 +
 drivers/hid/hid-sony.c | 4 ++++
 3 files changed, 7 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 39debe2f0c35..dd7b7de789ce 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1935,6 +1935,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2) },
+	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGP_MOUSE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_SRWS1) },
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 334390bae33d..c1c967cb9aa6 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -846,6 +846,7 @@
 #define USB_DEVICE_ID_SONY_PS3_BDREMOTE		0x0306
 #define USB_DEVICE_ID_SONY_PS3_CONTROLLER	0x0268
 #define USB_DEVICE_ID_SONY_PS4_CONTROLLER	0x05c4
+#define USB_DEVICE_ID_SONY_PS4_CONTROLLER_2	0x09cc
 #define USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER	0x042f
 #define USB_DEVICE_ID_SONY_BUZZ_CONTROLLER		0x0002
 #define USB_DEVICE_ID_SONY_WIRELESS_BUZZ_CONTROLLER	0x1000
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 15b3475e641d..62642f121697 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -2042,6 +2042,10 @@ static const struct hid_device_id sony_devices[] = {
 		.driver_data = DUALSHOCK4_CONTROLLER_USB },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER),
 		.driver_data = DUALSHOCK4_CONTROLLER_BT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2),
+		.driver_data = DUALSHOCK4_CONTROLLER_USB },
+	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2),
+		.driver_data = DUALSHOCK4_CONTROLLER_BT },
 	{ }
 };
 MODULE_DEVICE_TABLE(hid, sony_devices);
-- 
2.17.1

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

* [PATCH 3.18.y 2/2] HID: sony: Support DS4 dongle
  2018-09-26 23:41 [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Roderick Colenbrander
  2018-09-26 23:41 ` [PATCH 3.18.y 1/2] HID: sony: Update " Roderick Colenbrander
@ 2018-09-26 23:41 ` Roderick Colenbrander
  2018-09-27  8:52 ` [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Greg KH
  2 siblings, 0 replies; 5+ messages in thread
From: Roderick Colenbrander @ 2018-09-26 23:41 UTC (permalink / raw)
  To: stable; +Cc: Roderick Colenbrander, Jiri Kosina

From: Roderick Colenbrander <roderick.colenbrander@sony.com>

commit de66a1a04c25f2560a8dca7a95e2a150b0d5e17e upstream.

Add support for USB based DS4 dongle device, which allows connecting
a DS4 through Bluetooth, but hides Bluetooth from the host system.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
 drivers/hid/hid-core.c | 1 +
 drivers/hid/hid-ids.h  | 1 +
 drivers/hid/hid-sony.c | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index dd7b7de789ce..ae88185d5d30 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1937,6 +1937,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGP_MOUSE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_STEELSERIES, USB_DEVICE_ID_STEELSERIES_SRWS1) },
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index c1c967cb9aa6..cf3d4944fc12 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -847,6 +847,7 @@
 #define USB_DEVICE_ID_SONY_PS3_CONTROLLER	0x0268
 #define USB_DEVICE_ID_SONY_PS4_CONTROLLER	0x05c4
 #define USB_DEVICE_ID_SONY_PS4_CONTROLLER_2	0x09cc
+#define USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE	0x0ba0
 #define USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER	0x042f
 #define USB_DEVICE_ID_SONY_BUZZ_CONTROLLER		0x0002
 #define USB_DEVICE_ID_SONY_WIRELESS_BUZZ_CONTROLLER	0x1000
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 62642f121697..3998e69d132d 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -2046,6 +2046,8 @@ static const struct hid_device_id sony_devices[] = {
 		.driver_data = DUALSHOCK4_CONTROLLER_USB },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2),
 		.driver_data = DUALSHOCK4_CONTROLLER_BT },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE),
+		.driver_data = DUALSHOCK4_CONTROLLER_USB },
 	{ }
 };
 MODULE_DEVICE_TABLE(hid, sony_devices);
-- 
2.17.1

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

* Re: [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids
  2018-09-26 23:41 [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Roderick Colenbrander
  2018-09-26 23:41 ` [PATCH 3.18.y 1/2] HID: sony: Update " Roderick Colenbrander
  2018-09-26 23:41 ` [PATCH 3.18.y 2/2] HID: sony: Support DS4 dongle Roderick Colenbrander
@ 2018-09-27  8:52 ` Greg KH
  2018-09-27 16:56   ` Roderick.Colenbrander
  2 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2018-09-27  8:52 UTC (permalink / raw)
  To: Roderick Colenbrander; +Cc: stable

On Wed, Sep 26, 2018 at 04:41:38PM -0700, Roderick Colenbrander wrote:
> Hi,
> 
> We would like to request inclusion of updated DualShock 4 device ids for hid-sony
> in Linux 3.18. Existing devices on older kernels already support the original
> DualShock 4, but not recent hardware revisions. A similar backport was submitted
> for 4.4/4.9. Kernels newer than 4.12 already include these patches.

I hope no one is still using 3.18 for new hardware, but as you sent me
the patches, I'll go queue them up :)

thanks,

greg k-h

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

* Re: [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids
  2018-09-27  8:52 ` [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Greg KH
@ 2018-09-27 16:56   ` Roderick.Colenbrander
  0 siblings, 0 replies; 5+ messages in thread
From: Roderick.Colenbrander @ 2018-09-27 16:56 UTC (permalink / raw)
  To: greg, roderick; +Cc: stable

On 9/27/18 1:53 AM, Greg KH wrote:
> On Wed, Sep 26, 2018 at 04:41:38PM -0700, Roderick Colenbrander wrote:
>> Hi,
>>
>> We would like to request inclusion of updated DualShock 4 device ids for hid-sony
>> in Linux 3.18. Existing devices on older kernels already support the original
>> DualShock 4, but not recent hardware revisions. A similar backport was submitted
>> for 4.4/4.9. Kernels newer than 4.12 already include these patches.
> 
> I hope no one is still using 3.18 for new hardware, but as you sent me
> the patches, I'll go queue them up :)
> 
> thanks,
> 
> greg k-h
> 

Thanks for applying. There is just this small company in Mountain View, 
who asked for this backport and likes to use older kernels.... If only 
they upgraded devices to more recent kernels... :)

Thanks,
Roderick

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

end of thread, other threads:[~2018-09-27 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 23:41 [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Roderick Colenbrander
2018-09-26 23:41 ` [PATCH 3.18.y 1/2] HID: sony: Update " Roderick Colenbrander
2018-09-26 23:41 ` [PATCH 3.18.y 2/2] HID: sony: Support DS4 dongle Roderick Colenbrander
2018-09-27  8:52 ` [PATCH 3.18.y 0/2] HID: sony: backport DualShock 4 device ids Greg KH
2018-09-27 16:56   ` Roderick.Colenbrander

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.