From: Jonathan Nieder <jrnieder@gmail.com>
To: Nestor Lopez Casado <nlopezcasad@logitech.com>
Cc: Jiri Kosina <jkosina@suse.cz>,
Benjamin Tissoires <benjamin.tissoires@gmail.com>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
hugo@osvaldobarrera.com.ar, 671292@bugs.debian.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2 1/1] HID: logitech: read all 32 bits of report type bitfield
Date: Fri, 11 May 2012 19:44:10 -0500 [thread overview]
Message-ID: <20120512004410.GB2931@burratino> (raw)
In-Reply-To: <1336745836-17385-1-git-send-email-nlopezcasad@logitech.com>
Nestor Lopez Casado wrote:
> From: Jonathan Nieder <jrnieder@gmail.com>
>
> On big-endian systems (e.g., Apple PowerBook), trying to use a
> logitech wireless mouse with the Logitech Unifying Receiver does not
> work with v3.2 and later kernels. The device doesn't show up in
> /dev/input. Older kernels work fine.
>
> That is because the new hid-logitech-dj driver claims the device. The
> device arrival notification appears:
>
> 20 00 41 02 00 00 00 00 00 00 00 00 00 00 00
>
> and we read the report_types bitfield (02 00 00 00) to find out what
> kind of device it is. Unfortunately the driver only reads the first 8
> bits and treats that value as a 32-bit little-endian number, so on a
> powerpc the report type seems to be 0x02000000 and is not recognized.
Sigh, I took the wrong line in this example. The above event is
"device list empty" and report_types is 0 as you'd expect. The
example I meant to use:
20 01 41 01 1a 10 04 00 00 00 00 00 00 00 00
and we read the report_types bitfield (04 00 00 00) to find out what
kind of device it is. Unfortunately the driver only reads the first 8
bits and treats that value as a 32-bit little-endian number, so on a
powerpc the report type seems to be 0x04000000 and is not recognized.
Jiri, please amend the message if convenient, or I'm fine with leaving
it be if not. Sorry for the nonsense.
prev parent reply other threads:[~2012-05-12 0:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 14:17 [PATCH v2 1/1] HID: logitech: read all 32 bits of report type bitfield Nestor Lopez Casado
2012-05-11 14:32 ` Jiri Kosina
2012-05-12 0:44 ` Jonathan Nieder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120512004410.GB2931@burratino \
--to=jrnieder@gmail.com \
--cc=671292@bugs.debian.org \
--cc=benjamin.tissoires@gmail.com \
--cc=hugo@osvaldobarrera.com.ar \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nlopezcasad@logitech.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).