Commit Graph

257782 Commits

Author SHA1 Message Date
David Herrmann
4409981837 HID: uhid: introduce user-space I/O driver support for HID
This adds a dummy driver that will support user-space I/O drivers for the
HID subsystem. This allows to write transport-level drivers like USB-HID
and Bluetooth-HID in user-space.

Low-Energy Bluetooth needs this to feed HID data that is parsed in
user-space back into the kernel.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2012-08-16 12:44:27 -07:00
Dmitry Shmidt
efadaa2555 mmc: Make sure host is disabled on suspend
Change-Id: Ie0bf2004e173cef8dad66722a152658d7727ab65
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-08-16 11:27:59 -07:00
Dmitry Shmidt
11c327f598 net: wireless: bcm4329: Remove obsolete files
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-08-13 14:03:29 -07:00
Ashish Sharma
9a6bc3422c netfilter: xt_IDLETIMER: Rename INTERFACE to LABEL in netlink notification.
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
2012-08-13 12:58:31 -07:00
Dmitry Shmidt
e15cb9927c net: wireless: bcmdhd: Use correct time from boot for TSF
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-08-13 12:45:38 -07:00
Bernhard Walle
a1bc297a90 scripts/Kbuild.include: Fix portability problem of "echo -e"
"echo -e" is a GNU extension. When cross-compiling the kernel on a
BSD-like operating system (Mac OS X in my case), this doesn't work.

One could install a GNU version of echo, put that in the $PATH before
the system echo and use "/usr/bin/env echo", but the solution with
printf is simpler.

Since it is no disadvantage on Linux, I hope that gets accepted even if
cross-compiling the Linux kernel on another Unix operating system is
quite a rare use case.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Andreas Bießmann <andreas@biessmann.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2012-08-08 13:49:31 -07:00
Mike Lockwood
2fa1f1c9b5 USB: gadget: f_audio_source: Fix error handling and increase packet size
Fixes watchdog reset on USB disconnect
Larger packet size fixes performance in fullspeed mode

Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-08-02 15:23:27 -07:00
Dmitry Shmidt
e4639327fc net: wireless: bcmdhd: Fill station_info packet fields
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-27 10:04:44 -07:00
Dmitry Shmidt
62618c1b04 net: wireless: bcmdhd: Prevent HT Avail request failure to flood the log
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-18 11:19:40 -07:00
Dmitry Shmidt
3421d0b815 net: wireless: bcmdhd: Use proper jiffie-related functions
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Conflicts:

	drivers/net/wireless/bcmdhd/wl_cfg80211.c
	drivers/net/wireless/bcmdhd/wl_iw.c
2012-07-17 12:53:28 -07:00
Dmitry Shmidt
c491722e0e net: wireless: bcmdhd: Adjust driver/fw/chip info format
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-17 12:53:04 -07:00
German Monroy
b595a66a0b x86: Call idle notifiers
BZ: 35303

Google patched the idle loop for x86-64 (commit 1fd57f722c) and for ARM
(commit 41fa406c26), but they forgot x86-32.

This is preventing their interactive governor from upshifting CPU
frequencies in intel's SOC platforms (e.g. Medfield, etc.).

Fixing that.

