Message ID | 20240730155159.3156-1-jason.gerecke@wacom.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 1b8f9c1fb464968a5b18d3acc1da8c00bad24fad |
Delegated to: | Jiri Kosina |
Headers | show |
Series | [1/5] HID: wacom: Defer calculation of resolution until resolution_code is known | expand |
Hi Jason, this doesn't really look like a patch series, but rather a collection of independent, assorted fixes and improvements, right? From my POV, patches 1, 2 and 3 seem like 6.11-rc material to me, while 4 and 5 seem to be 6.12 merge window material. Do you agree? Thanks,
On Thu, Aug 1, 2024 at 4:07 AM Jiri Kosina <jikos@kernel.org> wrote: > > Hi Jason, > > this doesn't really look like a patch series, but rather a collection of > independent, assorted fixes and improvements, right? > > From my POV, patches 1, 2 and 3 seem like 6.11-rc material to me, while 4 > and 5 seem to be 6.12 merge window material. Do you agree? > > Thanks, > > -- > Jiri Kosina > SUSE Labs > Hi Jiri, I was honestly expecting everything (except maybe the first patch) to be queued for 6.12. If you're comfortable merging any portion of them for 6.11 I'm okay with that. Patch 1 fixes an issue with declared resolution of the pen rotation axis. It's not a critical fix (most of userspace doesn't care about that axis' resolution) but still good to address. Patch 2 is a clean-up I noticed while fixing 1. It's not a bugfix, so there's no reason to prioritize. Patches 3 - 5 improve our generic touchring code. They add support for relative, high-res relative, and multiple rings. These are new features, so I again was expecting these to hit the next merge window. Jason --- Now instead of four in the eights place / you’ve got three, ‘Cause you added one / (That is to say, eight) to the two, / But you can’t take seven from three, / So you look at the sixty-fours....
On Thu, 1 Aug 2024, Jason Gerecke wrote: > I was honestly expecting everything (except maybe the first patch) to > be queued for 6.12. If you're comfortable merging any portion of them > for 6.11 I'm okay with that. > > Patch 1 fixes an issue with declared resolution of the pen rotation > axis. It's not a critical fix (most of userspace doesn't care about > that axis' resolution) but still good to address. > > Patch 2 is a clean-up I noticed while fixing 1. It's not a bugfix, so > there's no reason to prioritize. > > Patches 3 - 5 improve our generic touchring code. They add support for > relative, high-res relative, and multiple rings. These are new > features, so I again was expecting these to hit the next merge window. Jason, thanks for the clarification. I've queued #1 for 6.11, and the rest for 6.12 now.
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 1f4564982b958..2541fa2e0fa3b 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -1878,12 +1878,14 @@ static void wacom_map_usage(struct input_dev *input, struct hid_usage *usage, int fmax = field->logical_maximum; unsigned int equivalent_usage = wacom_equivalent_usage(usage->hid); int resolution_code = code; - int resolution = hidinput_calc_abs_res(field, resolution_code); + int resolution; if (equivalent_usage == HID_DG_TWIST) { resolution_code = ABS_RZ; } + resolution = hidinput_calc_abs_res(field, resolution_code); + if (equivalent_usage == HID_GD_X) { fmin += features->offset_left; fmax -= features->offset_right;