# Re: \[PATCH\] hid-multitouch: fix broken eGalax

- From: Jiri Kosina \<hidden\>
- Date: 2011-06-12 22:01:41 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2011/06/3728414
- Thread: https://ratatoskr.run/linux-input/2011/06/3728281/t.md

```text
On Sun, 12 Jun 2011, Benjamin Tissoires wrote:

> Since the inclusion of eGalax devices in 2.6.39, I've got some
> bug reports for 480d and other devices.
> The problem lies in the reports descriptors: eGalax supports both
> pen and fingers, and so the reports descriptors contained both.
> But hid-multitouch relies on them to detect the last item in each
> field to send the multitouch events. In 480d, the last item is not
> Y as it should but Pressure. That means that the fields are not
> aligned and X,Y are at 0,0 (the other touch coordinates of the report).
> 
> With this patch, the detection is made only when the field ContactID
> has been detected inside the collection.
> 
> There is still a problem with the detections of the range as stylus
> and fingers may not have the same min/max, but it's a start.
> 
> Signed-off-by: Benjamin Tissoires <redacted>
> ---
> 
> Hi guys,
> 
> I'd love to see this patch into stable too. The point is that it does
> not applies out of the box. Should I send it again to stable@kernel.org
> once the reviews has been made?

The best thing is to wait for the patch to appear in Linus' tree (which is 
a prerequisity for -stable inclusion anyway), and then send a backported 
version, with upstream reference commit, to stable@kernel.org.

On Sun, 12 Jun 2011, Henrik Rydberg wrote:

> Thanks for the clarification.
> 
>     Reviewed-by: Henrik Rydberg [ref]

Thanks, I have now applied it.

I am waiting with pushing my upstream-fixes branch to Linus before the 
magicmouse issue has been sorted out (waiting for tester Ack). If this 
doesn't happen in a day or two, I will be pushing it anyway.

Thanks,

-- 
Jiri Kosina
SUSE Labs
```