NOTE: The notifier calls are not located in the same exact place in the
idle loop for x86-64 and ARM.  The notifier is called inside the
`while(!need_resched)' loop in x86-64 and outside of it in ARM.  Since
Google has likely tuned this governor for ARM, leaving it as in ARM.

Change-Id: Ibefd0c8f08e4b4c24c4a5c32dcdc574f9090b2b9
Signed-off-by: German Monroy <german.monroy@intel.com>
2012-07-16 13:40:02 -07:00
Dmitry Shmidt
66943ea352 net: wireless: bcmdhd: Add info_string param with driver/fw/chip info
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 17:25:05 -07:00
Dmitry Shmidt
f4702ad7ca net: wireless: bcmdhd: Remove country update from wl_update_wiphybands
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:50 -07:00
Neeraj Kumar Garg
a5c77fe0e6 net: wireless: bcmdhd: Fix P2P GO hang issue
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:50 -07:00
Dmitry Shmidt
df06df7bfc net: wireless: bcmdhd: Update wiphy bands on band change
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:49 -07:00
Andrey Vagin
230efa6869 net: wireless: bcmdhd: Init locks in dhd_attach() at the beginning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:49 -07:00
Andrey Vagin
f70624b6e5 net: wireless: bcm4329: Init locks in dhd_attach() at the beginning
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:49 -07:00
Dmitry Shmidt
fa98f042f1 net: wireless: bcmdhd: Add mutex to wl_update_wiphybands()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:49 -07:00
Dmitry Shmidt
22baf5de10 net: wireless: bcmdhd: Skip country setting if unnecessary
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:48 -07:00
Dmitry Shmidt
68983530ea net: wireless: bcmdhd: Return wl_construct_reginfo() call
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:48 -07:00
Dmitry Shmidt
d7ade6c71e net: wireless: bcmdhd: Add wiphyband update for country change
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-07-12 10:45:48 -07:00
Dmitry Shmidt
38fac5b1e2 net: wireless: bcmdhd: Skip inaccurate wl_construct_reginfo() call
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-06-28 10:42:19 -07:00
Dmitry Shmidt
562490d247 net: wireless: bcmdhd: Ignore error if "chanspecs" command is not supported
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-06-20 10:26:09 -07:00
Dmitry Shmidt
1ed2a48549 net: wireless: bcmdhd: Reduce priority for dhd_dpc and watchdog
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-06-19 10:38:24 -07:00
Dmitry Shmidt
2749b2ea4f net: wireless: bcmdhd: Reload FW in case of constant scan failure
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-06-19 10:38:10 -07:00
Dmitry Shmidt
cb786ee756 net: wireless: bcmdhd: Combined P2P fixes
- Fix p2p scan
- Fix p2p processing for channels 12 and 13
- Fix service discovery

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-06-13 11:29:39 -07:00
Theodore Ts'o
9d8a0e5b42 ext4: add missing save_error_info() to ext4_error()
The ext4_error() function is missing a call to save_error_info().
Since this is the function which marks the file system as containing
an error, this oversight (which was introduced in 2.6.36) is quite
significant, and should be backported to older stable kernels with
high urgency.

Change-Id: Ia1eb8d91f37ceb67faf3b79d6bc79b899f1d6bfc
Reported-by: Ken Sumrall <ksumrall@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: ksumrall@google.com
Cc: stable@kernel.org
Signed-off-by: Ken Sumrall <ksumrall@android.com>
2012-06-08 11:57:30 -07:00
Dmitry Shmidt
bc6f92e9cc net: wireless: bcmdhd: Update to version 5.90.195.75
- Fix false PCB-OVERLAP issue
- Fix simultanious connect request on two P2P devices

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-31 14:22:22 -07:00
Leslie Yu
3f427b101c net: wireless: bcmdhd: Fix P2P driver crash for MFG firmware
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-30 13:01:01 -07:00
Dmitry Shmidt
794eb6216d net: wireless: bcmdhd: Make responce waiting uninterruptible
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-30 13:00:45 -07:00
Mike Lockwood
0daae7684b USB: gadget: f_audio_source: Adjust packet timing to reduce glitches
Increase max packet size and clean up timing logic so we can better
recover from not getting an interrupt in time for a SOF.

Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-05-29 16:38:46 -07:00
Benoit Goby
5df2eb9d22 usb: gadget: android: Fix product name
Product names may contain spaces and scanf %s only matches the 1st word.
Use strlcpy instead.

Change-Id: Ie8703fea9775f7fc17fe615a42597ca3816d36b0
Signed-off-by: Benoit Goby <benoit@android.com>
2012-05-29 15:21:48 -07:00
Neeraj Kumar Garg
3c6010d0e4 net: wireless: bcmdhd: Fix WPS PBC overlap failure
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-24 12:25:46 -07:00
Benoit Goby
8b5855f54d usb: gadget: composite: Fix corruption when changing configuration
Remove the config from the configs list before releasing the spinlock.
Otherwise the other cpu might be processing a SET_CONFIGURATION that
will switch to the configuration that is being released.

Bug: 6521576
Change-Id: Id4da0d0e18ead63e20cb236cd1d3e8e6d116acce
Signed-off-by: Benoit Goby <benoit@android.com>
2012-05-21 18:55:25 -07:00
Dmitry Shmidt
605a493298 net: wireless: bcmdhd: Ignore signal_pending() while waiting in IOCTL
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-16 16:59:37 -07:00
Dmitry Shmidt
f242b6d8ac net: wireless: bcmdhd: Check return value from dhd_dev_init_ioctl()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-16 16:59:25 -07:00
Dmitry Shmidt
b9fd9e2371 net: wireless: bcmdhd: Fix WARN_ON(!res->pub.channel)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-16 16:59:11 -07:00
Dmitry Shmidt
08cad5bc6c net: wireless: bcmdhd: Change singal pending return value from -110 to -4
- ETIMEDOUT is interpreted as FW is not responding,
  so return EINTR instead

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-16 16:58:17 -07:00
Mike Lockwood
1f0627dea2 USB: gadget: f_audio_source: New gadget driver for audio output
This driver presents a standard USB audio class interface to the host
and an ALSA PCM device to userspace

Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-05-16 09:25:05 -07:00
Mike Lockwood
71c4263275 USB: gadget: f_accessory: Add support for HID input devices
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-05-15 16:37:27 -07:00
Mike Lockwood
319e822875 Add ACCESSORY_SET_AUDIO_MODE control request and ioctl
The control request will be used by the host to enable/disable USB audio
and the ioctl will be used by userspace to read the audio mode

Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-05-15 16:35:42 -07:00
Todd Poynor
8a2755204d cpufreq: interactive: fixup trace of string params
Change-Id: Iac47f62437e61b13724afbbf9df1a0729f58f236
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-05-11 11:07:46 -07:00
Todd Poynor
c12914672a cpufreq: interactive: restart above_hispeed_delay at each hispeed load
Change-Id: I2e5b91d45e8806b0ab94ca2301ed671c9af9ab13
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-05-10 23:35:45 -07:00
Dmitry Shmidt
ba43e9be0c net: wireless: bcmdhd: Fix filtering setting in case of P2P
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2012-05-10 13:36:51 -07:00
Madalin Bucur
a0e6c2f9f2 ipv6: check return value for dst_alloc
return value of dst_alloc must be checked before use

Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-09 22:28:24 -07:00
Madalin Bucur
25914de08d net: check return value for dst_alloc
return value of dst_alloc must be checked before use

Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-09 22:28:16 -07:00
Todd Poynor
52f91d889a Merge commit 'v3.0.31' into android-3.0 2012-05-08 11:36:40 -07:00
Greg Kroah-Hartman
bea37381fd Linux 3.0.31 2012-05-07 09:02:36 -07:00
Greg Kroah-Hartman
8792953929 hfsplus: Fix potential buffer overflows
commit 6f24f89287 upstream.

Commit ec81aecb29 ("hfs: fix a potential buffer overflow") fixed a few
potential buffer overflows in the hfs filesystem.  But as Timo Warns
pointed out, these changes also need to be made on the hfsplus
filesystem as well.

Reported-by: Timo Warns <warns@pre-sense.de>
Acked-by: WANG Cong <amwang@redhat.com>
Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Miklos Szeredi <mszeredi@suse.cz>
Cc: Sage Weil <sage@newdream.net>
Cc: Eugene Teo <eteo@redhat.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Anderson <anderson@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-07 08:56:50 -07:00