Skip to contentSkip to conversation

HID: wacom: patches for 4.11

PATCH Applied Aaron Armstrong Skomra 4 participants 7 messages Mar 6, 2017 – Mar 21, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover HID: wacom: patches for 4.11

Two fixes for patches included in 4.11

Aaron Armstrong Skomra (2):
HID: wacom: Correct Intuos Pro 2 resolution
HID: wacom: don't manually release resources for the EKR

 drivers/hid/wacom_sys.c | 4 +++-
 drivers/hid/wacom_wac.c | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 HID: wacom: Correct Intuos Pro 2 resolution

The features struct for the second gen Intuos Pro uses the wrong constant for the resolution. This fix is for commit 4922cd2.

---
 drivers/hid/wacom_wac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hid/wacom_wac.c +2 -2
index 4aa3de9..3d86446 100644
@@ -4197,10 +4197,10 @@ static const struct wacom_features wacom_features_0x343 =
 	  WACOM_DTU_OFFSET, WACOM_DTU_OFFSET };
 static const struct wacom_features wacom_features_0x360 =
 	{ "Wacom Intuos Pro M", 44800, 29600, 8191, 63,
-	  INTUOSP2_BT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 9, .touch_max = 10 };
+	  INTUOSP2_BT, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 9, .touch_max = 10 };
 static const struct wacom_features wacom_features_0x361 =
 	{ "Wacom Intuos Pro L", 62200, 43200, 8191, 63,
-	  INTUOSP2_BT, WACOM_INTUOS_RES, WACOM_INTUOS_RES, 9, .touch_max = 10 };
+	  INTUOSP2_BT, WACOM_INTUOS3_RES, WACOM_INTUOS3_RES, 9, .touch_max = 10 };
 
 static const struct wacom_features wacom_features_HID_ANY_ID =
 	{ "Wacom HID", .type = HID_GENERIC, .oVid = HID_ANY_ID, .oPid = HID_ANY_ID };
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 HID: wacom: don't manually release resources for the EKR

In reply to Aaron Armstrong Skomra

Commit 5b779fc introduces the manual release of resources in wacom_remove() as an addition to the driver's use of devm. The EKR resources can only be released through wacom_remote_destroy_one() so we skip the manual release for it.

---
 drivers/hid/wacom_sys.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/hid/wacom_sys.c +3 -1
index be8f7e2..994bddc 100644
@@ -2579,7 +2579,9 @@ static void wacom_remove(struct hid_device *hdev)
 
 	/* make sure we don't trigger the LEDs */
 	wacom_led_groups_release(wacom);
-	wacom_release_resources(wacom);
+
+	if (wacom->wacom_wac.features.type != REMOTE)
+		wacom_release_resources(wacom);
 
 	hid_set_drvdata(hdev, NULL);
 }
Signature · 1 line
2.7.4
Reviewed-by on the v1 series
#3 lore raw
In reply to Aaron Armstrong Skomra
Quoted 5 lines · Aaron Armstrong Skomra

Two fixes for patches included in 4.11

Aaron Armstrong Skomra (2):
HID: wacom: Correct Intuos Pro 2 resolution
HID: wacom: don't manually release resources for the EKR

Aaron told me about the issue in patch 2/2, so it's not news to me.

Cheers,
Benjamin

Quoted 8 lines
 drivers/hid/wacom_sys.c | 4 +++-
 drivers/hid/wacom_wac.c | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.7.4
#4 lore raw

Hi Jiri,

Quoted 7 lines · Benjamin Tissoires
Quoted 5 lines · Aaron Armstrong Skomra

Two fixes for patches included in 4.11

Aaron Armstrong Skomra (2):
HID: wacom: Correct Intuos Pro 2 resolution
HID: wacom: don't manually release resources for the EKR

Quoted 11 lines

Aaron told me about the issue in patch 2/2, so it's not news to me.

Cheers,
Benjamin

Quoted 4 lines
 drivers/hid/wacom_sys.c | 4 +++-
 drivers/hid/wacom_wac.c | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

I don't see the two patches under for-4.11/upstream-fixes. Do you have questions about the patches?

Cheers,
Ping

Quoted 4 lines
Quoted 4 lines

--
2.7.4

maintainer
#5 lore raw
Quoted 6 lines · Ping Cheng
Quoted 6 lines
Quoted 3 lines

Aaron Armstrong Skomra (2):
HID: wacom: Correct Intuos Pro 2 resolution
HID: wacom: don't manually release resources for the EKR

Quoted 8 lines
Quoted 5 lines

Aaron told me about the issue in patch 2/2, so it's not news to me.

Quoted 4 lines
 drivers/hid/wacom_sys.c | 4 +++-
 drivers/hid/wacom_wac.c | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

I don't see the two patches under for-4.11/upstream-fixes. Do you have questions about the patches?

Nope (or not yet at least), I haven't processed them yet. -rc3 or -rc4 is still a target for those.

Signature · 2 lines
Jiri Kosina
SUSE Labs
maintainer Applied
#6 lore raw
In reply to Aaron Armstrong Skomra
Quoted 9 lines · Aaron Armstrong Skomra

Two fixes for patches included in 4.11

Aaron Armstrong Skomra (2):
HID: wacom: Correct Intuos Pro 2 resolution
HID: wacom: don't manually release resources for the EKR

 drivers/hid/wacom_sys.c | 4 +++-
 drivers/hid/wacom_wac.c | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

Applied to for-4.11/upstream-fxies. Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs