login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
9
Re: [PATCH 08/10] HID: move apple quirks
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jiri Slaby <jirislaby@...>
To: Jiri Kosina <jkosina@...>
Cc: Dmitry Torokhov <dmitry.torokhov@...>, <linux-input@...>, <marcel@...>, <linux-kernel@...>, <anssi.hannula@...>
Subject:
Re: [PATCH 08/10] HID: move apple quirks
Date: Monday, June 9, 2008 - 6:40 am
On 06/04/2008 04:13 PM, Jiri Kosina wrote:
quoted text
> On Fri, 16 May 2008, Jiri Slaby wrote: > > >> +static int apple_probe(struct hid_device *hdev, >> + const struct hid_device_id *id) >> +{ >> + unsigned long quirks = id->driver_data; >> + struct apple_sc *asc; >> + int ret; >> + >> + /* return something else or move to hid layer? device will reside >> + allocated */ >> + if (id->bus == BUS_USB && (id->driver_data & APPLE_IGNORE_MOUSE) && >> + to_usb_interface(hdev->dev.parent)->cur_altsetting-> >> + desc.bInterfaceProtocol == USB_INTERFACE_PROTOCOL_MOUSE) >> + return -ENODEV; >> + >> + asc = kzalloc(sizeof(*asc), GFP_KERNEL); >> + if (asc == NULL) { >> + dev_err(&hdev->dev, "can't alloc apple descriptor\n"); >> + return -ENOMEM; >> + } >> + >> + hid_set_drvdata(hdev, asc); >> + >> + if (quirks & APPLE_HIDDEV) >> + hdev->quirks |= HID_QUIRK_HIDDEV; >> + if (quirks & APPLE_IGNORE_HIDINPUT) >> + hdev->quirks |= HID_QUIRK_IGNORE_HIDINPUT; >> + >> + ret = hid_parse(hdev); >> + if (ret) { >> + dev_err(&hdev->dev, "parse failed\n"); >> + goto err_free; >> + } >> + >> + ret = hid_hw_start(hdev); >> + if (ret) { >> + dev_err(&hdev->dev, "hw start failed\n"); >> + goto err_free; >> + } >> + >> + return 0; >> +err_free: >> + kfree(asc); >> + return ret; >> +} > > Hi Jiri, > > you don't seem to set asc->quirks anywhere, but the rest of the code is > testing this flag. Is something like > > asc->quirks = id->driver_data; > > missing in the _probe routine?
Blah, good catch! Do you want me to post a patch, or will you fix this on your own? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 01/10] modpost: add support for hid
, Jiri Slaby
, (Fri May 16, 5:49 am)
Re: [PATCH 01/10] modpost: add support for hid
, Jiri Kosina
, (Thu Jun 5, 5:26 am)
Re: [PATCH 01/10] modpost: add support for hid
, Jiri Slaby
, (Mon Jun 9, 6:41 am)
[PATCH v2] modpost: add support for hid
, Jiri Slaby
, (Mon May 19, 9:50 am)
Re: [PATCH 01/10] modpost: add support for hid
, Jiri Kosina
, (Mon May 19, 9:36 am)
Re: [PATCH 01/10] modpost: add support for hid
, Jiri Slaby
, (Mon May 19, 9:38 am)
[PATCH 02/10] HID: make a bus from hid code
, Jiri Slaby
, (Fri May 16, 5:49 am)
[PATCH 03/10] HID: hid, make parsing event driven
, Jiri Slaby
, (Fri May 16, 5:49 am)
[PATCH 04/10] HID: move ids into separate file
, Jiri Slaby
, (Fri May 16, 5:49 am)
[PATCH 05/10] HID: move usage input mapping to hid.h
, Jiri Slaby
, (Fri May 16, 5:49 am)
[PATCH 06/10] HID: move logitech report quirks
, Jiri Slaby
, (Fri May 16, 5:49 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Kosina
, (Wed Jun 4, 9:21 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Slaby
, (Mon Jun 9, 6:33 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Kosina
, (Wed Jun 11, 10:13 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Anssi Hannula
, (Wed Jun 11, 2:23 pm)
Re: [PATCH 06/10] HID: move logitech report quirks
, Oliver Neukum
, (Wed Jun 11, 11:39 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Slaby
, (Wed Jun 11, 2:35 pm)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Kosina
, (Wed Jun 4, 8:16 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Slaby
, (Mon Jun 9, 6:29 am)
Re: [PATCH 06/10] HID: move logitech report quirks
, Jiri Kosina
, (Mon Jun 16, 6:15 am)
[PATCH 07/10] HID: move ignore quirks
, Jiri Slaby
, (Fri May 16, 5:49 am)
[PATCH 08/10] HID: move apple quirks
, Jiri Slaby
, (Fri May 16, 5:49 am)
Re: [PATCH 08/10] HID: move apple quirks
, Jiri Kosina
, (Wed Jun 4, 10:13 am)
Re: [PATCH 08/10] HID: move apple quirks
, Jiri Slaby
, (Mon Jun 9, 6:40 am)
[PATCH 09/10] HID: add compat support
, Jiri Slaby
, (Fri May 16, 5:49 am)
Re: [PATCH 09/10] HID: add compat support
, Jiri Kosina
, (Wed Jun 4, 4:55 am)
Re: [PATCH 09/10] HID: add compat support
, Jiri Slaby
, (Wed Jun 4, 5:00 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
2.6.23-rc6-mm1
jjohansen
[AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Linus Torvalds
Re: [GIT]: Networking
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
605 guests
online.
Syndicate