Linux 3.4.87
Greg KH
maintainerI'm announcing the release of the 3.4.87 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | 8 Documentation/hwmon/coretemp | 12 + Makefile | 2 arch/arm/Kconfig | 1 arch/arm/boot/compressed/Makefile | 1 arch/arm/boot/compressed/head-sa1100.S | 1 arch/arm/boot/compressed/head-shark.S | 1 arch/arm/boot/compressed/head.S | 1 arch/arm/boot/dts/imx51-babbage.dts | 4 arch/arm/include/asm/a.out-core.h | 45 ---- arch/arm/include/asm/a.out.h | 34 --- arch/arm/include/asm/processor.h | 4 arch/arm/kernel/head.S | 3 arch/arm/kernel/topology.c | 2 arch/arm/mach-dove/common.c | 2 arch/arm/mach-footbridge/common.c | 3 arch/arm/mach-footbridge/dc21285.c | 2 arch/arm/mach-kirkwood/common.c | 4 arch/arm/mach-mv78xx0/common.c | 6 arch/arm/mach-orion5x/common.c | 3 arch/arm/mach-pxa/reset.c | 8 arch/arm/mach-u300/include/mach/u300-regs.h | 2 arch/arm/mach-w90x900/include/mach/entry-macro.S | 4 arch/arm/plat-orion/common.c | 8 arch/arm/plat-orion/include/plat/common.h | 6 arch/mips/include/asm/jump_label.h | 2 arch/powerpc/include/asm/jump_label.h | 2 arch/s390/include/asm/jump_label.h | 2 arch/sparc/include/asm/jump_label.h | 2 arch/x86/include/asm/cpufeature.h | 2 arch/x86/include/asm/jump_label.h | 2 drivers/ata/ahci.c | 13 + drivers/cpufreq/powernow-k6.c | 147 ++++++++++++--- drivers/edac/sb_edac.c | 7 drivers/hid/hid-apple.c | 3 drivers/hid/hid-core.c | 26 +- drivers/hid/hid-ids.h | 10 + drivers/hid/hid-input.c | 12 + drivers/hid/hid-multitouch.c | 4 drivers/hid/hid-sony.c | 18 + drivers/hid/hidraw.c | 98 +++++----- drivers/hid/usbhid/hid-quirks.c | 3 drivers/hwmon/applesmc.c | 13 + drivers/hwmon/coretemp.c | 34 +++ drivers/hwmon/lm78.c | 2 drivers/hwmon/sis5595.c | 2 drivers/hwmon/vt8231.c | 2 drivers/idle/intel_idle.c | 3 drivers/media/dvb/dvb-core/dmxdev.c | 8 drivers/media/video/gspca/kinect.c | 1 drivers/media/video/hdpvr/hdpvr-core.c | 22 +- drivers/media/video/omap/omap_vout.c | 12 - drivers/media/video/saa7164/saa7164-core.c | 4 drivers/media/video/v4l2-device.c | 30 +-- drivers/mmc/host/mxs-mmc.c | 8 drivers/net/ethernet/broadcom/tg3.c | 74 +++++++ drivers/net/ethernet/broadcom/tg3.h | 8 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 8 drivers/net/wireless/ath/ath9k/ar9003_hw.c | 15 - drivers/net/wireless/ath/ath9k/ar9003_phy.c | 27 -- drivers/net/wireless/ath/ath9k/ar9003_phy.h | 2 drivers/net/wireless/ath/ath9k/calib.c | 1 drivers/net/wireless/ath/ath9k/htc.h | 1 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 18 + drivers/net/wireless/ath/ath9k/hw.c | 3 drivers/net/wireless/ath/ath9k/hw.h | 1 drivers/net/wireless/ath/ath9k/main.c | 7 drivers/pps/clients/pps-ldisc.c | 10 - drivers/pps/pps.c | 47 ++++ drivers/usb/core/driver.c | 38 ++-- drivers/usb/core/hub.c | 21 +- drivers/usb/core/quirks.c | 152 +++++++++------- drivers/usb/core/usb.h | 4 drivers/usb/dwc3/dwc3-pci.c | 4 drivers/usb/dwc3/gadget.c | 15 + drivers/usb/host/ehci-pci.c | 2 drivers/usb/host/ehci-q.c | 16 - drivers/usb/host/ehci-sched.c | 4 drivers/usb/host/ohci-pci.c | 2 drivers/usb/host/uhci-pci.c | 2 drivers/usb/host/xhci-hub.c | 28 -- drivers/usb/host/xhci-pci.c | 32 +++ drivers/usb/host/xhci.c | 14 + drivers/usb/host/xhci.h | 2 drivers/usb/misc/adutux.c | 2 drivers/usb/serial/ark3116.c | 10 - drivers/usb/serial/ch341.c | 11 - drivers/usb/serial/cypress_m8.c | 14 - drivers/usb/serial/ftdi_sio.c | 68 ++++--- drivers/usb/serial/io_edgeport.c | 12 - drivers/usb/serial/io_ti.c | 12 - drivers/usb/serial/keyspan.c | 2 drivers/usb/serial/mct_u232.c | 13 - drivers/usb/serial/mos7840.c | 60 ++++-- drivers/usb/serial/oti6858.c | 10 - drivers/usb/serial/pl2303.c | 21 +- drivers/usb/serial/qcserial.c | 1 drivers/usb/serial/spcp8x5.c | 19 -- drivers/usb/serial/ssu100.c | 12 - drivers/usb/serial/ti_usb_3410_5052.c | 19 +- drivers/usb/serial/usb-serial.c | 1 drivers/usb/wusbcore/wa-rpipe.c | 5 drivers/usb/wusbcore/wa-xfer.c | 5 drivers/video/omap2/omapfb/omapfb-main.c | 2 fs/proc/array.c | 2 include/linux/compiler-gcc.h | 3 include/linux/compiler-gcc4.h | 16 + include/linux/hid.h | 2 include/linux/hidraw.h | 4 include/linux/idr.h | 11 + include/linux/msg.h | 6 include/linux/mv643xx_eth.h | 2 include/linux/pps_kernel.h | 17 + include/linux/usb/hcd.h | 2 include/linux/usb/serial.h | 2 ipc/msgutil.c | 12 - ipc/util.h | 4 kernel/audit.c | 2 kernel/printk.c | 2 kernel/workqueue.c | 9 lib/idr.c | 36 ++- security/selinux/hooks.c | 36 ++- sound/drivers/aloop.c | 5 sound/drivers/pcsp/pcsp.c | 2 sound/i2c/other/ak4xxx-adda.c | 2 sound/pci/hda/hda_intel.c | 40 ++-- sound/pci/hda/patch_conexant.c | 114 ++++++++---- sound/pci/hda/patch_hdmi.c | 35 ++- sound/pci/hda/patch_realtek.c | 1 sound/usb/6fire/comm.c | 38 +++- sound/usb/6fire/comm.h | 2 sound/usb/6fire/midi.c | 16 + sound/usb/6fire/midi.h | 6 sound/usb/6fire/pcm.c | 41 ++++ sound/usb/6fire/pcm.h | 2 sound/usb/card.h | 1 sound/usb/endpoint.c | 3 sound/usb/mixer.c | 16 + sound/usb/quirks.c | 1 139 files changed, 1333 insertions(+), 678 deletions(-)
Aaron Plattner (2):
ALSA: hda - Add new GPU codec ID to snd-hda
ALSA: hda - Add another GPU codec ID to snd-hda
Adrian Thomasset (1):
USB: ftdi_sio: enable two UART ports on ST Microconnect Lite
Al Viro (1):
media: omap_vout: find_vma() needs ->mmap_sem held
Alan Stern (4):
USB: EHCI: bugfix: urb->hcpriv should not be NULL
USB: OHCI: Allow runtime PM without system sleep
USB: fix build error when CONFIG_PM_SLEEP isn't enabled
USB: fix PM config symbol in uhci-hcd, ehci-hcd, and xhci-hcd
Alexey Kaminsky (1):
HID: apple: Add Apple wireless keyboard 2011 ANSI PID
Alexey Khoroshilov (2):
HID: hidraw: improve error handling in hidraw_init()
media: hdpvr: fix iteration over uninitialized lists in hdpvr_probe()
Andreas Fleig (1):
USB: Add device quirk for Microsoft VX700 webcam
Anssi Hannula (1):
ALSA: hda - hdmi: Fallback to ALSA allocation when selecting CA
Arnaud Patard (1):
ARM: Orion: Set eth packet size csum offload limit
Arnd Bergmann (3):
ARM: w90x900: fix legacy assembly syntax
ARM: 7742/1: topology: export cpu_topology
ARM: 7743/1: compressed/head.S: work around new binutils warning
Artem Bityutskiy (1):
proc: pid/status: show all supplementary groups
Benjamin Tissoires (2):
HID: validate feature and input report details
HID: multitouch: validate indexes details
Bu, Yitian (1):
printk: Fix rq->lock vs logbuf_lock unlock lock inversion
Calvin Owens (1):
ALSA: usb: Add quirk for 192KHz recording on E-Mu devices
Colin Leitner (1):
USB: ftdi_sio: fixed handling of unsupported CSIZE setting
Dan Carpenter (2):
ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info()
hwmon: Prevent some divide by zeros in FAN_TO_REG()
Daniel Santos (1):
compiler-gcc.h: Add gcc-recommended GCC_VERSION macro
David Cohen (1):
usb: dwc3: add support for Merrifield
David Henningsson (2):
Revert "ALSA: hda - Shut up pins at power-saving mode with Conexnat codecs"
ALSA: hda - Fix internal mic for Lenovo Ideapad U300s
Eldad Zack (1):
ALSA: usb-audio: skip UAC2 EFFECT_UNIT
Felix Fietkau (2):
ath9k_htc: fix signal strength handling issues
ath9k_hw: fix chain swap setting when setting rx chainmask to 5
Fernando Luis Vazquez Cao (2):
HID: add support for Sony RF receiver with USB product id 0x0374
HID: clean up quirk for Sony RF receivers
George Cherian (1):
usb: dwc3: gadget: free trb pool only from epnum 2
George Spelvin (3):
pps: Add pps_lookup_dev() function
pps: Use pps_lookup_dev to reduce ldisc coupling
pps: Fix a use-after free bug when unregistering a source.
Grazvydas Ignotas (1):
OMAPFB: fix framebuffer console colors
Greg Kroah-Hartman (1):
Linux 3.4.87
Guenter Roeck (3):
hwmon: (coretemp) Add support for Atom D2000 and N2000 series CPU models
hwmon: (coretemp) Improve support for TjMax detection on Atom CPUs
hwmon: (coretemp) Add support for Atom CE4110/4150/4170
Hans Verkuil (1):
media: hdpvr: register the video node at the end of probe
Heikki Krogerus (1):
usb: dwc3: pci: add support for BayTrail
Henrik Rydberg (1):
hwmon: (applesmc) Always read until end of data
Ingo Molnar (1):
compiler/gcc4: Add quirk for 'asm goto' miscompilation bug
Jacob Schloss (1):
media: gspca_kinect: add Kinect for Windows USB id
James Ralston (2):
ahci: Add Device IDs for Intel Wellsburg PCH
ahci: Add Device IDs for Intel Wildcat Point-LP
Jean Delvare (1):
hwmon: (coretemp) Improve support of recent Atom CPU models
Jiri Kosina (3):
HID: hidraw: add proper error handling to raw event reporting
HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW
HID: usbhid: fix build problem
Johan Hovold (22):
USB: serial: add modem-status-change wait queue
USB: ark3116: fix use-after-free in TIOCMIWAIT
USB: ch341: fix use-after-free in TIOCMIWAIT
USB: cypress_m8: fix use-after-free in TIOCMIWAIT
USB: ftdi_sio: fix use-after-free in TIOCMIWAIT
USB: io_edgeport: fix use-after-free in TIOCMIWAIT
USB: io_ti: fix use-after-free in TIOCMIWAIT
USB: mct_u232: fix use-after-free in TIOCMIWAIT
USB: mos7840: fix broken TIOCMIWAIT
USB: mos7840: fix use-after-free in TIOCMIWAIT
USB: oti6858: fix use-after-free in TIOCMIWAIT
USB: pl2303: fix use-after-free in TIOCMIWAIT
USB: spcp8x5: fix use-after-free in TIOCMIWAIT
USB: ssu100: fix use-after-free in TIOCMIWAIT
USB: ti_usb_3410_5052: fix use-after-free in TIOCMIWAIT
USB: spcp8x5: fix device initialisation at open
USB: pl2303: fix device initialisation at open
USB: mos7840: fix memory leak in open
USB: mos7840: fix race in register handling
USB: adutux: fix big-endian device-type reporting
USB: ti_usb_3410_5052: fix big-endian firmware handling
USB: keyspan: fix null-deref at disconnect and release
Josh Boyer (1):
HID: usbhid: quirk for MSI GX680R led panel
Julius Werner (1):
usb: hub: Clear Port Reset Change during init/resume
Jussi Kivilinna (1):
ALSA: 6fire: fix DMA issues with URB transfer_buffer usage
Kailang Yang (1):
ALSA: hda/realtek - Add support of ALC231 codec
Konrad Rzeszutek Wilk (1):
intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it.
Laurent Pinchart (3):
usb: Add quirk detection based on interface information
usb: Add USB_QUIRK_RESET_RESUME for all Logitech UVC webcams
media: v4l: Reset subdev v4l2_dev field to NULL if registration fails
Lauri Hintsala (1):
mmc: mxs-mmc: fix deadlock caused by recursion loop
Linus Walleij (1):
ARM: u300: fix ages old copy/paste bug
Manoj Chourasia (1):
HID: hidraw: correctly deallocate memory on device disconnect
Marek Vasut (1):
HID: add quirk for Freescale i.MX28 ROM recovery
Mathias Krause (1):
ipc, msg: fix message length check for negative values
Matthieu CASTET (1):
HID: hidraw: fix list->buffer memleak
Mauro Carvalho Chehab (1):
sb_edac: Avoid overflow errors at memory size calculation
Michael Chan (1):
tg3: Add New 5719 Read DMA workaround
Mikulas Patocka (3):
powernow-k6: disable cache when changing frequency
powernow-k6: correctly initialize default parameters
powernow-k6: reorder frequencies
Ming Lei (1):
USB: serial: fix hang when opening port
Nicholas Santos (1):
HID: usbhid: quirk for Formosa IR receiver
Nicolas Pitre (1):
ARM: 7628/1: head.S: map one extra section for the ATAG/DTB area
Nithin Sujir (3):
tg3: Wait for boot code to finish after power on
tg3: Skip powering down function 0 on certain serdes devices
tg3: Add read dma workaround for 5720
Oleg Nesterov (1):
audit: wait_for_auditd() should use TASK_UNINTERRUPTIBLE
Oliver Neukum (1):
xhci: quirk for extra long delay for S4
Paul Moore (1):
selinux: correctly label /proc inodes in use before the policy is loaded
Philipp Reisner (1):
idr: idr_for_each_entry() macro
Rajkumar Manoharan (2):
ath9k: fill channel mode in caldata
ath9k_hw: Enable hw PLL power save for AR9462
Richard Weinberger (1):
USB: serial: Add Option GTM681W to qcserial device table.
Russell King (1):
ARM: footbridge: fix VGA initialisation
Sarah Sharp (2):
usb: Disable USB 2.0 Link PM before device reset.
xhci: Don't enable/disable RWE on bus suspend/resume.
Sergei Ianovich (1):
ARM: pxa: prevent PXA270 occasional reboot freezes
Seth Heasley (1):
ahci: AHCI-mode SATA patch for Intel Coleto Creek DeviceIDs
Shawn Guo (1):
ARM: dts: imx51-babbage: fix esdhc cd/wp properties
Soeren Moch (1):
media: dmxdev: remove dvb_ringbuffer_flush() on writer side
Sujith Manoharan (3):
ath9k: Fix noisefloor calibration
ath9k_hw: Assign default xlna config for AR9485
ath9k_hw: Fix RX gain initvals for AR9485
Takashi Iwai (8):
ALSA: aloop: Fix Oops while PM resume
ALSA: hda - Fix non-snoop page handling
ALSA: hda - Add Conexant CX20751/2/3/4 codec support
ALSA: hda - Always turn on pins for HDMI/DP
xhci: Fix spurious wakeups after S5 on Haswell
xhci: Limit the spurious wakeup fix only to HP machines
ALSA: hda - Cache the MUX selection for generic HDMI
ALSA: pcsp: Fix the order of input device unregistration
Tejun Heo (2):
idr: fix top layer handling
workqueue: cond_resched() after processing each work item
Thomas Pugliese (2):
usb: wusbcore: set the RPIPE wMaxPacketSize value correctly
usb: wusbcore: change WA_SEGS_MAX to a legal value
Torstein Hegge (1):
ALSA: usb: Parse UAC2 extension unit like for UAC1
Torsten Schenk (2):
ALSA: 6fire: make buffers DMA-able (pcm)
ALSA: 6fire: make buffers DMA-able (midi)
Wei Yongjun (1):
media: saa7164: fix return value check in saa7164_initdev()
Will Deacon (1):
ARM: 7791/1: a.out: remove partial a.out support
Greg KH
maintainerDocumentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt +4 -4
@@ -10,8 +10,8 @@ Required properties: Optional properties: - fsl,card-wired : Indicate the card is wired to host permanently -- fsl,cd-internal : Indicate to use controller internal card detection -- fsl,wp-internal : Indicate to use controller internal write protection +- fsl,cd-controller : Indicate to use controller internal card detection +- fsl,wp-controller : Indicate to use controller internal write protection - cd-gpios : Specify GPIOs for card detection - wp-gpios : Specify GPIOs for write protection
@@ -21,8 +21,8 @@ esdhc@70004000 { compatible = "fsl,imx51-esdhc"; reg = <0x70004000 0x4000>; interrupts = <1>; - fsl,cd-internal; - fsl,wp-internal; + fsl,cd-controller; + fsl,wp-controller; }; esdhc@70008000 {
Documentation/hwmon/coretemp +11 -1
@@ -6,7 +6,9 @@ Supported chips: Prefix: 'coretemp' CPUID: family 0x6, models 0xe (Pentium M DC), 0xf (Core 2 DC 65nm), 0x16 (Core 2 SC 65nm), 0x17 (Penryn 45nm), - 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield) + 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield), + 0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom), + 0x36 (Cedar Trail Atom) Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual Volume 3A: System Programming Guide http://softwarecommunity.intel.com/Wiki/Mobility/720.htm
@@ -65,6 +67,11 @@ Process Processor TjMax(C) U3400 105 P4505/P4500 90 +32nm Atom Processors + Z2460 90 + D2700/2550/2500 100 + N2850/2800/2650/2600 100 + 45nm Xeon Processors 5400 Quad-Core X5492, X5482, X5472, X5470, X5460, X5450 85 E5472, E5462, E5450/40/30/20/10/05 85
@@ -85,6 +92,9 @@ Process Processor TjMax(C) N475/470/455/450 100 N280/270 90 330/230 125 + E680/660/640/620 90 + E680T/660T/640T/620T 110 + CE4170/4150/4110 110 45nm Core2 Processors Solo ULV SU3500/3300 100
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 86 +SUBLEVEL = 87 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/Kconfig +0 -1
@@ -1,7 +1,6 @@ config ARM bool default y - select HAVE_AOUT select HAVE_DMA_API_DEBUG select HAVE_IDE if PCI || ISA || PCMCIA select HAVE_MEMBLOCK
arch/arm/boot/compressed/Makefile +0 -1
@@ -126,7 +126,6 @@ KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) endif ccflags-y := -fpic -fno-builtin -I$(obj) -asflags-y := -Wa,-march=all # Supply kernel BSS size to the decompressor via a linker symbol. KBSS_SZ = $(shell $(CROSS_COMPILE)size $(obj)/../../../../vmlinux | \
arch/arm/boot/compressed/head-sa1100.S +1 -0
@@ -11,6 +11,7 @@ #include <asm/mach-types.h> .section ".start", "ax" + .arch armv4 __SA1100_start:
arch/arm/boot/compressed/head-shark.S +1 -0
@@ -18,6 +18,7 @@ .section ".start", "ax" + .arch armv4 b __beginning __ofw_data: .long 0 @ the number of memory blocks
arch/arm/boot/compressed/head.S +1 -0
@@ -10,6 +10,7 @@ */ #include <linux/linkage.h> + .arch armv7-a /* * Debugging stuff *
arch/arm/boot/dts/imx51-babbage.dts +2 -2
@@ -29,8 +29,8 @@ aips@70000000 { /* aips-1 */ spba@70000000 { esdhc@70004000 { /* ESDHC1 */ - fsl,cd-internal; - fsl,wp-internal; + fsl,cd-controller; + fsl,wp-controller; status = "okay"; };
arch/arm/include/asm/a.out-core.h deleted +0 -45
45 lines not on this page · raw message
arch/arm/include/asm/a.out.h deleted +0 -34
@@ -1,34 +0,0 @@ -#ifndef __ARM_A_OUT_H__ -#define __ARM_A_OUT_H__ - -#include <linux/personality.h> -#include <linux/types.h> - -struct exec -{ -__u32 a_info;/* Use macros N_MAGIC, etc for access */ -__u32 a_text;/* length of text, in bytes */ -__u32 a_data;/* length of data, in bytes */ -__u32 a_bss;/* length of uninitialized data area for file, in bytes */ -__u32 a_syms;/* length of symbol table data in file, in bytes */ -__u32 a_entry;/* start address */ -__u32 a_trsize;/* length of relocation info for text, in bytes */ -__u32 a_drsize;/* length of relocation info for data, in bytes */ -}; - -/* -* This is always the same -*/ -#define N_TXTADDR (a) (0x00008000) - -#define N_TRSIZE (a) ((a).a_trsize) -#define N_DRSIZE (a) ((a).a_drsize) -#define N_SYMSIZE (a) ((a).a_syms) - -#define M_ARM 103 - -#ifndef LIBRARY_START_TEXT -#define LIBRARY_START_TEXT (0x00c00000) -#endif - -#endif /* __A_OUT_GNU_H__ */
arch/arm/include/asm/processor.h +0 -4
@@ -54,7 +54,6 @@ struct thread_struct {#define start_thread (regs,pc,sp) \ ({ \ - unsigned long *stack = (unsigned long *)sp; \ memset(regs->uregs, 0, sizeof(regs->uregs)); \ if (current->personality & ADDR_LIMIT_32BIT) \ regs->ARM_cpsr = USR_MODE; \
@@ -65,9 +64,6 @@ struct thread_struct { regs->ARM_cpsr |=PSR_ENDSTATE ; \ regs->ARM_pc = pc & ~1 ;/* pc */ \ regs->ARM_sp = sp;/* sp */ \ - regs->ARM_r2 = stack[2 ];/* r2 (envp) */ \ - regs->ARM_r1 = stack[1 ];/* r1 (argv) */ \ - regs->ARM_r0 = stack[0 ];/* r0 (argc) */ \nommu_start_thread (regs); \ })
arch/arm/kernel/head.S +3 -0
@@ -254,6 +254,7 @@ __create_page_tables: /* * Then map boot params address in r2 or the first 1MB (2MB with LPAE) * of ram if boot params address is not specified. + * We map 2 sections in case the ATAGs/DTB crosses a section boundary. */ mov r0, r2, lsr #SECTION_SHIFT movs r0, r0, lsl #SECTION_SHIFT
@@ -262,6 +263,8 @@ __create_page_tables: add r3, r3, #PAGE_OFFSET add r3, r4, r3, lsr #(SECTION_SHIFT - PMD_ORDER) orr r6, r7, r0 + str r6, [r3], #1 << PMD_ORDER + add r6, r6, #1 << SECTION_SHIFT str r6, [r3] #ifdef CONFIG_DEBUG_LL
arch/arm/kernel/topology.c +2 -0
@@ -13,6 +13,7 @@#include <linux/cpu.h> #include <linux/cpumask.h> +#include <linux/export.h> #include <linux/init.h> #include <linux/percpu.h> #include <linux/node.h>
@@ -42,6 +43,7 @@#define MPIDR_LEVEL2_SHIFT 16struct cputopo_arm cpu_topology[NR_CPUS ]; +EXPORT_SYMBOL_GPL (cpu_topology);const struct cpumask *cpu_coregroup_mask (int cpu) {
arch/arm/mach-dove/common.c +1 -1
@@ -90,7 +90,7 @@ void __init dove_ge00_init(struct mv643xx_eth_platform_data *eth_data) {orion_ge00_init (eth_data,DOVE_GE00_PHYS_BASE ,IRQ_DOVE_GE00_SUM , -0 ,get_tclk ()); +0 ,get_tclk (),1600 ); }/*****************************************************************************
arch/arm/mach-footbridge/common.c +3 -0
@@ -15,6 +15,7 @@#include <linux/init.h> #include <linux/io.h> #include <linux/spinlock.h> +#include <video/vga.h> #include <asm/pgtable.h> #include <asm/page.h>
@@ -198,6 +199,8 @@ void __init footbridge_map_io(void)*/ if (footbridge_cfn_mode ())iotable_init (ebsa285_host_io_desc,ARRAY_SIZE (ebsa285_host_io_desc)); + + vga_base =PCIMEM_BASE ; }void footbridge_restart (char mode,const char *cmd)
arch/arm/mach-footbridge/dc21285.c +0 -2
@@ -18,7 +18,6 @@#include <linux/irq.h> #include <linux/io.h> #include <linux/spinlock.h> -#include <video/vga.h> #include <asm/irq.h> #include <asm/mach/pci.h>
@@ -298,7 +297,6 @@ void __init dc21285_preinit(void)int cfn_mode; pcibios_min_mem =0x81000000 ; - vga_base =PCIMEM_BASE ; mem_size = (unsigned int )high_memory -PAGE_OFFSET ;for (mem_mask =0x00100000 ; mem_mask <0x10000000 ; mem_mask <<=1 )
arch/arm/mach-kirkwood/common.c +2 -2
@@ -87,7 +87,7 @@ void __init kirkwood_ge00_init(struct mv643xx_eth_platform_data *eth_data)orion_ge00_init (eth_data,GE00_PHYS_BASE ,IRQ_KIRKWOOD_GE00_SUM , -IRQ_KIRKWOOD_GE00_ERR , kirkwood_tclk); +IRQ_KIRKWOOD_GE00_ERR , kirkwood_tclk,1600 ); }
@@ -101,7 +101,7 @@ void __init kirkwood_ge01_init(struct mv643xx_eth_platform_data *eth_data)orion_ge01_init (eth_data,GE01_PHYS_BASE ,IRQ_KIRKWOOD_GE01_SUM , -IRQ_KIRKWOOD_GE01_ERR , kirkwood_tclk); +IRQ_KIRKWOOD_GE01_ERR , kirkwood_tclk,1600 ); }
arch/arm/mach-mv78xx0/common.c +4 -2
@@ -199,7 +199,8 @@ void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data) {orion_ge00_init (eth_data,GE00_PHYS_BASE ,IRQ_MV78XX0_GE00_SUM , -IRQ_MV78XX0_GE_ERR ,get_tclk ()); +IRQ_MV78XX0_GE_ERR ,get_tclk (), +MV643XX_TX_CSUM_DEFAULT_LIMIT ); }
@@ -210,7 +211,8 @@ void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) {orion_ge01_init (eth_data,GE01_PHYS_BASE ,IRQ_MV78XX0_GE01_SUM , -NO_IRQ ,get_tclk ()); +NO_IRQ ,get_tclk (), +MV643XX_TX_CSUM_DEFAULT_LIMIT ); }
arch/arm/mach-orion5x/common.c +2 -1
@@ -95,7 +95,8 @@ void __init orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data) {orion_ge00_init (eth_data,ORION5X_ETH_PHYS_BASE ,IRQ_ORION5X_ETH_SUM , -IRQ_ORION5X_ETH_ERR , orion5x_tclk); +IRQ_ORION5X_ETH_ERR , orion5x_tclk, +MV643XX_TX_CSUM_DEFAULT_LIMIT ); }
arch/arm/mach-pxa/reset.c +7 -1
@@ -13,6 +13,7 @@#include <mach/regs-ost.h> #include <mach/reset.h> +#include <mach/smemc.h> unsigned int reset_status;EXPORT_SYMBOL (reset_status);
@@ -80,6 +81,12 @@ static void do_hw_reset(void)OWER =OWER_WME ;OSSR =OSSR_M3 ;OSMR3 =OSCR +368640 ;/* ... in 100 ms */ +/* +* SDRAM hangs on watchdog reset on Marvell PXA270 (erratum 71) +* we put SDRAM into self-refresh to prevent that +*/ +while (1 ) +writel_relaxed (MDREFR_SLFRSH ,MDREFR ); }void pxa_restart (char mode,const char *cmd)
@@ -103,4 +110,3 @@ void pxa_restart(char mode, const char *cmd)break ; } } -
arch/arm/mach-u300/include/mach/u300-regs.h +1 -1
@@ -101,7 +101,7 @@#ifdef CONFIG_MACH_U300_BS335 /* Fast UART1 on U335 only */ -#define U300_UART1_BASE (U300_SLOW_PER_PHYS_BASE+0x7000) +#define U300_UART1_BASE (U300_FAST_PER_PHYS_BASE+0x7000)#endif /*
arch/arm/mach-w90x900/include/mach/entry-macro.S +2 -2
@@ -19,8 +19,8 @@ mov \base, #AIC_BA - ldr \irqnr, [ \base, #AIC_IPER] - ldr \irqnr, [ \base, #AIC_ISNR] + ldr \irqnr, [\base, #AIC_IPER] + ldr \irqnr, [\base, #AIC_ISNR] cmp \irqnr, #0 .endm
arch/arm/plat-orion/common.c +6 -2
@@ -261,10 +261,12 @@ void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data,unsigned long mapbase, unsigned long irq, unsigned long irq_err, - int tclk) + int tclk, + unsigned int tx_csum_limit) { fill_resources(&orion_ge00_shared, orion_ge00_shared_resources, mapbase + 0x2000, SZ_16K - 1, irq_err); + orion_ge00_shared_data.tx_csum_limit = tx_csum_limit;ge_complete (&orion_ge00_shared_data, tclk, orion_ge00_resources, irq, &orion_ge00_shared, eth_data, &orion_ge00);
@@ -314,10 +316,12 @@ void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data,unsigned long mapbase, unsigned long irq, unsigned long irq_err, - int tclk) + int tclk, + unsigned int tx_csum_limit) { fill_resources(&orion_ge01_shared, orion_ge01_shared_resources, mapbase + 0x2000, SZ_16K - 1, irq_err); + orion_ge01_shared_data.tx_csum_limit = tx_csum_limit;ge_complete (&orion_ge01_shared_data, tclk, orion_ge01_resources, irq, &orion_ge01_shared, eth_data, &orion_ge01);
arch/arm/plat-orion/include/plat/common.h +4 -2
@@ -40,13 +40,15 @@ void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data,unsigned long mapbase, unsigned long irq, unsigned long irq_err, - int tclk); + int tclk, + unsigned int tx_csum_limit);void __init orion_ge01_init (struct mv643xx_eth_platform_data *eth_data,unsigned long mapbase,unsigned long irq,unsigned long irq_err, -int tclk); +int tclk, +unsigned int tx_csum_limit); void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, unsigned long mapbase,
arch/mips/include/asm/jump_label.h +1 -1
@@ -22,7 +22,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\tnop\n\t" +asm_volatile_goto ("1:\tnop\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" WORD_INSN " 1b, %l[l_yes], %0\n\t"
arch/powerpc/include/asm/jump_label.h +1 -1
@@ -19,7 +19,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\n\t" +asm_volatile_goto ("1:\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" JUMP_ENTRY_TYPE "1b, %l[l_yes], %c0\n\t"
arch/s390/include/asm/jump_label.h +1 -1
@@ -15,7 +15,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("0: brcl 0,0\n" +asm_volatile_goto ("0: brcl 0,0\n" ".pushsection __jump_table, \"aw\"\n" ASM_ALIGN "\n" ASM_PTR " 0b, %l[label], %0\n"
arch/sparc/include/asm/jump_label.h +1 -1
@@ -9,7 +9,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:\n\t" +asm_volatile_goto ("1:\n\t" "nop\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t"
arch/x86/include/asm/cpufeature.h +1 -1
@@ -342,7 +342,7 @@ extern const char * const x86_power_flags[32]; static __always_inline __pure bool __static_cpu_has(u16 bit) {#if __GNUC__ >4 || __GNUC_MINOR__ >=5 - asm goto("1: jmp %l[t_no]\n" +asm_volatile_goto ("1: jmp %l[t_no]\n" "2:\n" ".section .altinstructions,\"a\"\n" " .long 1b - .\n"
arch/x86/include/asm/jump_label.h +1 -1
@@ -13,7 +13,7 @@ static __always_inline bool arch_static_branch(struct static_key *key) { - asm goto("1:" +asm_volatile_goto ("1:" STATIC_KEY_INITIAL_NOP ".pushsection __jump_table, \"aw\" \n\t" _ASM_ALIGN "\n\t"
drivers/ata/ahci.c +13 -0
@@ -292,6 +292,19 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x1f37), board_ahci }, /* Avoton RAID */ { PCI_VDEVICE(INTEL, 0x1f3e), board_ahci }, /* Avoton RAID */ { PCI_VDEVICE(INTEL, 0x1f3f), board_ahci }, /* Avoton RAID */ + { PCI_VDEVICE(INTEL, 0x8d02), board_ahci }, /* Wellsburg AHCI */ + { PCI_VDEVICE(INTEL, 0x8d04), board_ahci }, /* Wellsburg RAID */ + { PCI_VDEVICE(INTEL, 0x8d06), board_ahci }, /* Wellsburg RAID */ + { PCI_VDEVICE(INTEL, 0x8d0e), board_ahci }, /* Wellsburg RAID */ + { PCI_VDEVICE(INTEL, 0x8d62), board_ahci }, /* Wellsburg AHCI */ + { PCI_VDEVICE(INTEL, 0x8d64), board_ahci }, /* Wellsburg RAID */ + { PCI_VDEVICE(INTEL, 0x8d66), board_ahci }, /* Wellsburg RAID */ + { PCI_VDEVICE(INTEL, 0x8d6e), board_ahci }, /* Wellsburg RAID */ + { PCI_VDEVICE(INTEL, 0x23a3), board_ahci }, /* Coleto Creek AHCI */ + { PCI_VDEVICE(INTEL, 0x9c83), board_ahci }, /* Wildcat Point-LP AHCI */ + { PCI_VDEVICE(INTEL, 0x9c85), board_ahci }, /* Wildcat Point-LP RAID */ + { PCI_VDEVICE(INTEL, 0x9c87), board_ahci }, /* Wildcat Point-LP RAID */ + { PCI_VDEVICE(INTEL, 0x9c8f), board_ahci }, /* Wildcat Point-LP RAID *//* JMicron 360/1/3/5/6, match class to avoid IDE function */ { PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
drivers/cpufreq/powernow-k6.c +120 -27
212 lines not on this page · raw message
drivers/edac/sb_edac.c +4 -3
@@ -555,7 +555,8 @@ static int get_dimm_config(const struct mem_ctl_info *mci) {struct sbridge_pvt *pvt = mci->pvt_info;struct csrow_info *csr; -int i, j, banks, ranks, rows, cols, size, npages; +unsigned i, j, banks, ranks, rows, cols, npages; +u64 size;int csrow =0 ;unsigned long last_page =0 ;u32 reg;
@@ -627,10 +628,10 @@ static int get_dimm_config(const struct mem_ctl_info *mci) cols =numcol (mtr);/* DDR3 has 8 I/O banks */ - size = (rows * cols * banks * ranks) >> (20 -3 ); + size = ((u64 )rows * cols * banks * ranks) >> (20 -3 ); npages =MiB_TO_PAGES (size); -debugf0 ("mc#%d: channel %d, dimm %d, %d Mb (%d pages) bank: %d, rank: %d, row: %#x, col: %#x\n" , +debugf0 ("mc#%d: channel %d, dimm %d, %Ld Mb (%d pages) bank: %d, rank: %d, row: %#x, col: %#x\n" , pvt->sbridge_dev->mc, i, j, size, npages, banks, ranks, rows, cols);
drivers/hid/hid-apple.c +3 -0
@@ -480,6 +480,9 @@ static const struct hid_device_id apple_devices[] = { { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO), .driver_data =APPLE_NUMLOCK_EMULATION |APPLE_HAS_FN | APPLE_ISO_KEYBOARD }, + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, + USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI), + .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS), .driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN }, { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI),
drivers/hid/hid-core.c +17 -9
@@ -222,9 +222,9 @@ static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsign {struct hid_report *report;struct hid_field *field; -int usages; +unsigned usages;unsigned offset; -int i; +unsigned i; report =hid_register_report (parser->device, report_type, parser->global.report_id);if (!report) {
@@ -244,7 +244,8 @@ static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsignif (!parser->local.usage_index)/* Ignore padding fields */ return 0 ; - usages =max_t (int, parser->local.usage_index, parser->global.report_count); + usages =max_t (unsigned, parser->local.usage_index, + parser->global.report_count); field =hid_register_field (report, usages, parser->global.report_count);if (!field)
@@ -255,7 +256,7 @@ static int hid_add_field(struct hid_parser *parser, unsigned report_type, unsign field->application =hid_lookup_collection (parser,HID_COLLECTION_APPLICATION );for (i =0 ; i < usages; i++) { -int j = i; +unsigned j = i;/* Duplicate the last usage we parsed if we have excess values */ if (i >= parser->local.usage_index) j = parser->local.usage_index -1 ;
@@ -1099,7 +1100,7 @@ static struct hid_report *hid_get_report(struct hid_report_enum *report_enum,return report; } -void hid_report_raw_event (struct hid_device *hid,int type,u8 *data,int size, +int hid_report_raw_event (struct hid_device *hid,int type,u8 *data,int size,int interrupt) {struct hid_report_enum *report_enum = hid->report_enum + type;
@@ -1107,10 +1108,11 @@ void hid_report_raw_event(struct hid_device *hid, int type, u8 *data, int size,unsigned int a;int rsize, csize = size;u8 *cdata = data; +int ret =0 ; report =hid_get_report (report_enum, data);if (!report) -return ; + goto out;if (report_enum->numbered) { cdata++;
@@ -1130,14 +1132,19 @@ void hid_report_raw_event(struct hid_device *hid, int type, u8 *data, int size,if ((hid->claimed &HID_CLAIMED_HIDDEV ) && hid->hiddev_report_event) hid->hiddev_report_event (hid, report); -if (hid->claimed &HID_CLAIMED_HIDRAW ) -hidraw_report_event (hid, data, size); +if (hid->claimed &HID_CLAIMED_HIDRAW ) { + ret =hidraw_report_event (hid, data, size); +if (ret) + goto out; + }for (a =0 ; a < report->maxfield; a++)hid_input_field (hid, report->field[a], cdata, interrupt);if (hid->claimed &HID_CLAIMED_INPUT )hidinput_report_event (hid, report); +out: +return ret; }EXPORT_SYMBOL_GPL (hid_report_raw_event);
@@ -1214,7 +1221,7 @@ nomem: } } -hid_report_raw_event (hid, type, data, size, interrupt); + ret =hid_report_raw_event (hid, type, data, size, interrupt); unlock:up (&hid->driver_lock);
@@ -1612,6 +1619,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS3_CONTROLLER) }, { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE) }, + { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGP_MOUSE) }, { HID_USB_DEVICE(USB_VENDOR_ID_STANTUM, USB_DEVICE_ID_MTP) }, { HID_USB_DEVICE(USB_VENDOR_ID_STANTUM_STM, USB_DEVICE_ID_MTP_STM) }, { HID_USB_DEVICE(USB_VENDOR_ID_STANTUM_SITRONIX, USB_DEVICE_ID_MTP_SITRONIX) },
drivers/hid/hid-ids.h +10 -0
@@ -293,6 +293,12 @@#define USB_VENDOR_ID_FRUCTEL 0x25B6#define USB_DEVICE_ID_GAMETEL_MT_MODE 0x0002 +#define USB_VENDOR_ID_FORMOSA 0x147a +#define USB_DEVICE_ID_FORMOSA_IR_RECEIVER 0xe03e + +#define USB_VENDOR_ID_FREESCALE 0x15A2 +#define USB_DEVICE_ID_FREESCALE_MX28 0x004F +#define USB_VENDOR_ID_GAMERON 0x0810#define USB_DEVICE_ID_GAMERON_DUAL_PSX_ADAPTOR 0x0001#define USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR 0x0002
@@ -553,6 +559,9 @@#define USB_VENDOR_ID_MONTEREY 0x0566#define USB_DEVICE_ID_GENIUS_KB29E 0x3004 +#define USB_VENDOR_ID_MSI 0x1770 +#define USB_DEVICE_ID_MSI_GX680R_LED_PANEL 0xff00 +#define USB_VENDOR_ID_NATIONAL_SEMICONDUCTOR 0x0400#define USB_DEVICE_ID_N_S_HARMONY 0xc359
@@ -679,6 +688,7 @@#define USB_VENDOR_ID_SONY 0x054c#define USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE 0x024b +#define USB_DEVICE_ID_SONY_VAIO_VGP_MOUSE 0x0374#define USB_DEVICE_ID_SONY_PS3_CONTROLLER 0x0268#define USB_DEVICE_ID_SONY_NAVIGATION_CONTROLLER 0x042f
drivers/hid/hid-input.c +11 -1
@@ -459,6 +459,10 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fielif (field->flags &HID_MAIN_ITEM_CONSTANT ) goto ignore; +/* Ignore if report count is out of bounds. */ +if (field->report_count <1 ) + goto ignore; +/* only LED usages are supported in output fields */ if (field->report_type ==HID_OUTPUT_REPORT && (usage->hid &HID_USAGE_PAGE ) !=HID_UP_LED ) {
@@ -1119,7 +1123,12 @@ static void report_features(struct hid_device *hid) rep_enum = &hid->report_enum[HID_FEATURE_REPORT ];list_for_each_entry (rep, &rep_enum->report_list, list) -for (i =0 ; i < rep->maxfield; i++) +for (i =0 ; i < rep->maxfield; i++) { + +/* Ignore if report count is out of bounds. */ +if (rep->field[i]->report_count <1 ) +continue ; +for (j =0 ; j < rep->field[i]->maxusage; j++) {/* Verify if Battery Strength feature is available */ hidinput_setup_battery (hid,HID_FEATURE_REPORT , rep->field[i]);
@@ -1128,6 +1137,7 @@ static void report_features(struct hid_device *hid) drv->feature_mapping (hid, rep->field[i], rep->field[i]->usage + j); } + } }/*
drivers/hid/hid-multitouch.c +2 -2
@@ -82,8 +82,8 @@ struct mt_device {multitouch fields */ unsigned last_field_index;/* last field index of the report */ unsigned last_slot_field;/* the last field of a slot */ -__s8 inputmode;/* InputMode HID feature, -1 if non-existent */ -__s8 maxcontact_report_id;/* Maximum Contact Number HID feature, +__s16 inputmode;/* InputMode HID feature, -1 if non-existent */ +__s16 maxcontact_report_id;/* Maximum Contact Number HID feature, -1 if non-existent */ __u8 num_received;/* how many contacts we received */ __u8 num_expected;/* expected last contact index */
drivers/hid/hid-sony.c +15 -3
@@ -44,9 +44,19 @@ static __u8 *sony_report_fixup(struct hid_device *hdev, __u8 *rdesc, {struct sony_sc *sc =hid_get_drvdata (hdev); -if ((sc->quirks &VAIO_RDESC_CONSTANT ) && - *rsize >=56 && rdesc[54 ] ==0x81 && rdesc[55 ] ==0x07 ) { -hid_info (hdev,"Fixing up Sony Vaio VGX report descriptor\n" ); +/* +* Some Sony RF receivers wrongly declare the mouse pointer as a +* a constant non-data variable. +*/ +if ((sc->quirks &VAIO_RDESC_CONSTANT ) && *rsize >=56 && +/* usage page: generic desktop controls */ +/* rdesc[0] == 0x05 && rdesc[1] == 0x01 && */ +/* usage: mouse */ + rdesc[2 ] ==0x09 && rdesc[3 ] ==0x02 && +/* input (usage page for x,y axes): constant, variable, relative */ + rdesc[54 ] ==0x81 && rdesc[55 ] ==0x07 ) { +hid_info (hdev,"Fixing up Sony RF Receiver report descriptor\n" ); +/* input: data, variable, relative */ rdesc[55 ] =0x06 ; }
@@ -218,6 +228,8 @@ static const struct hid_device_id sony_devices[] = { .driver_data = SIXAXIS_CONTROLLER_BT }, { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGX_MOUSE), .driver_data = VAIO_RDESC_CONSTANT }, + { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_VAIO_VGP_MOUSE), + .driver_data = VAIO_RDESC_CONSTANT }, { } };MODULE_DEVICE_TABLE (hid, sony_devices);
drivers/hid/hidraw.c +56 -42
176 lines not on this page · raw message
drivers/hid/usbhid/hid-quirks.c +3 -0
@@ -70,7 +70,10 @@ static const struct hid_blacklist { { USB_VENDOR_ID_CH, USB_DEVICE_ID_CH_AXIS_295, HID_QUIRK_NOGET }, { USB_VENDOR_ID_DMI, USB_DEVICE_ID_DMI_ENC, HID_QUIRK_NOGET }, { USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2700, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_FORMOSA, USB_DEVICE_ID_FORMOSA_IR_RECEIVER, HID_QUIRK_NO_INIT_REPORTS }, + { USB_VENDOR_ID_FREESCALE, USB_DEVICE_ID_FREESCALE_MX28, HID_QUIRK_NOGET }, { USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GX680R_LED_PANEL, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN1, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN2, HID_QUIRK_NO_INIT_REPORTS },
drivers/hwmon/applesmc.c +13 -0
@@ -212,6 +212,7 @@ static int send_argument(const char *key)static int read_smc (u8 cmd,const char *key,u8 *buffer,u8 len) { +u8 status, data =0 ;int i;if (send_command (cmd) ||send_argument (key)) {
@@ -219,6 +220,7 @@ static int read_smc(u8 cmd, const char *key, u8 *buffer, u8 len)return -EIO ; } +/* This has no effect on newer (2012) SMCs */ outb (len,APPLESMC_DATA_PORT );for (i =0 ; i < len; i++) {
@@ -229,6 +231,17 @@ static int read_smc(u8 cmd, const char *key, u8 *buffer, u8 len) buffer[i] =inb (APPLESMC_DATA_PORT ); } +/* Read the data port until bit0 is cleared */ +for (i =0 ; i <16 ; i++) { +udelay (APPLESMC_MIN_WAIT ); + status =inb (APPLESMC_CMD_PORT ); +if (!(status &0x01 )) +break ; + data =inb (APPLESMC_DATA_PORT ); + } +if (i) +pr_warn ("flushed %d bytes, last value is: %d\n" , i, data); +return 0 ; }
drivers/hwmon/coretemp.c +33 -1
@@ -191,6 +191,27 @@ static ssize_t show_temp(struct device *dev,return tdata->valid ?sprintf (buf,"%d\n" , tdata->temp) : -EAGAIN ; } +struct tjmax { +char const *id; +int tjmax; +}; + +static struct tjmax __cpuinitconst tjmax_table[] = { + {"CPU D410" ,100000 }, + {"CPU D425" ,100000 }, + {"CPU D510" ,100000 }, + {"CPU D525" ,100000 }, + {"CPU N450" ,100000 }, + {"CPU N455" ,100000 }, + {"CPU N470" ,100000 }, + {"CPU N475" ,100000 }, + {"CPU 230" ,100000 },/* Model 0x1c, stepping 2 */ + {"CPU 330" ,125000 },/* Model 0x1c, stepping 2 */ + {"CPU CE4110" ,110000 },/* Model 0x1c, stepping 10 */ + {"CPU CE4150" ,110000 },/* Model 0x1c, stepping 10 */ + {"CPU CE4170" ,110000 },/* Model 0x1c, stepping 10 */ +}; +static int __cpuinit adjust_tjmax (struct cpuinfo_x86 *c,u32 id,struct device *dev) {
@@ -202,6 +223,13 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id,int err;u32 eax, edx;struct pci_dev *host_bridge; +int i; + +/* explicit tjmax table entries override heuristics */ +for (i =0 ; i <ARRAY_SIZE (tjmax_table); i++) { +if (strstr (c->x86_model_id, tjmax_table[i].id)) +return tjmax_table[i].tjmax; + }/* Early chips have no MSR for TjMax */
@@ -210,7 +238,8 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id,/* Atom CPUs */ -if (c->x86_model ==0x1c ) { +if (c->x86_model ==0x1c || c->x86_model ==0x26 + || c->x86_model ==0x27 ) { usemsr_ee =0 ; host_bridge =pci_get_bus_and_slot (0 ,PCI_DEVFN (0 ,0 ));
@@ -223,6 +252,9 @@ static int __cpuinit adjust_tjmax(struct cpuinfo_x86 *c, u32 id, tjmax =90000 ;pci_dev_put (host_bridge); + }else if (c->x86_model ==0x36 ) { + usemsr_ee =0 ; + tjmax =100000 ; }if (c->x86_model >0xe && usemsr_ee) {
drivers/hwmon/lm78.c +2 -0
@@ -94,6 +94,8 @@ static inline u8 FAN_TO_REG(long rpm, int div) {if (rpm <=0 )return 255 ; +if (rpm >1350000 ) +return 1 ;return SENSORS_LIMIT ((1350000 + rpm * div /2 ) / (rpm * div),1 ,254 ); }
drivers/hwmon/sis5595.c +2 -0
@@ -141,6 +141,8 @@ static inline u8 FAN_TO_REG(long rpm, int div) {if (rpm <=0 )return 255 ; +if (rpm >1350000 ) +return 1 ;return SENSORS_LIMIT ((1350000 + rpm * div /2 ) / (rpm * div),1 ,254 ); }
drivers/hwmon/vt8231.c +1 -1
@@ -145,7 +145,7 @@ static const u8 regtempmin[] = { 0x3a, 0x3e, 0x2c, 0x2e, 0x30, 0x32 };*/ static inline u8 FAN_TO_REG (long rpm,int div) { -if (rpm ==0 ) +if (rpm <=0 || rpm >1310720 )return 0 ;return SENSORS_LIMIT (1310720 / (rpm * div),1 ,255 ); }
drivers/idle/intel_idle.c +2 -1
@@ -594,8 +594,9 @@ static int __init intel_idle_init(void)intel_idle_cpuidle_driver_init (); retval =cpuidle_register_driver (&intel_idle_driver);if (retval) { +struct cpuidle_driver *drv =cpuidle_get_driver (); printk(KERN_DEBUG PREFIX "intel_idle yielding to %s", - cpuidle_get_driver()->name); + drv ? drv->name : "none");return retval; }
drivers/media/dvb/dvb-core/dmxdev.c +2 -6
@@ -379,10 +379,8 @@ static int dvb_dmxdev_section_callback(const u8 *buffer1, size_t buffer1_len, ret =dvb_dmxdev_buffer_write (&dmxdevfilter->buffer, buffer2, buffer2_len); } -if (ret <0 ) { -dvb_ringbuffer_flush (&dmxdevfilter->buffer); +if (ret <0 ) dmxdevfilter->buffer.error = ret; - }if (dmxdevfilter->params.sec.flags &DMX_ONESHOT ) dmxdevfilter->state =DMXDEV_STATE_DONE ;spin_unlock (&dmxdevfilter->dev->lock);
@@ -418,10 +416,8 @@ static int dvb_dmxdev_ts_callback(const u8 *buffer1, size_t buffer1_len, ret =dvb_dmxdev_buffer_write (buffer, buffer1, buffer1_len);if (ret == buffer1_len) ret =dvb_dmxdev_buffer_write (buffer, buffer2, buffer2_len); -if (ret <0 ) { -dvb_ringbuffer_flush (buffer); +if (ret <0 ) buffer->error = ret; - }spin_unlock (&dmxdevfilter->dev->lock);wake_up (&buffer->queue);return 0 ;
drivers/media/video/gspca/kinect.c +1 -0
@@ -390,6 +390,7 @@ static const struct sd_desc sd_desc = {/* -- module initialisation -- */ static const struct usb_device_id device_table[] = { {USB_DEVICE (0x045e ,0x02ae )}, + {USB_DEVICE (0x045e ,0x02bf )}, {} };
drivers/media/video/hdpvr/hdpvr-core.c +12 -10
@@ -309,6 +309,11 @@ static int hdpvr_probe(struct usb_interface *interface, dev->workqueue =0 ; +/* init video transfer queues first of all */ +/* to prevent oops in hdpvr_delete() on error paths */ +INIT_LIST_HEAD (&dev->free_buff_list); +INIT_LIST_HEAD (&dev->rec_buff_list); +/* register v4l2_device early so it can be used for printks */ if (v4l2_device_register (&interface->dev, &dev->v4l2_dev)) {err ("v4l2_device_register failed" );
@@ -331,10 +336,6 @@ static int hdpvr_probe(struct usb_interface *interface,if (!dev->workqueue) goto error; -/* init video transfer queues */ -INIT_LIST_HEAD (&dev->free_buff_list); -INIT_LIST_HEAD (&dev->rec_buff_list); - dev->options = hdpvr_default_options;if (default_video_input <HDPVR_VIDEO_INPUTS )
@@ -385,12 +386,6 @@ static int hdpvr_probe(struct usb_interface *interface, }mutex_unlock (&dev->io_mutex); -if (hdpvr_register_videodev (dev, &interface->dev, - video_nr[atomic_inc_return (&dev_nr)])) { -v4l2_err (&dev->v4l2_dev,"registering videodev failed\n" ); - goto error; - } -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) retval =hdpvr_register_i2c_adapter (dev);if (retval <0 ) {
@@ -411,6 +406,13 @@ static int hdpvr_probe(struct usb_interface *interface, }#endif + retval =hdpvr_register_videodev (dev, &interface->dev, + video_nr[atomic_inc_return (&dev_nr)]); +if (retval <0 ) { +v4l2_err (&dev->v4l2_dev,"registering videodev failed\n" ); + goto reg_fail; + } +/* let the user know what node this device is now attached to */ v4l2_info (&dev->v4l2_dev,"device now attached to %s\n" ,video_device_node_name (dev->video_dev));
drivers/media/video/omap/omap_vout.c +7 -5
@@ -206,19 +206,21 @@ static u32 omap_vout_uservirt_to_phys(u32 virtp)struct vm_area_struct *vma;struct mm_struct *mm = current->mm; - vma =find_vma (mm, virtp);/* For kernel direct-mapped memory, take the easy way */ -if (virtp >=PAGE_OFFSET ) { - physp =virt_to_phys ((void *) virtp); - }else if (vma && (vma->vm_flags &VM_IO ) && vma->vm_pgoff) { +if (virtp >=PAGE_OFFSET ) +return virt_to_phys ((void *) virtp); + +down_read (¤t->mm->mmap_sem); + vma =find_vma (mm, virtp); +if (vma && (vma->vm_flags &VM_IO ) && vma->vm_pgoff) {/* this will catch, kernel-allocated, mmaped-to-usermode addresses */ physp = (vma->vm_pgoff <<PAGE_SHIFT ) + (virtp - vma->vm_start); +up_read (¤t->mm->mmap_sem); }else {/* otherwise, use get_user_pages() for general userland pages */ int res, nr_pages =1 ;struct page *pages; -down_read (¤t->mm->mmap_sem); res =get_user_pages (current, current->mm, virtp, nr_pages,1 ,0 , &pages,NULL );
drivers/media/video/saa7164/saa7164-core.c +3 -1
@@ -1386,9 +1386,11 @@ static int __devinit saa7164_initdev(struct pci_dev *pci_dev,if (fw_debug) { dev->kthread =kthread_run (saa7164_thread_function, dev,"saa7164 debug" ); -if (!dev->kthread) +if (IS_ERR (dev->kthread)) { + dev->kthread =NULL ;printk (KERN_ERR "%s() Failed to create " "debug kernel thread\n" , __func__); + } } }/* != BOARD_UNKNOWN */
drivers/media/video/v4l2-device.c +14 -16
@@ -159,31 +159,21 @@ int v4l2_device_register_subdev(struct v4l2_device *v4l2_dev, sd->v4l2_dev = v4l2_dev;if (sd->internal_ops && sd->internal_ops->registered) { err = sd->internal_ops->registered (sd); -if (err) { -module_put (sd->owner); -return err; - } +if (err) + goto error_module; }/* This just returns 0 if either of the two args is NULL */ err =v4l2_ctrl_add_handler (v4l2_dev->ctrl_handler, sd->ctrl_handler); -if (err) { -if (sd->internal_ops && sd->internal_ops->unregistered) - sd->internal_ops->unregistered (sd); -module_put (sd->owner); -return err; - } +if (err) + goto error_unregister;#if defined(CONFIG_MEDIA_CONTROLLER )/* Register the entity. */ if (v4l2_dev->mdev) { err =media_device_register_entity (v4l2_dev->mdev, entity); -if (err <0 ) { -if (sd->internal_ops && sd->internal_ops->unregistered) - sd->internal_ops->unregistered (sd); -module_put (sd->owner); -return err; - } +if (err <0 ) + goto error_unregister; }#endif
@@ -192,6 +182,14 @@ int v4l2_device_register_subdev(struct v4l2_device *v4l2_dev,spin_unlock (&v4l2_dev->lock);return 0 ; + +error_unregister: +if (sd->internal_ops && sd->internal_ops->unregistered) + sd->internal_ops->unregistered (sd); +error_module: +module_put (sd->owner); + sd->v4l2_dev =NULL ; +return err; }EXPORT_SYMBOL_GPL (v4l2_device_register_subdev);
drivers/mmc/host/mxs-mmc.c +4 -4
@@ -639,10 +639,6 @@ static void mxs_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) host->base + HW_SSP_CTRL0 + MXS_SET_ADDR);writel (BM_SSP_CTRL1_SDIO_IRQ_EN , host->base +HW_SSP_CTRL1 +MXS_SET_ADDR ); - -if (readl (host->base +HW_SSP_STATUS ) &BM_SSP_STATUS_SDIO_IRQ ) -mmc_signal_sdio_irq (host->mmc); - }else {writel (BM_SSP_CTRL0_SDIO_IRQ_CHECK , host->base +HW_SSP_CTRL0 +MXS_CLR_ADDR );
@@ -651,6 +647,10 @@ static void mxs_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) }spin_unlock_irqrestore (&host->lock, flags); + +if (enable &&readl (host->base +HW_SSP_STATUS ) &BM_SSP_STATUS_SDIO_IRQ ) +mmc_signal_sdio_irq (host->mmc); + }static const struct mmc_host_ops mxs_mmc_ops = {
drivers/net/ethernet/broadcom/tg3.c +68 -6
116 lines not on this page · raw message
drivers/net/ethernet/broadcom/tg3.h +7 -1
@@ -1376,7 +1376,12 @@#define TG3_LSO_RD_DMA_CRPTEN_CTRL 0x00004910#define TG3_LSO_RD_DMA_CRPTEN_CTRL_BLEN_BD_4K 0x00030000#define TG3_LSO_RD_DMA_CRPTEN_CTRL_BLEN_LSO_4K 0x000c0000 -/* 0x4914 --> 0x4c00 unused */ +#define TG3_LSO_RD_DMA_TX_LENGTH_WA_5719 0x02000000 +#define TG3_LSO_RD_DMA_TX_LENGTH_WA_5720 0x00200000 +/* 0x4914 --> 0x4be0 unused */ + +#define TG3_NUM_RDMA_CHANNELS 4 +#define TG3_RDMA_LENGTH 0x00004be0/* Write DMA control registers */ #define WDMAC_MODE 0x00004c00
@@ -2924,6 +2929,7 @@ enum TG3_FLAGS {TG3_FLAG_L1PLLPD_EN ,TG3_FLAG_APE_HAS_NCSI ,TG3_FLAG_4K_FIFO_LIMIT , +TG3_FLAG_5719_5720_RDMA_BUG ,TG3_FLAG_RESET_TASK_PENDING ,TG3_FLAG_5705_PLUS , TG3_FLAG_IS_5788,
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +6 -2
@@ -3592,7 +3592,7 @@ static u16 ar9003_hw_ant_ctrl_chain_get(struct ath_hw *ah,static void ar9003_hw_ant_ctrl_apply (struct ath_hw *ah,bool is2ghz) {int chain; -u32 regval; +u32 regval, value;u32 ant_div_ctl1;static const u32 switch_chain_reg[AR9300_MAX_CHAINS ] = {AR_PHY_SWITCH_CHAIN_0 ,
@@ -3600,7 +3600,11 @@ static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz) AR_PHY_SWITCH_CHAIN_2, }; -u32 value =ar9003_hw_ant_ctrl_common_get (ah, is2ghz); +if (AR_SREV_9485 (ah) && (ar9003_hw_get_rx_gain_idx (ah) ==0 )) +ath9k_hw_cfg_output (ah,AR9300_EXT_LNA_CTL_GPIO_AR9485 , +AR_GPIO_OUTPUT_MUX_AS_PCIE_ATTENTION_LED ); + + value =ar9003_hw_ant_ctrl_common_get (ah, is2ghz);if (AR_SREV_9462 (ah)) { REG_RMW_FIELD(ah, AR_PHY_SWITCH_COM,
drivers/net/wireless/ath/ath9k/ar9003_hw.c +6 -9
@@ -33,9 +33,6 @@*/ static void ar9003_hw_init_mode_regs (struct ath_hw *ah) { -#define PCIE_PLL_ON_CREQ_DIS_L1_2P0 \ - ar9462_pciephy_pll_on_clkreq_disable_L1_2p0 -#define AR9462_BB_CTX_COEFJ (x) \ ar9462_##x##_baseband_core_txfir_coeff_japan_2484
@@ -312,13 +309,13 @@ static void ar9003_hw_init_mode_regs(struct ath_hw *ah)/* Awake -> Sleep Setting */ INIT_INI_ARRAY (&ah->iniPcieSerdes, -PCIE_PLL_ON_CREQ_DIS_L1_2P0 , -ARRAY_SIZE (PCIE_PLL_ON_CREQ_DIS_L1_2P0 ), + ar9462_pciephy_clkreq_disable_L1_2p0, +ARRAY_SIZE (ar9462_pciephy_clkreq_disable_L1_2p0),2 );/* Sleep -> Awake Setting */ INIT_INI_ARRAY (&ah->iniPcieSerdesLowPower, -PCIE_PLL_ON_CREQ_DIS_L1_2P0 , -ARRAY_SIZE (PCIE_PLL_ON_CREQ_DIS_L1_2P0 ), + ar9462_pciephy_clkreq_disable_L1_2p0, +ARRAY_SIZE (ar9462_pciephy_clkreq_disable_L1_2p0),2 );/* Fast clock modal settings */
@@ -637,8 +634,8 @@ static void ar9003_rx_gain_table_mode0(struct ath_hw *ah) 2); else if (AR_SREV_9485_11(ah)) INIT_INI_ARRAY(&ah->iniModesRxGain, - ar9485Common_wo_xlna_rx_gain_1_1, - ARRAY_SIZE(ar9485Common_wo_xlna_rx_gain_1_1), + ar9485_common_rx_gain_1_1, + ARRAY_SIZE(ar9485_common_rx_gain_1_1), 2); else if (AR_SREV_9580(ah)) INIT_INI_ARRAY(&ah->iniModesRxGain,
drivers/net/wireless/ath/ath9k/ar9003_phy.c +7 -20
@@ -545,33 +545,20 @@ static void ar9003_hw_init_bb(struct ath_hw *ah,void ar9003_hw_set_chain_masks (struct ath_hw *ah,u8 rx,u8 tx) { -switch (rx) { -case 0x5 : +if (ah->caps.tx_chainmask ==5 || ah->caps.rx_chainmask ==5 )REG_SET_BIT (ah,AR_PHY_ANALOG_SWAP ,AR_PHY_SWAP_ALT_CHAIN ); -case 0x3 : -case 0x1 : -case 0x2 : -case 0x7 : -REG_WRITE (ah,AR_PHY_RX_CHAINMASK , rx); -REG_WRITE (ah,AR_PHY_CAL_CHAINMASK , rx); -break ; -default : -break ; - } + +REG_WRITE (ah,AR_PHY_RX_CHAINMASK , rx); +REG_WRITE (ah,AR_PHY_CAL_CHAINMASK , rx);if ((ah->caps.hw_caps &ATH9K_HW_CAP_APM ) && (tx ==0x7 )) -REG_WRITE (ah,AR_SELFGEN_MASK ,0x3 ); + tx =3 ;else if (AR_SREV_9462 (ah))/* xxx only when MCI support is enabled */ -REG_WRITE (ah,AR_SELFGEN_MASK ,0x3 ); -else -REG_WRITE (ah,AR_SELFGEN_MASK , tx); + tx =3 ; -if (tx ==0x5 ) { -REG_SET_BIT (ah,AR_PHY_ANALOG_SWAP , -AR_PHY_SWAP_ALT_CHAIN ); - } +REG_WRITE (ah,AR_SELFGEN_MASK , tx); }/*
drivers/net/wireless/ath/ath9k/ar9003_phy.h +2 -0
@@ -339,6 +339,8 @@#define AR_PHY_CCA_NOM_VAL_9330_2GHZ -118 +#define AR9300_EXT_LNA_CTL_GPIO_AR9485 9 +/* * AGC Field Definitions */
drivers/net/wireless/ath/ath9k/calib.c +1 -0
@@ -410,6 +410,7 @@ void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah, ah->caldata->channel = chan->channel; ah->caldata->channelFlags = chan->channelFlags & ~CHANNEL_CW_INT ; + ah->caldata->chanmode = chan->chanmode; h = ah->caldata->nfCalHist; default_nf =ath9k_hw_get_default_nf (ah, chan);for (i =0 ; i <NUM_NF_READINGS ; i++) {
drivers/net/wireless/ath/ath9k/htc.h +1 -0
@@ -22,6 +22,7 @@#include <linux/firmware.h> #include <linux/skbuff.h> #include <linux/netdevice.h> +#include <linux/etherdevice.h> #include <linux/leds.h> #include <linux/slab.h> #include <net/mac80211.h>
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +11 -7
@@ -1077,15 +1077,19 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv, last_rssi = priv->rx.last_rssi; -if (likely (last_rssi !=ATH_RSSI_DUMMY_MARKER )) - rxbuf->rxstatus.rs_rssi =ATH_EP_RND (last_rssi, -ATH_RSSI_EP_MULTIPLIER ); +if (ieee80211_is_beacon (hdr->frame_control) && + !is_zero_ether_addr (common->curbssid) && +compare_ether_addr (hdr->addr3, common->curbssid) ==0 ) { +s8 rssi = rxbuf->rxstatus.rs_rssi; -if (rxbuf->rxstatus.rs_rssi <0 ) - rxbuf->rxstatus.rs_rssi =0 ; +if (likely (last_rssi !=ATH_RSSI_DUMMY_MARKER )) + rssi =ATH_EP_RND (last_rssi,ATH_RSSI_EP_MULTIPLIER ); -if (ieee80211_is_beacon (fc)) - priv->ah->stats.avgbrssi = rxbuf->rxstatus.rs_rssi; +if (rssi <0 ) + rssi =0 ; + + priv->ah->stats.avgbrssi = rssi; + } rx_status->mactime =be64_to_cpu (rxbuf->rxstatus.rs_tstamp); rx_status->band = hw->conf.channel->band;
drivers/net/wireless/ath/ath9k/hw.c +2 -1
@@ -1628,7 +1628,8 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,if (caldata && (chan->channel != caldata->channel || (chan->channelFlags & ~CHANNEL_CW_INT ) != - (caldata->channelFlags & ~CHANNEL_CW_INT ))) { + (caldata->channelFlags & ~CHANNEL_CW_INT ) || + chan->chanmode != caldata->chanmode)) {/* Operating channel changed, reset channel calibration data */ memset (caldata,0 ,sizeof (*caldata));ath9k_init_nfcal_hist_buffer (ah, chan);
drivers/net/wireless/ath/ath9k/hw.h +1 -0
@@ -361,6 +361,7 @@ struct ath9k_rtt_hist {struct ath9k_hw_cal_data {u16 channel;u32 channelFlags; +u32 chanmode;int32_t CalValid;int8_t iCoff;int8_t qCoff;
drivers/net/wireless/ath/ath9k/main.c +0 -7
@@ -1614,13 +1614,6 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed)ath_update_survey_stats (sc);spin_unlock_irqrestore (&common->cc_lock, flags); -/* -* Preserve the current channel values, before updating -* the same channel -*/ -if (ah->curchan && (old_pos == pos)) -ath9k_hw_getnf (ah, ah->curchan); -ath9k_cmn_update_ichannel (&sc->sc_ah->channels[pos], curchan, conf->channel_type);
drivers/pps/clients/pps-ldisc.c +4 -6
@@ -31,7 +31,7 @@static void pps_tty_dcd_change (struct tty_struct *tty,unsigned int status,struct pps_event_time *ts) { -struct pps_device *pps = (struct pps_device *)tty->disc_data; +struct pps_device *pps =pps_lookup_dev (tty);BUG_ON (pps ==NULL );
@@ -67,9 +67,9 @@ static int pps_tty_open(struct tty_struct *tty)pr_err ("cannot register PPS source \"%s\"\n" , info.path);return -ENOMEM ; } - tty->disc_data = pps; + pps->lookup_cookie = tty; -/* Should open N_TTY ldisc too */ +/* Now open the base class N_TTY ldisc */ ret =alias_n_tty_open (tty);if (ret <0 ) {pr_err ("cannot open tty ldisc \"%s\"\n" , info.path);
@@ -81,7 +81,6 @@ static int pps_tty_open(struct tty_struct *tty)return 0 ; err_unregister: - tty->disc_data =NULL ;pps_unregister_source (pps);return ret; }
@@ -90,11 +89,10 @@ static void (*alias_n_tty_close)(struct tty_struct *tty);static void pps_tty_close (struct tty_struct *tty) { -struct pps_device *pps = (struct pps_device *)tty->disc_data; +struct pps_device *pps =pps_lookup_dev (tty);alias_n_tty_close (tty); - tty->disc_data =NULL ;dev_info (pps->dev,"removed\n" );pps_unregister_source (pps); }
drivers/pps/pps.c +43 -4
80 lines not on this page · raw message
drivers/usb/core/driver.c +23 -15
@@ -530,22 +530,10 @@ int usb_match_device(struct usb_device *dev, const struct usb_device_id *id) }/* returns 0 if no match, 1 if match */ -int usb_match_one_id (struct usb_interface *interface, -const struct usb_device_id *id) +int usb_match_one_id_intf (struct usb_device *dev, +struct usb_host_interface *intf, +const struct usb_device_id *id) { -struct usb_host_interface *intf; -struct usb_device *dev; - -/* proc_connectinfo in devio.c may call us with id == NULL. */ -if (id ==NULL ) -return 0 ; - - intf = interface->cur_altsetting; - dev =interface_to_usbdev (interface); - -if (!usb_match_device (dev, id)) -return 0 ; -/* The interface class, subclass, and protocol should never be * checked for a match if the device class is Vendor Specific, * unless the match record specifies the Vendor ID. */
@@ -570,6 +558,26 @@ int usb_match_one_id(struct usb_interface *interface,return 1 ; } + +/* returns 0 if no match, 1 if match */ +int usb_match_one_id (struct usb_interface *interface, +const struct usb_device_id *id) +{ +struct usb_host_interface *intf; +struct usb_device *dev; + +/* proc_connectinfo in devio.c may call us with id == NULL. */ +if (id ==NULL ) +return 0 ; + + intf = interface->cur_altsetting; + dev =interface_to_usbdev (interface); + +if (!usb_match_device (dev, id)) +return 0 ; + +return usb_match_one_id_intf (dev, intf, id); +}EXPORT_SYMBOL_GPL (usb_match_one_id);/**
drivers/usb/core/hub.c +18 -3
@@ -920,6 +920,11 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)clear_port_feature (hub->hdev, port1,USB_PORT_FEAT_C_ENABLE ); } +if (portchange &USB_PORT_STAT_C_RESET ) { + need_debounce_delay = true; +clear_port_feature (hub->hdev, port1, +USB_PORT_FEAT_C_RESET ); + }if ((portchange &USB_PORT_STAT_C_BH_RESET ) &&hub_is_superspeed (hub->hdev)) { need_debounce_delay = true;
@@ -1916,7 +1921,7 @@ static int usb_enumerate_device(struct usb_device *udev)if (err <0 ) {dev_err (&udev->dev,"can't read configurations, error %d\n" , err); - goto fail; +return err; } }
@@ -1927,8 +1932,12 @@ static int usb_enumerate_device(struct usb_device *udev) udev->serial =usb_cache_string (udev, udev->descriptor.iSerialNumber); err =usb_enumerate_device_otg (udev); -fail: -return err; +if (err <0 ) +return err; + +usb_detect_interface_quirks (udev); + +return 0 ; }static void set_usb_port_removable (struct usb_device *udev)
@@ -4135,6 +4144,12 @@ static int usb_reset_and_verify_device(struct usb_device *udev) } parent_hub =hdev_to_hub (parent_hdev); +/* Disable USB2 hardware LPM. +* It will be re-enabled by the enumeration process. +*/ +if (udev->usb2_hw_lpm_enabled ==1 ) +usb_set_usb2_hardware_lpm (udev,0 ); +set_bit (port1, parent_hub->busy_bits);for (i =0 ; i <SET_CONFIG_TRIES ; ++i) {
drivers/usb/core/quirks.c +90 -62
193 lines not on this page · raw message
drivers/usb/core/usb.h +4 -0
@@ -24,6 +24,7 @@ extern void usb_disable_device(struct usb_device *dev, int skip_ep0);extern int usb_deauthorize_device (struct usb_device *);extern int usb_authorize_device (struct usb_device *);extern void usb_detect_quirks (struct usb_device *udev); +extern void usb_detect_interface_quirks (struct usb_device *udev);extern int usb_remove_device (struct usb_device *udev); extern int usb_get_device_descriptor(struct usb_device *dev,
@@ -35,6 +36,9 @@ extern int usb_set_configuration(struct usb_device *dev, int configuration);extern int usb_choose_configuration (struct usb_device *udev);extern void usb_kick_khubd (struct usb_device *dev); +extern int usb_match_one_id_intf (struct usb_device *dev, +struct usb_host_interface *intf, +const struct usb_device_id *id);extern int usb_match_device (struct usb_device *dev,const struct usb_device_id *id);extern void usb_forced_unbind_intf (struct usb_interface *intf);
drivers/usb/dwc3/dwc3-pci.c +4 -0
@@ -47,6 +47,8 @@/* FIXME define these in <linux/pci_ids.h> */ #define PCI_VENDOR_ID_SYNOPSYS 0x16c3#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 0xabcd +#define PCI_DEVICE_ID_INTEL_BYT 0x0f37 +#define PCI_DEVICE_ID_INTEL_MRFLD 0x119estruct dwc3_pci {struct device *dev;
@@ -155,6 +157,8 @@ static DEFINE_PCI_DEVICE_TABLE(dwc3_pci_id_table) = { PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS, PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3), }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT), }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MRFLD), }, { }/* Terminating Entry */ };MODULE_DEVICE_TABLE (pci, dwc3_pci_id_table);
drivers/usb/dwc3/gadget.c +12 -3
@@ -1483,10 +1483,19 @@ static void dwc3_gadget_free_endpoints(struct dwc3 *dwc)for (epnum =0 ; epnum <DWC3_ENDPOINTS_NUM ; epnum++) { dep = dwc->eps[epnum]; -dwc3_free_trb_pool (dep); - -if (epnum !=0 && epnum !=1 ) +/* +* Physical endpoints 0 and 1 are special; they form the +* bi-directional USB endpoint 0. +* +* For those two physical endpoints, we don't allocate a TRB +* pool nor do we add them the endpoints list. Due to that, we +* shouldn't do these two operations otherwise we would end up +* with all sorts of bugs when removing dwc3.ko. +*/ +if (epnum !=0 && epnum !=1 ) { +dwc3_free_trb_pool (dep);list_del (&dep->endpoint.ep_list); + }kfree (dep); }
drivers/usb/host/ehci-pci.c +1 -1
@@ -549,7 +549,7 @@ static struct pci_driver ehci_pci_driver = { .remove = usb_hcd_pci_remove, .shutdown = usb_hcd_pci_shutdown, -#ifdef CONFIG_PM_SLEEP +#ifdef CONFIG_PM .driver = { .pm = &usb_hcd_pci_pm_ops },
drivers/usb/host/ehci-q.c +6 -10
@@ -264,18 +264,14 @@ ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status) __releases(ehci->lock) __acquires(ehci->lock) { -if (likely (urb->hcpriv !=NULL )) { -struct ehci_qh *qh = (struct ehci_qh *) urb->hcpriv; - -/* S-mask in a QH means it's an interrupt urb */ -if ((qh->hw->hw_info2 &cpu_to_hc32 (ehci,QH_SMASK )) !=0 ) { - -/* ... update hc-wide periodic stats (for usbfs) */ -ehci_to_hcd (ehci)->self.bandwidth_int_reqs--; - } -qh_put (qh); +if (usb_pipetype (urb->pipe) ==PIPE_INTERRUPT ) { +/* ... update hc-wide periodic stats */ +ehci_to_hcd (ehci)->self.bandwidth_int_reqs--; } +if (usb_pipetype (urb->pipe) !=PIPE_ISOCHRONOUS ) +qh_put ((struct ehci_qh *) urb->hcpriv); +if (unlikely (urb->unlinked)) {COUNT (ehci->stats.unlink); }else {
drivers/usb/host/ehci-sched.c +2 -2
@@ -1684,7 +1684,7 @@ itd_link_urb (/* don't need that schedule data any more */ iso_sched_free (stream, iso_sched); - urb->hcpriv =NULL ; + urb->hcpriv = stream;timer_action (ehci,TIMER_IO_WATCHDOG );return enable_periodic (ehci);
@@ -2094,7 +2094,7 @@ sitd_link_urb (/* don't need that schedule data any more */ iso_sched_free (stream, sched); - urb->hcpriv =NULL ; + urb->hcpriv = stream;timer_action (ehci,TIMER_IO_WATCHDOG );return enable_periodic (ehci);
drivers/usb/host/ohci-pci.c +1 -1
@@ -414,7 +414,7 @@ static struct pci_driver ohci_pci_driver = { .remove = usb_hcd_pci_remove, .shutdown = usb_hcd_pci_shutdown, -#ifdef CONFIG_PM_SLEEP +#ifdef CONFIG_PM .driver = { .pm = &usb_hcd_pci_pm_ops },
drivers/usb/host/uhci-pci.c +1 -1
@@ -293,7 +293,7 @@ static struct pci_driver uhci_pci_driver = { .remove = usb_hcd_pci_remove, .shutdown = uhci_shutdown, -#ifdef CONFIG_PM_SLEEP +#ifdef CONFIG_PM .driver = { .pm = &usb_hcd_pci_pm_ops },
drivers/usb/host/xhci-hub.c +0 -28
@@ -1048,20 +1048,6 @@ int xhci_bus_suspend(struct usb_hcd *hcd) t1 =xhci_port_state_to_neutral (t1);if (t1 != t2)xhci_writel (xhci, t2, port_array[port_index]); - -if (hcd->speed !=HCD_USB3 ) { -/* enable remote wake up for USB 2.0 */ -__le32 __iomem *addr; -u32 tmp; - -/* Add one to the port status register address to get -* the port power control register address. -*/ - addr = port_array[port_index] +1 ; - tmp =xhci_readl (xhci, addr); - tmp |=PORT_RWE ; -xhci_writel (xhci, tmp, addr); - } } hcd->state =HC_STATE_SUSPENDED ; bus_state->next_statechange = jiffies +msecs_to_jiffies (10 );
@@ -1140,20 +1126,6 @@ int xhci_bus_resume(struct usb_hcd *hcd)xhci_ring_device (xhci, slot_id); }else xhci_writel (xhci, temp, port_array[port_index]); - -if (hcd->speed !=HCD_USB3 ) { -/* disable remote wake up for USB 2.0 */ -__le32 __iomem *addr; -u32 tmp; - -/* Add one to the port status register address to get -* the port power control register address. -*/ - addr = port_array[port_index] +1 ; - tmp =xhci_readl (xhci, addr); - tmp &= ~PORT_RWE ; -xhci_writel (xhci, tmp, addr); - } } (void )xhci_readl (xhci, &xhci->op_regs->command);
drivers/usb/host/xhci-pci.c +31 -1
@@ -34,6 +34,9 @@#define PCI_VENDOR_ID_ETRON 0x1b6f#define PCI_DEVICE_ID_ASROCK_P67 0x7023 +#define PCI_DEVICE_ID_INTEL_LYNXPOINT_XHCI 0x8c31 +#define PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI 0x9c31 +static const char hcd_name[] ="xhci_hcd" ;/* called after powerup, by probe or system-pm "wakeup" */
@@ -67,6 +70,14 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)xhci_dbg (xhci,"QUIRK: Fresco Logic xHC needs configure" " endpoint cmd after reset endpoint\n" ); } +if (pdev->device ==PCI_DEVICE_ID_FRESCO_LOGIC_PDK && + pdev->revision ==0x4 ) { + xhci->quirks |=XHCI_SLOW_SUSPEND ; +xhci_dbg (xhci, +"QUIRK: Fresco Logic xHC revision %u" +"must be suspended extra slowly" , + pdev->revision); + }/* Fresco Logic confirms: all revisions of this chip do not * support MSI, even though some of them claim to in their PCI * capabilities.
@@ -103,6 +114,20 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_SPURIOUS_REBOOT ; xhci->quirks |=XHCI_AVOID_BEI ; } +if (pdev->vendor ==PCI_VENDOR_ID_INTEL && + (pdev->device ==PCI_DEVICE_ID_INTEL_LYNXPOINT_XHCI || + pdev->device ==PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI )) { +/* Workaround for occasional spurious wakeups from S5 (or +* any other sleep) on Haswell machines with LPT and LPT-LP +* with the new Intel BIOS +*/ +/* Limit the quirk to only known vendors, as this triggers +* yet another BIOS bug on some other machines +* https://bugzilla.kernel.org/show_bug.cgi?id=66171 +*/ +if (pdev->subsystem_vendor ==PCI_VENDOR_ID_HP ) + xhci->quirks |=XHCI_SPURIOUS_WAKEUP ; + }if (pdev->vendor ==PCI_VENDOR_ID_ETRON && pdev->device ==PCI_DEVICE_ID_ASROCK_P67 ) { xhci->quirks |=XHCI_RESET_ON_RESUME ;
@@ -207,6 +232,11 @@ static void xhci_pci_remove(struct pci_dev *dev)usb_put_hcd (xhci->shared_hcd); }usb_hcd_pci_remove (dev); + +/* Workaround for spurious wakeups at shutdown with HSW */ +if (xhci->quirks &XHCI_SPURIOUS_WAKEUP ) +pci_set_power_state (dev, PCI_D3hot); +kfree (xhci); }
@@ -335,7 +365,7 @@ static struct pci_driver xhci_pci_driver = {/* suspend and resume implemented later */ .shutdown = usb_hcd_pci_shutdown, -#ifdef CONFIG_PM_SLEEP +#ifdef CONFIG_PM .driver = { .pm = &usb_hcd_pci_pm_ops },
drivers/usb/host/xhci.c +13 -1
@@ -779,12 +779,19 @@ void xhci_shutdown(struct usb_hcd *hcd)spin_lock_irq (&xhci->lock);xhci_halt (xhci); +/* Workaround for spurious wakeups at shutdown with HSW */ +if (xhci->quirks &XHCI_SPURIOUS_WAKEUP ) +xhci_reset (xhci);spin_unlock_irq (&xhci->lock);xhci_cleanup_msix (xhci);xhci_dbg (xhci,"xhci_shutdown completed - status = %x\n" ,xhci_readl (xhci, &xhci->op_regs->status)); + +/* Yet another workaround for spurious wakeups at shutdown with HSW */ +if (xhci->quirks &XHCI_SPURIOUS_WAKEUP ) +pci_set_power_state (to_pci_dev (hcd->self.controller), PCI_D3hot); }#ifdef CONFIG_PM
@@ -886,6 +893,7 @@ static void xhci_clear_command_ring(struct xhci_hcd *xhci)int xhci_suspend (struct xhci_hcd *xhci) {int rc =0 ; +unsigned int delay =XHCI_MAX_HALT_USEC ;struct usb_hcd *hcd =xhci_to_hcd (xhci);u32 command;
@@ -904,8 +912,12 @@ int xhci_suspend(struct xhci_hcd *xhci) command =xhci_readl (xhci, &xhci->op_regs->command); command &= ~CMD_RUN ;xhci_writel (xhci, command, &xhci->op_regs->command); + +/* Some chips from Fresco Logic need an extraordinary delay */ + delay *= (xhci->quirks &XHCI_SLOW_SUSPEND ) ?10 :1 ; +if (handshake (xhci, &xhci->op_regs->status, -STS_HALT ,STS_HALT ,XHCI_MAX_HALT_USEC )) { +STS_HALT ,STS_HALT , delay)) {xhci_warn (xhci,"WARN: xHC CMD_RUN timeout\n" );spin_unlock_irq (&xhci->lock);return -ETIMEDOUT ;
drivers/usb/host/xhci.h +2 -0
@@ -1509,6 +1509,8 @@ struct xhci_hcd {#define XHCI_COMP_MODE_QUIRK (1 << 14)#define XHCI_AVOID_BEI (1 << 15)#define XHCI_PLAT (1 << 16) +#define XHCI_SLOW_SUSPEND (1 << 17) +#define XHCI_SPURIOUS_WAKEUP (1 << 18)unsigned int num_active_eps;unsigned int limit_active_eps;/* There are two roothubs to keep track of bus suspend info for */
drivers/usb/misc/adutux.c +1 -1
@@ -829,7 +829,7 @@ static int adu_probe(struct usb_interface *interface,/* let the user know what node this device is now attached to */ dev_info (&interface->dev,"ADU%d %s now attached to /dev/usb/adutux%d\n" , - udev->descriptor.idProduct, dev->serial_number, +le16_to_cpu (udev->descriptor.idProduct), dev->serial_number, (dev->minor -ADU_MINOR_BASE )); exit:dbg (2 ," %s : leave, return value %p (dev)" , __func__, dev);
drivers/usb/serial/ark3116.c +6 -4
@@ -68,7 +68,6 @@ static int is_irda(struct usb_serial *serial) }struct ark3116_private { -wait_queue_head_t delta_msr_wait;struct async_icount icount;int irda;/* 1 for irda device */
@@ -148,7 +147,6 @@ static int ark3116_attach(struct usb_serial *serial)if (!priv)return -ENOMEM ; -init_waitqueue_head (&priv->delta_msr_wait);mutex_init (&priv->hw_lock);spin_lock_init (&priv->status_lock);
@@ -460,10 +458,14 @@ static int ark3116_ioctl(struct tty_struct *tty,case TIOCMIWAIT :for (;;) {struct async_icount prev = priv->icount; -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + if ((prev.rng == priv->icount.rng) && (prev.dsr == priv->icount.dsr) && (prev.dcd == priv->icount.dcd) &&
@@ -584,7 +586,7 @@ static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) priv->icount.dcd++;if (msr &UART_MSR_TERI ) priv->icount.rng++; -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); } }
drivers/usb/serial/ch341.c +6 -5
@@ -82,7 +82,6 @@ MODULE_DEVICE_TABLE(usb, id_table);struct ch341_private {spinlock_t lock;/* access lock */ -wait_queue_head_t delta_msr_wait;/* wait queue for modem status */ unsigned baud_rate;/* set baud rate */ u8 line_control;/* set line control value RTS/DTR */ u8 line_status;/* active status of modem control inputs */
@@ -262,7 +261,6 @@ static int ch341_attach(struct usb_serial *serial)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->delta_msr_wait); priv->baud_rate =DEFAULT_BAUD_RATE ; priv->line_control =CH341_BIT_RTS |CH341_BIT_DTR ;
@@ -299,7 +297,7 @@ static void ch341_dtr_rts(struct usb_serial_port *port, int on) priv->line_control &= ~(CH341_BIT_RTS |CH341_BIT_DTR );spin_unlock_irqrestore (&priv->lock, flags);ch341_set_handshake (port->serial->dev, priv->line_control); -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); }static void ch341_close (struct usb_serial_port *port)
@@ -502,7 +500,7 @@ static void ch341_read_int_callback(struct urb *urb)tty_kref_put (tty); } -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); } exit:
@@ -528,11 +526,14 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (!multi_change) { -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->line_status; multi_change = priv->multi_status_change;
drivers/usb/serial/cypress_m8.c +8 -6
@@ -125,7 +125,6 @@ struct cypress_private {int baud_rate;/* stores current baud rate in integer form */ int isthrottled;/* if throttled, discard reads */ -wait_queue_head_t delta_msr_wait;/* used for TIOCMIWAIT */ char prev_status, diff_status;/* used for TIOCMIWAIT */ /* we pass a pointer to this as the argument sent to cypress_set_termios old_termios */
@@ -475,7 +474,6 @@ static int generic_startup(struct usb_serial *serial)kfree (priv);return -ENOMEM ; } -init_waitqueue_head (&priv->delta_msr_wait);/* Skip reset for FRWD device. It is a workaound: device hangs if it receives SET_CONFIGURE in Configured
@@ -919,12 +917,16 @@ static int cypress_ioctl(struct tty_struct *tty,switch (cmd) {/* This code comes from drivers/char/serial.c and ftdi_sio.c */ case TIOCMIWAIT : -while (priv !=NULL ) { -interruptible_sleep_on (&priv->delta_msr_wait); +for (;;) { +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; -else { + +if (port->serial->disconnected) +return -EIO ; + + {char diff = priv->diff_status;if (diff ==0 )return -EIO ;/* no change => error */
@@ -1250,7 +1252,7 @@ static void cypress_read_int_callback(struct urb *urb)if (priv->current_status != priv->prev_status) { priv->diff_status |= priv->current_status ^ priv->prev_status; -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); priv->prev_status = priv->current_status; }spin_unlock_irqrestore (&priv->lock, flags);
drivers/usb/serial/ftdi_sio.c +43 -25
135 lines not on this page · raw message
drivers/usb/serial/io_edgeport.c +7 -5
@@ -114,7 +114,6 @@ struct edgeport_port {wait_queue_head_t wait_chase;/* for handling sleeping while waiting for chase to finish */ wait_queue_head_t wait_open;/* for handling sleeping while waiting for open to finish */ wait_queue_head_t wait_command;/* for handling sleeping while waiting for command to finish */ -wait_queue_head_t delta_msr_wait;/* for handling sleeping while waiting for msr change to happen */ struct async_icount icount;struct usb_serial_port *port;/* loop back to the owner of this object */
@@ -884,7 +883,6 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port)/* initialize our wait queues */ init_waitqueue_head (&edge_port->wait_open);init_waitqueue_head (&edge_port->wait_chase); -init_waitqueue_head (&edge_port->delta_msr_wait);init_waitqueue_head (&edge_port->wait_command);/* initialize our icount structure */
@@ -1701,13 +1699,17 @@ static int edge_ioctl(struct tty_struct *tty,dbg ("%s (%d) TIOCMIWAIT" , __func__, port->number); cprev = edge_port->icount;while (1 ) { -prepare_to_wait (&edge_port->delta_msr_wait, +prepare_to_wait (&port->delta_msr_wait, &wait,TASK_INTERRUPTIBLE );schedule (); -finish_wait (&edge_port->delta_msr_wait, &wait); +finish_wait (&port->delta_msr_wait, &wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = edge_port->icount;if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && cnow.dcd == cprev.dcd && cnow.cts == cprev.cts)
@@ -2088,7 +2090,7 @@ static void handle_new_msr(struct edgeport_port *edge_port, __u8 newMsr) icount->dcd++;if (newMsr &EDGEPORT_MSR_DELTA_RI ) icount->rng++; -wake_up_interruptible (&edge_port->delta_msr_wait); +wake_up_interruptible (&edge_port->port->delta_msr_wait); }/* Save the new modem status */
drivers/usb/serial/io_ti.c +6 -6
@@ -91,9 +91,6 @@ struct edgeport_port {int close_pending;int lsr_event;struct async_icount icount; -wait_queue_head_t delta_msr_wait;/* for handling sleeping while -waiting for msr change to -happen */ struct edgeport_serial *edge_serial;struct usb_serial_port *port;__u8 bUartMode;/* Port type, 0: RS232, etc. */
@@ -1549,7 +1546,7 @@ static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) icount->dcd++;if (msr &EDGEPORT_MSR_DELTA_RI ) icount->rng++; -wake_up_interruptible (&edge_port->delta_msr_wait); +wake_up_interruptible (&edge_port->port->delta_msr_wait); }/* Save the new modem status */
@@ -1867,7 +1864,6 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) dev = port->serial->dev;memset (&(edge_port->icount),0x00 ,sizeof (edge_port->icount)); -init_waitqueue_head (&edge_port->delta_msr_wait);/* turn off loopback */ status =ti_do_config (edge_port,UMPC_SET_CLR_LOOPBACK ,0 );
@@ -2553,10 +2549,14 @@ static int edge_ioctl(struct tty_struct *tty,dbg ("%s - (%d) TIOCMIWAIT" , __func__, port->number); cprev = edge_port->icount;while (1 ) { -interruptible_sleep_on (&edge_port->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = edge_port->icount;if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && cnow.dcd == cprev.dcd && cnow.cts == cprev.cts)
drivers/usb/serial/keyspan.c +1 -1
@@ -2486,7 +2486,7 @@ static int keyspan_startup(struct usb_serial *serial)if (d_details ==NULL ) {dev_err (&serial->dev->dev,"%s - unknown product id %x\n" , __func__,le16_to_cpu (serial->dev->descriptor.idProduct)); -return 1 ; +return -ENODEV ; }/* Setup private data for serial driver */
drivers/usb/serial/mct_u232.c +7 -6
@@ -126,8 +126,6 @@ struct mct_u232_private {unsigned char last_msr;/* Modem Status Register */ unsigned int rx_flags;/* Throttling flags */ struct async_icount icount; -wait_queue_head_t msr_wait;/* for handling sleeping while waiting -for msr change to happen */ };#define THROTTLED 0x01
@@ -407,7 +405,6 @@ static int mct_u232_startup(struct usb_serial *serial)if (!priv)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->msr_wait);usb_set_serial_port_data (serial->port[0 ], priv);init_waitqueue_head (&serial->port[0 ]->write_wait);
@@ -631,7 +628,7 @@ static void mct_u232_read_int_callback(struct urb *urb) tty_kref_put(tty); }#endif -wake_up_interruptible (&priv->msr_wait); +wake_up_interruptible (&port->delta_msr_wait);spin_unlock_irqrestore (&priv->lock, flags); exit: retval =usb_submit_urb (urb,GFP_ATOMIC );
@@ -852,13 +849,17 @@ static int mct_u232_ioctl(struct tty_struct *tty, cprev = mct_u232_port->icount;spin_unlock_irqrestore (&mct_u232_port->lock, flags);for ( ; ; ) { -prepare_to_wait (&mct_u232_port->msr_wait, +prepare_to_wait (&port->delta_msr_wait, &wait,TASK_INTERRUPTIBLE );schedule (); -finish_wait (&mct_u232_port->msr_wait, &wait); +finish_wait (&port->delta_msr_wait, &wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&mct_u232_port->lock, flags); cnow = mct_u232_port->icount;spin_unlock_irqrestore (&mct_u232_port->lock, flags);
drivers/usb/serial/mos7840.c +43 -17
187 lines not on this page · raw message
drivers/usb/serial/oti6858.c +6 -4
@@ -198,7 +198,6 @@ struct oti6858_private {u8 setup_done;struct delayed_work delayed_setup_work; -wait_queue_head_t intr_wait;struct usb_serial_port *port;/* USB port with which associated */ };
@@ -356,7 +355,6 @@ static int oti6858_startup(struct usb_serial *serial)break ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->intr_wait);/* INIT_WORK(&priv->setup_work, setup_line, serial->port[i]); */ /* INIT_WORK(&priv->write_work, send_data, serial->port[i]); */ priv->port = port;
@@ -703,11 +701,15 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (1 ) { -wait_event_interruptible (priv->intr_wait, +wait_event_interruptible (port->delta_msr_wait, + port->serial->disconnected || priv->status.pin_state != prev);if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->status.pin_state &PIN_MASK ;spin_unlock_irqrestore (&priv->lock, flags);
@@ -819,7 +821,7 @@ static void oti6858_read_int_callback(struct urb *urb)if (!priv->transient) {if (xs->pin_state != priv->status.pin_state) -wake_up_interruptible (&priv->intr_wait); +wake_up_interruptible (&port->delta_msr_wait);memcpy (&priv->status, xs,OTI6858_CTRL_PKT_SIZE ); }
drivers/usb/serial/pl2303.c +11 -10
@@ -149,7 +149,6 @@ enum pl2303_type {struct pl2303_private {spinlock_t lock; -wait_queue_head_t delta_msr_wait;u8 line_control;u8 line_status;enum pl2303_type type;
@@ -203,7 +202,6 @@ static int pl2303_startup(struct usb_serial *serial)if (!priv) goto cleanup;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->delta_msr_wait); priv->type = type;usb_set_serial_port_data (serial->port[i], priv); }
@@ -271,7 +269,7 @@ static void pl2303_set_termios(struct tty_struct *tty,serial settings even to the same values as before. Thus we actually need to filter in this specific case */ -if (!tty_termios_hw_change (tty->termios, old_termios)) +if (old_termios && !tty_termios_hw_change (tty->termios, old_termios))return ; cflag = tty->termios->c_cflag;
Lines of this file are not shown. View the raw message.
drivers/video/omap2/omapfb/omapfb-main.c +1 -1
Lines of this file are not shown. View the raw message.
sound/pci/hda/patch_conexant.c +83 -31
114 lines not on this page · raw message
sound/usb/6fire/pcm.c +40 -1
41 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.