* Re: [PATCH] hid: hid bus prototype 20070416
[not found] <46230EDE.5020300@gmail.com>
@ 2007-04-16 13:22 ` Jiri Kosina
2007-04-17 1:03 ` [linux-usb-devel] " Li Yu
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Kosina @ 2007-04-16 13:22 UTC (permalink / raw)
To: Li Yu
Cc: Marcel Holtmann, linux-usb-devel, LKML, 杨红,
洪志毅
On Mon, 16 Apr 2007, Li Yu wrote:
> HID bus prototype 20070416
Hi Li,
thanks for taking care. Well, the patch is quite huge, do you think you
could split it into separate independent parts (use quilt or something
similar for patch management) which could be reviewed independently?
As the code changes are often quite non-trivial, layering is changed,
lots of files are touched, etc. it would help a lot.
Notes from a quick skim through the patch:
- it seems that you accidentaly deleted the newly added quirk for
mightymouse in the bluetooth hid code?
- what is the point behind HID_QUIRK_SKIP? Why doesn't HID_QUIRK_IGNORE
suffice? And why is it defined in so strange way:
@@ -270,6 +271,7 @@ struct hid_item {
#define HID_QUIRK_LOGITECH_DESCRIPTOR 0x00100000
#define HID_QUIRK_DUPLICATE_USAGES 0x00200000
#define HID_QUIRK_RESET_LEDS 0x00400000
+#define HID_QUIRK_SKIP 0x80000000
- there are bunches of some easy codingstyle issues (spaces around '=',
etc)
But doing really thorough review is quite hard, as the patch contains lots
of unrelated changes. I'll look at it a little bit more, but when you send
a broken-out version with separate changes, that'd be great.
Thanks,
--
Jiri Kosina
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-usb-devel] [PATCH] hid: hid bus prototype 20070416
2007-04-16 13:22 ` [PATCH] hid: hid bus prototype 20070416 Jiri Kosina
@ 2007-04-17 1:03 ` Li Yu
0 siblings, 0 replies; 2+ messages in thread
From: Li Yu @ 2007-04-17 1:03 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Li Yu, ???, ??, Marcel Holtmann, linux-usb-devel, LKML
Jiri Kosina wrote:
> On Mon, 16 Apr 2007, Li Yu wrote:
>
>
>> HID bus prototype 20070416
>>
>
> Hi Li,
>
> thanks for taking care. Well, the patch is quite huge, do you think you
> could split it into separate independent parts (use quilt or something
> similar for patch management) which could be reviewed independently?
>
> As the code changes are often quite non-trivial, layering is changed,
> lots of files are touched, etc. it would help a lot.
>
>
OK, I must be next.
> Notes from a quick skim through the patch:
>
> - it seems that you accidentaly deleted the newly added quirk for
> mightymouse in the bluetooth hid code?
>
They should be lost while I play bluetooth.
> - what is the point behind HID_QUIRK_SKIP? Why doesn't HID_QUIRK_IGNORE
> suffice? And why is it defined in so strange way:
>
> @@ -270,6 +271,7 @@ struct hid_item {
> #define HID_QUIRK_LOGITECH_DESCRIPTOR 0x00100000
> #define HID_QUIRK_DUPLICATE_USAGES 0x00200000
> #define HID_QUIRK_RESET_LEDS 0x00400000
> +#define HID_QUIRK_SKIP 0x80000000
>
>
I am sorry for missing some description here. In simple words, the
HID_QUIRK_IGNORE let usbhid do not register some hid devices at all,
however, the HID_QUIRK_SKIP just let usbhid skip matching with the
device which is marked that quirk, but still register this kind of hid
device. So another HID driver still handle have chances to handle it.
You can discover out there, the hid-core.c is not pure HID driver, it
also take the transports role here.
I think this quirk have such difference with others, so I define it so.
If we do like so, just change it. That is OK.
May be, we need another hid_skiplist[] ?
> - there are bunches of some easy codingstyle issues (spaces around '=',
> etc)
>
>
Yes, This is one of reasons for it is only for review.
> But doing really thorough review is quite hard, as the patch contains lots
> of unrelated changes. I'll look at it a little bit more, but when you send
> a broken-out version with separate changes, that'd be great.
>
>
OK.
> Thanks,
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-17 1:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <46230EDE.5020300@gmail.com>
2007-04-16 13:22 ` [PATCH] hid: hid bus prototype 20070416 Jiri Kosina
2007-04-17 1:03 ` [linux-usb-devel] " Li Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox