From: Henrik Rydberg Date: Sun, 12 Aug 2012 22:18:44 +0000 (+0200) Subject: Input: bcm5974 - only setup button urb for TYPE1 devices X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~104^2~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43f482b48d0322df7c0cc6f97d0ec7c77db6777b;p=pandora-kernel.git Input: bcm5974 - only setup button urb for TYPE1 devices The early generations with this trackpad used the separate mouse interface to produce button events. With the introduction of the button pads, this information was moved to the trackpad interface, leaving the mouse interface unused. The driver is still setting up both interfaces, which has not caused any problems - until now. It turns out that without the CONFIG_USB_EHCI_TT_NEWSCHED option, the driver may return an ENOSPC upon bt_urb submission, resulting in a failure to open the device. This happens everytime on the MacBookPro Retina (and likely on other mid-2012 models), but earlier MacBook models seem to work fine. This patch skips the bt_urb setup for TYPE2 devices, which arguably should have been done in the first place. Tested-by: Benjamin Tissoires Acked-by: Dmitry Torokhov Signed-off-by: Henrik Rydberg --- Reading git-diff-tree failed