Re: [PATCH] HID: multitouch: Preserve class quirks when inverting orientation
From: Asiye Sarıyıldız
Date: Sun Nov 15 2026 - 01:04:18 EST
Hi Jiri, Benjamin,
Just a gentle ping on this patch.
Thanks,
Muhammed
Asiye Sarıyıldız <asiyee994@xxxxxxxxx>, 15 Kas 2026 Paz, 09:01
tarihinde şunu yazdı:
>
> Hi Jiri, Benjamin,
>
> Just a gentle ping on this patch.
>
> Thanks,
> Muhammed
>
> Muhammed Sariyildiz <asiyee994@xxxxxxxxx>, 5 Kas 2026 Per, 20:43 tarihinde şunu yazdı:
>>
>> When exactly one coordinate axis is inverted, mt_probe() replaces the
>> device class quirks with MT_QUIRK_ORIENTATION_INVERT. This drops all
>> quirks selected for the device class. Applications created later
>> inherit the truncated quirk mask, which can break device-specific
>> contact handling.
>>
>> Add the orientation quirk instead of replacing the existing mask.
>>
>> Signed-off-by: Muhammed Sariyildiz <asiyee994@xxxxxxxxx>
>> ---
>> drivers/hid/hid-multitouch.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
>> index 4e19a0c..94e83fc 100644
>> --- a/drivers/hid/hid-multitouch.c
>> +++ b/drivers/hid/hid-multitouch.c
>> @@ -2155,7 +2155,7 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)
>> if (hdev->quirks & (HID_QUIRK_X_INVERT | HID_QUIRK_Y_INVERT) &&
>> !((hdev->quirks & HID_QUIRK_X_INVERT)
>> && (hdev->quirks & HID_QUIRK_Y_INVERT)))
>> - td->mtclass.quirks = MT_QUIRK_ORIENTATION_INVERT;
>> + td->mtclass.quirks |= MT_QUIRK_ORIENTATION_INVERT;
>>
>> /* This allows the driver to correctly support devices
>> * that emit events over several HID messages.
>> --
>> 2.47.3
>>