Linux 3.2.10
Greg KH
maintainerI'm announcing the release of the 3.2.10 kernel.
All users of the 3.2 kernel series must upgrade.
The updated 3.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.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/hwmon/jc42 | 26 +- Makefile | 2 arch/alpha/include/asm/futex.h | 2 arch/arm/Kconfig | 2 arch/arm/include/asm/pmu.h | 2 arch/arm/kernel/perf_event.c | 22 - arch/arm/kernel/perf_event_v6.c | 22 - arch/arm/kernel/perf_event_v7.c | 11 arch/arm/kernel/perf_event_xscale.c | 20 + arch/arm/mach-dove/common.c | 3 arch/arm/mach-kirkwood/common.c | 3 arch/arm/mach-kirkwood/mpp.h | 320 ++++++++++++++-------------- arch/arm/mach-lpc32xx/include/mach/irqs.h | 2 arch/arm/mach-lpc32xx/irq.c | 25 +- arch/arm/mach-lpc32xx/serial.c | 20 + arch/arm/mach-mv78xx0/common.c | 3 arch/arm/mach-mv78xx0/mpp.h | 226 +++++++++---------- arch/arm/mach-omap2/board-4430sdp.c | 22 + arch/arm/mach-omap2/board-omap4panda.c | 22 + arch/arm/mach-omap2/omap-iommu.c | 3 arch/arm/mach-orion5x/common.c | 4 arch/arm/mm/proc-v7.S | 4 arch/arm/plat-orion/common.c | 9 arch/arm/plat-orion/include/plat/common.h | 3 arch/arm/plat-orion/mpp.c | 3 arch/arm/plat-s3c24xx/dma.c | 2 arch/avr32/Kconfig | 1 arch/s390/Kconfig | 3 arch/s390/include/asm/compat.h | 7 arch/s390/kernel/process.c | 1 arch/s390/kernel/ptrace.c | 2 arch/s390/kernel/setup.c | 2 arch/s390/kernel/signal.c | 1 arch/s390/mm/fault.c | 1 arch/s390/mm/mmap.c | 2 arch/x86/include/asm/perf_event.h | 8 arch/x86/kernel/cpu/perf_event.h | 8 arch/x86/kernel/cpu/perf_event_amd.c | 37 +++ arch/x86/kvm/svm.c | 5 block/bsg.c | 3 drivers/acpi/sleep.c | 16 + drivers/crypto/mv_cesa.c | 1 drivers/gpu/drm/i915/i915_reg.h | 15 + drivers/gpu/drm/i915/intel_display.c | 32 ++ drivers/gpu/drm/radeon/r600_blit_shaders.c | 8 drivers/hid/hid-ids.h | 3 drivers/hid/usbhid/hid-quirks.c | 1 drivers/hwmon/Kconfig | 5 drivers/hwmon/jc42.c | 30 ++ drivers/hwmon/pmbus/pmbus_core.c | 3 drivers/hwmon/pmbus/zl6100.c | 10 drivers/i2c/busses/i2c-mxs.c | 13 - drivers/input/mouse/alps.c | 7 drivers/iommu/amd_iommu_init.c | 2 drivers/iommu/omap-iommu.c | 3 drivers/md/dm-flakey.c | 2 drivers/md/dm-io.c | 23 +- drivers/md/dm-ioctl.c | 2 drivers/md/dm-raid.c | 17 - drivers/md/dm-thin-metadata.c | 25 +- drivers/mfd/cs5535-mfd.c | 6 drivers/mfd/mfd-core.c | 2 drivers/mfd/wm8994-core.c | 14 + drivers/misc/cs5535-mfgpt.c | 2 drivers/mmc/host/atmel-mci.c | 21 - drivers/mmc/host/sdhci-esdhc-imx.c | 5 drivers/net/usb/cdc_ether.c | 7 drivers/net/usb/usbnet.c | 2 drivers/net/usb/zaurus.c | 7 drivers/net/wireless/ath/ath9k/ar5008_phy.c | 25 -- drivers/net/wireless/ath/ath9k/ar9002_hw.c | 19 + drivers/net/wireless/ath/ath9k/hw.h | 1 drivers/net/wireless/ath/carl9170/tx.c | 9 drivers/net/wireless/iwlwifi/iwl-agn-sta.c | 10 drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 36 ++- drivers/rapidio/devices/tsi721.c | 5 drivers/regulator/88pm8607.c | 6 drivers/s390/block/dasd_eckd.c | 2 drivers/s390/block/dasd_ioctl.c | 1 drivers/s390/char/fs3270.c | 1 drivers/s390/char/vmcp.c | 1 drivers/s390/cio/chsc_sch.c | 1 drivers/s390/cio/qdio_main.c | 4 drivers/s390/scsi/zfcp_cfdc.c | 1 drivers/scsi/osd/osd_uld.c | 4 drivers/spi/spi-topcliff-pch.c | 6 drivers/staging/media/lirc/lirc_serial.c | 100 ++++---- drivers/tty/Kconfig | 2 drivers/video/omap2/dss/hdmi.c | 3 drivers/video/omap2/dss/ti_hdmi.h | 4 drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c | 77 +++++- drivers/video/via/hw.c | 4 drivers/watchdog/hpwdt.c | 5 fs/aio.c | 2 fs/autofs4/autofs_i.h | 1 fs/autofs4/dev-ioctl.c | 1 fs/autofs4/inode.c | 2 fs/autofs4/waitq.c | 22 + fs/binfmt_elf.c | 2 fs/cifs/dir.c | 20 + include/linux/compat.h | 4 include/linux/regset.h | 10 include/video/omapdss.h | 5 kernel/irq/manage.c | 44 +++ kernel/kprobes.c | 12 - mm/huge_memory.c | 6 mm/memcontrol.c | 5 mm/nommu.c | 2 net/mac80211/rate.c | 2 sound/pci/hda/hda_codec.c | 8 sound/pci/hda/hda_codec.h | 3 sound/pci/hda/patch_conexant.c | 22 + sound/pci/hda/patch_realtek.c | 2 sound/pci/hda/patch_sigmatel.c | 2 sound/soc/imx/imx-ssi.c | 2 sound/soc/soc-dapm.c | 12 - 116 files changed, 1081 insertions(+), 585 deletions(-)
Akio Idehara (1):
Input: ALPS - fix touchpad detection when buttons are pressed
Alan Stern (1):
HID: usbhid: Add NOGET quirk for the AIREN Slim+ keyboard
Alban Browaeys (1):
drm/i915: Prevent a machine hang by checking crtc->active before loading lut
Alexandre Bounine (1):
rapidio/tsi721: fix queue wrapping bug in inbound doorbell handler
Andrea Arcangeli (1):
mm: thp: fix BUG on mm->nr_ptes
Andrew Lunn (2):
ARM: orion: Fix USB phy for orion5x.
ARM: orion: Fix Orion5x GPIO regression from MPP cleanup
Andrew Morton (1):
alpha: fix 32/64-bit bug in futex support
Anton Vorontsov (1):
mm: memcg: Correct unregistring of events attached to the same eventfd
Ben Hutchings (4):
media: staging: lirc_serial: Fix init/exit order
media: staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()
media: staging: lirc_serial: Fix deadlock on resume failure
media: staging: lirc_serial: Do not assume error codes returned by request_irq()
Boaz Harrosh (1):
osd_uld: Bump MAX_OSD_DEVICES from 64 to 1,048,576
Christian Gmeiner (1):
mfd: Fix cs5535 section mismatch
Christian Lamparter (1):
carl9170: fix frame delivery if sta is in powersave mode
Danny Kukawka (2):
cs5535-mfgpt: don't call __init function from __devinit
spi-topcliff-pch: rename pch_spi_pcidev to pch_spi_pcidev_driver
David Howells (2):
S390: KEYS: Enable the compat keyctl wrapper on s390x
NOMMU: Don't need to clear vm_mm when deleting a VMA
Eugeni Dodonov (3):
drm/i915: gen7: implement rczunit workaround drm/i915: gen7: Implement an L3 caching workaround. drm/i915: gen7: work around a system hang on IVB
Fabio Baltieri (1):
avr32: select generic atomic64_t support
Felix Fietkau (1):
ath9k_hw: prevent writes to const data on AR9160
Florian Tobias Schandinat (2):
viafb: select HW scaling on VX900 for IGA2
viafb: fix IGA1 modesetting on VX900
Greg Kroah-Hartman (1):
Linux 3.2.10
Guenter Roeck (3):
hwmon: (pmbus_core) Fix maximum number of POUT alarm attributes
hwmon: (jc42) Add support for AT30TS00, TS3000GB2, TSE2002GB2, and MCP9804
hwmon: (zl6100) Maintain delay parameter in driver instance data
Gusakov Andrey (1):
ARM: S3C24XX: DMA resume regression fix
H. Peter Anvin (2):
regset: Prevent null pointer reference on readonly regsets
regset: Return -EFAULT, not -EIO, on host-side memory fault
Heiko Carstens (1):
compat: fix compile breakage on s390
Ian Kent (1):
autofs: work around unhappy compat problem on x86-64
Jan Beulich (1):
x86/amd: iommu_set_device_table() must not be __init
Javier Martin (1):
ASoC: i.MX SSI: Fix DSP_A format.
Jean Delvare (2):
mfd: Fix ACPI conflict check
hwmon: (jc42) Add support for ST Microelectronics STTS2002 and STTS3000
Jeff Layton (1):
cifs: fix dentry refcount leak when opening a FIFO on lookup
Jeff Moyer (1):
aio: wake up waiters when freeing unused kiocbs
Jesper Juhl (1):
dm ioctl: do not leak argv if target message only contains whitespace
Jett.Zhou (1):
regulator: fix the ldo configure according to 88pm860x spec
Joe Thornber (2):
dm thin metadata: unlock superblock in init_pmd error path dm thin metadata: decrement counter after removing mapped block
Joerg Roedel (1):
perf/x86/kvm: Fix Host-Only/Guest-Only counting with SVM disabled
Johannes Berg (1):
iwlwifi: fix key removal
Jonathan E Brassow (2):
dm raid: set MD_CHANGE_DEVS when rebuilding
dm raid: fix flush support
Keng-Yu Lin (1):
ACPI / PM: Do not save/restore NVS on Asus K54C/K54HR
Kenneth Graunke (1):
drm/i915: gen7: Disable the RHWO optimization as it can cause GPU hangs.
Larry Finger (1):
rtl8192cu: Add new device IDs
Linus Torvalds (1):
Fix autofs compile without CONFIG_COMPAT
Ludovic Desroches (1):
mmc: atmel-mci: don't use dma features when using DMA with no chan available
Marek Olšák (1):
drm/radeon/kms: set SX_MISC in the r6xx blit code (v2)
Mark Brown (2):
mfd: Test for jack detection when deciding if wm8994 should suspend
ASoC: dapm: Check for bias level when powering down
Maxim Uvarov (1):
watchdog: hpwdt: clean up set_memory_x call for 32 bit
Mike Snitzer (2):
dm flakey: fix crash on read when corrupt_bio_byte not set dm thin metadata: remove incorrect close_device on creation error paths
Milan Broz (1):
dm io: fix discard support
Mohammed Shafi Shajakhan (1):
mac80211: zero initialize count field in ieee80211_tx_rate
Nicolas Cavallari (1):
carl9170: Fix memory accounting when sta is in power-save mode.
Ohad Ben-Cohen (2):
ARM: OMAP: make iommu subsys_initcall to fix builtin omap3isp
ARM: OMAP: fix iommu, not mailbox
Phil Sutter (1):
crypto: mv_cesa - fix final callback not ignoring input data
Prashanth Nageshappa (1):
kprobes: return proper error code from register_kprobe()
Rob Clark (1):
OMAPDSS: HDMI: hot plug detect fix
Roland Stigge (5):
ARM: LPC32xx: serial.c: HW bug workaround
ARM: LPC32xx: serial.c: Fixed loop limit
ARM: LPC32xx: irq.c: Clear latched event
ARM: LPC32xx: Fix interrupt controller init
ARM: LPC32xx: Fix irq on GPI_28
Sascha Hauer (1):
mmc: sdhci-esdhc-imx: fix for mmc cards on i.MX5
Scott Talbert (1):
Move Logitech Harmony 900 from cdc_ether to zaurus
Sebastian Siewior (1):
net/usbnet: avoid recursive locking in usbnet_stop()
Stanislaw Gruszka (1):
bsg: fix sysfs link remove warning
Steffen Maier (1):
S390: qdio: fix handler function arguments for zfcp data router
Stephen Rothwell (1):
tty/powerpc: early udbg consoles can't be modules
Takashi Iwai (3):
ALSA: hda/realtek - Fix resume of multiple input sources
ALSA: hda - Add a fake mute feature
ALSA: hda - Always set HP pin in unsol handler for STAC/IDT codecs
Thomas Gleixner (1):
genirq: Clear action->thread_mask if IRQ_ONESHOT is not set
Tomi Valkeinen (6):
OMAP: 4430SDP/Panda: use gpio_free_array to free HDMI gpios
OMAP: 4430SDP/Panda: rename HPD GPIO to CT_CP_HPD
OMAPDSS: remove wrong HDMI HPD muxing
OMAP: 4430SDP/Panda: setup HDMI GPIO muxes
OMAP: 4430SDP/Panda: add HDMI HPD gpio
OMAPDSS: HDMI: PHY burnout fix
Will Deacon (5):
ARM: 7345/1: errata: update workaround for A9 erratum #743622
ARM: 7354/1: perf: limit sample_period to half max_period in non-sampling mode
ARM: 7355/1: perf: clear overflow flag when disabling counter on ARMv7 PMU
ARM: 7356/1: perf: check that we have an event in the PMU IRQ handlers
ARM: 7357/1: perf: fix overflow handling for xscale2 PMUs
Wolfram Sang (1):
i2c: mxs: only flag completion when queue is completely done
Wu Fengguang (1):
drm/i915: fix ELD writing for SandyBridge
Greg KH
maintainerDocumentation/hwmon/jc42 +20 -6
@@ -7,21 +7,29 @@ Supported chips: Addresses scanned: I2C 0x18 - 0x1f Datasheets: http://www.analog.com/static/imported-files/data_sheets/ADT7408.pdf - * IDT TSE2002B3, TS3000B3 - Prefix: 'tse2002b3', 'ts3000b3' + * Atmel AT30TS00 + Prefix: 'at30ts00' Addresses scanned: I2C 0x18 - 0x1f Datasheets: - http://www.idt.com/products/getdoc.cfm?docid=18715691 - http://www.idt.com/products/getdoc.cfm?docid=18715692 + http://www.atmel.com/Images/doc8585.pdf + * IDT TSE2002B3, TSE2002GB2, TS3000B3, TS3000GB2 + Prefix: 'tse2002', 'ts3000' + Addresses scanned: I2C 0x18 - 0x1f + Datasheets: + http://www.idt.com/sites/default/files/documents/IDT_TSE2002B3C_DST_20100512_120303152056.pdf + http://www.idt.com/sites/default/files/documents/IDT_TSE2002GB2A1_DST_20111107_120303145914.pdf + http://www.idt.com/sites/default/files/documents/IDT_TS3000B3A_DST_20101129_120303152013.pdf + http://www.idt.com/sites/default/files/documents/IDT_TS3000GB2A1_DST_20111104_120303151012.pdf * Maxim MAX6604 Prefix: 'max6604' Addresses scanned: I2C 0x18 - 0x1f Datasheets: http://datasheets.maxim-ic.com/en/ds/MAX6604.pdf - * Microchip MCP9805, MCP98242, MCP98243, MCP9843 - Prefixes: 'mcp9805', 'mcp98242', 'mcp98243', 'mcp9843' + * Microchip MCP9804, MCP9805, MCP98242, MCP98243, MCP9843 + Prefixes: 'mcp9804', 'mcp9805', 'mcp98242', 'mcp98243', 'mcp9843' Addresses scanned: I2C 0x18 - 0x1f Datasheets: + http://ww1.microchip.com/downloads/en/DeviceDoc/22203C.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/21977b.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/21996a.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/22153c.pdf
@@ -48,6 +56,12 @@ Supported chips: Datasheets: http://www.st.com/stonline/products/literature/ds/13447/stts424.pdf http://www.st.com/stonline/products/literature/ds/13448/stts424e02.pdf + * ST Microelectronics STTS2002, STTS3000 + Prefix: 'stts2002', 'stts3000' + Addresses scanned: I2C 0x18 - 0x1f + Datasheets: + http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00225278.pdf + http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATA_BRIEF/CD00270920.pdf * JEDEC JC 42.4 compliant temperature sensor chips Prefix: 'jc42' Addresses scanned: I2C 0x18 - 0x1f
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 9 +SUBLEVEL = 10 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/alpha/include/asm/futex.h +1 -1
@@ -108,7 +108,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr," lda $31,3b-2b(%0)\n" " .previous\n" : "+r"(ret), "=&r"(prev), "=&r"(cmp) - : "r"(uaddr), "r"((long)oldval), "r"(newval) + : "r"(uaddr), "r"((long)(int)oldval), "r"(newval) : "memory"); *uval = prev;
arch/arm/Kconfig +1 -1
@@ -1272,7 +1272,7 @@ config ARM_ERRATA_743622 depends on CPU_V7 help This option enables the workaround for the 743622 Cortex-A9 - (r2p0..r2p2) erratum. Under very rare conditions, a faulty + (r2p*) erratum. Under very rare conditions, a faulty optimisation in the Cortex-A9 Store Buffer may lead to data corruption. This workaround sets a specific bit in the diagnostic register of the Cortex-A9 which disables the Store Buffer
arch/arm/include/asm/pmu.h +1 -1
@@ -125,7 +125,7 @@ int __init armpmu_register(struct arm_pmu *armpmu, char *name, int type);u64 armpmu_event_update (struct perf_event *event,struct hw_perf_event *hwc, -int idx,int overflow); +int idx); int armpmu_event_set_period(struct perf_event *event, struct hw_perf_event *hwc,
arch/arm/kernel/perf_event.c +11 -11
@@ -187,7 +187,7 @@ armpmu_event_set_period(struct perf_event *event,u64 armpmu_event_update (struct perf_event *event,struct hw_perf_event *hwc, -int idx,int overflow) +int idx) {struct arm_pmu *armpmu =to_arm_pmu (event->pmu);u64 delta, prev_raw_count, new_raw_count;
@@ -200,13 +200,7 @@ again: new_raw_count) != prev_raw_count) goto again; - new_raw_count &= armpmu->max_period; - prev_raw_count &= armpmu->max_period; - -if (overflow) - delta = armpmu->max_period - prev_raw_count + new_raw_count +1 ; -else - delta = new_raw_count - prev_raw_count; + delta = (new_raw_count - prev_raw_count) & armpmu->max_period;local64_add (delta, &event->count);local64_sub (delta, &hwc->period_left);
@@ -223,7 +217,7 @@ armpmu_read(struct perf_event *event)if (hwc->idx <0 )return ; -armpmu_event_update (event, hwc, hwc->idx,0 ); +armpmu_event_update (event, hwc, hwc->idx); } static void
@@ -239,7 +233,7 @@ armpmu_stop(struct perf_event *event, int flags)if (!(hwc->state &PERF_HES_STOPPED )) { armpmu->disable (hwc, hwc->idx);barrier ();/* why? */ -armpmu_event_update (event, hwc, hwc->idx,0 ); +armpmu_event_update (event, hwc, hwc->idx); hwc->state |=PERF_HES_STOPPED |PERF_HES_UPTODATE ; } }
@@ -519,7 +513,13 @@ __hw_perf_event_init(struct perf_event *event) hwc->config_base |= (unsigned long )mapping;if (!hwc->sample_period) { - hwc->sample_period = armpmu->max_period; +/* +* For non-sampling runs, limit the sample_period to half +* of the counter width. That way, the new counter value +* is far less likely to overtake the previous one unless +* you have some serious IRQ latency issues. +*/ + hwc->sample_period = armpmu->max_period >>1 ; hwc->last_period = hwc->sample_period;local64_set (&hwc->period_left, hwc->sample_period); }
arch/arm/kernel/perf_event_v6.c +3 -19
@@ -463,23 +463,6 @@ armv6pmu_enable_event(struct hw_perf_event *hwc,raw_spin_unlock_irqrestore (&events->pmu_lock, flags); } -static int counter_is_active (unsigned long pmcr,int idx) -{ -unsigned long mask =0 ; -if (idx ==ARMV6_CYCLE_COUNTER ) - mask =ARMV6_PMCR_CCOUNT_IEN ; -else if (idx ==ARMV6_COUNTER0 ) - mask =ARMV6_PMCR_COUNT0_IEN ; -else if (idx ==ARMV6_COUNTER1 ) - mask =ARMV6_PMCR_COUNT1_IEN ; - -if (mask) -return pmcr & mask; - -WARN_ONCE (1 ,"invalid counter number (%d)\n" , idx); -return 0 ; -} -static irqreturn_t armv6pmu_handle_irq (int irq_num,void *dev)
@@ -509,7 +492,8 @@ armv6pmu_handle_irq(int irq_num,struct perf_event *event = cpuc->events[idx];struct hw_perf_event *hwc; -if (!counter_is_active (pmcr, idx)) +/* Ignore if we don't have an event. */ +if (!event)continue ;/*
@@ -520,7 +504,7 @@ armv6pmu_handle_irq(int irq_num,continue ; hwc = &event->hw; -armpmu_event_update (event, hwc, idx,1 ); +armpmu_event_update (event, hwc, idx); data.period = event->hw.last_period;if (!armpmu_event_set_period (event, hwc, idx))continue ;
arch/arm/kernel/perf_event_v7.c +10 -1
@@ -878,6 +878,11 @@ static inline int armv7_pmnc_disable_intens(int idx) counter =ARMV7_IDX_TO_COUNTER (idx); asmvolatile ("mcr p15, 0, %0, c9, c14, 2" : :"r" (BIT (counter))); +isb (); +/* Clear the overflow flag in case an interrupt is pending. */ + asmvolatile ("mcr p15, 0, %0, c9, c12, 3" : :"r" (BIT (counter))); +isb (); +return idx; }
@@ -1024,6 +1029,10 @@ static irqreturn_t armv7pmu_handle_irq(int irq_num, void *dev)struct perf_event *event = cpuc->events[idx];struct hw_perf_event *hwc; +/* Ignore if we don't have an event. */ +if (!event) +continue ; +/* * We have a single interrupt for all counters. Check that * each counter has overflowed before we process it.
@@ -1032,7 +1041,7 @@ static irqreturn_t armv7pmu_handle_irq(int irq_num, void *dev)continue ; hwc = &event->hw; -armpmu_event_update (event, hwc, idx,1 ); +armpmu_event_update (event, hwc, idx); data.period = event->hw.last_period;if (!armpmu_event_set_period (event, hwc, idx))continue ;
arch/arm/kernel/perf_event_xscale.c +16 -4
@@ -253,11 +253,14 @@ xscale1pmu_handle_irq(int irq_num, void *dev)struct perf_event *event = cpuc->events[idx];struct hw_perf_event *hwc; +if (!event) +continue ; +if (!xscale1_pmnc_counter_has_overflowed (pmnc, idx))continue ; hwc = &event->hw; -armpmu_event_update (event, hwc, idx,1 ); +armpmu_event_update (event, hwc, idx); data.period = event->hw.last_period;if (!armpmu_event_set_period (event, hwc, idx))continue ;
@@ -590,11 +593,14 @@ xscale2pmu_handle_irq(int irq_num, void *dev)struct perf_event *event = cpuc->events[idx];struct hw_perf_event *hwc; -if (!xscale2_pmnc_counter_has_overflowed (pmnc, idx)) +if (!event) +continue ; + +if (!xscale2_pmnc_counter_has_overflowed (of_flags, idx))continue ; hwc = &event->hw; -armpmu_event_update (event, hwc, idx,1 ); +armpmu_event_update (event, hwc, idx); data.period = event->hw.last_period;if (!armpmu_event_set_period (event, hwc, idx))continue ;
@@ -661,7 +667,7 @@ xscale2pmu_enable_event(struct hw_perf_event *hwc, int idx)static void xscale2pmu_disable_event (struct hw_perf_event *hwc,int idx) { -unsigned long flags, ien, evtsel; +unsigned long flags, ien, evtsel, of_flags;struct pmu_hw_events *events = cpu_pmu->get_hw_events (); ien =xscale2pmu_read_int_enable ();
@@ -670,26 +676,31 @@ xscale2pmu_disable_event(struct hw_perf_event *hwc, int idx)switch (idx) {case XSCALE_CYCLE_COUNTER : ien &= ~XSCALE2_CCOUNT_INT_EN ; + of_flags =XSCALE2_CCOUNT_OVERFLOW ;break ;case XSCALE_COUNTER0 : ien &= ~XSCALE2_COUNT0_INT_EN ; evtsel &= ~XSCALE2_COUNT0_EVT_MASK ; evtsel |=XSCALE_PERFCTR_UNUSED <<XSCALE2_COUNT0_EVT_SHFT ; + of_flags =XSCALE2_COUNT0_OVERFLOW ;break ;case XSCALE_COUNTER1 : ien &= ~XSCALE2_COUNT1_INT_EN ; evtsel &= ~XSCALE2_COUNT1_EVT_MASK ; evtsel |=XSCALE_PERFCTR_UNUSED <<XSCALE2_COUNT1_EVT_SHFT ; + of_flags =XSCALE2_COUNT1_OVERFLOW ;break ;case XSCALE_COUNTER2 : ien &= ~XSCALE2_COUNT2_INT_EN ; evtsel &= ~XSCALE2_COUNT2_EVT_MASK ; evtsel |=XSCALE_PERFCTR_UNUSED <<XSCALE2_COUNT2_EVT_SHFT ; + of_flags =XSCALE2_COUNT2_OVERFLOW ;break ;case XSCALE_COUNTER3 : ien &= ~XSCALE2_COUNT3_INT_EN ; evtsel &= ~XSCALE2_COUNT3_EVT_MASK ; evtsel |=XSCALE_PERFCTR_UNUSED <<XSCALE2_COUNT3_EVT_SHFT ; + of_flags =XSCALE2_COUNT3_OVERFLOW ;break ;default :WARN_ONCE (1 ,"invalid counter number (%d)\n" , idx);
@@ -699,6 +710,7 @@ xscale2pmu_disable_event(struct hw_perf_event *hwc, int idx)raw_spin_lock_irqsave (&events->pmu_lock, flags);xscale2pmu_write_event_select (evtsel);xscale2pmu_write_int_enable (ien); +xscale2pmu_write_overflow_flags (of_flags);raw_spin_unlock_irqrestore (&events->pmu_lock, flags); }
arch/arm/mach-dove/common.c +2 -1
@@ -29,6 +29,7 @@#include <asm/mach/arch.h> #include <linux/irq.h> #include <plat/time.h> +#include <plat/ehci-orion.h> #include <plat/common.h> #include "common.h"
@@ -72,7 +73,7 @@ void __init dove_map_io(void)void __init dove_ehci0_init (void ) {orion_ehci_init (&dove_mbus_dram_info, -DOVE_USB0_PHYS_BASE ,IRQ_DOVE_USB0 ); +DOVE_USB0_PHYS_BASE ,IRQ_DOVE_USB0 ,EHCI_PHY_NA ); }/*****************************************************************************
arch/arm/mach-kirkwood/common.c +2 -1
@@ -28,6 +28,7 @@#include <plat/cache-feroceon-l2.h> #include <plat/mvsdio.h> #include <plat/orion_nand.h> +#include <plat/ehci-orion.h> #include <plat/common.h> #include <plat/time.h> #include "common.h"
@@ -74,7 +75,7 @@ void __init kirkwood_ehci_init(void) { kirkwood_clk_ctrl |=CGC_USB0 ;orion_ehci_init (&kirkwood_mbus_dram_info, -USB_PHYS_BASE ,IRQ_KIRKWOOD_USB ); +USB_PHYS_BASE ,IRQ_KIRKWOOD_USB ,EHCI_PHY_NA ); }
arch/arm/mach-kirkwood/mpp.h +160 -160
473 lines not on this page · raw message
arch/arm/mach-lpc32xx/include/mach/irqs.h +1 -1
@@ -61,7 +61,7 @@*/ #define IRQ_LPC32XX_JTAG_COMM_TX LPC32XX_SIC1_IRQ(1)#define IRQ_LPC32XX_JTAG_COMM_RX LPC32XX_SIC1_IRQ(2) -#define IRQ_LPC32XX_GPI_11 LPC32XX_SIC1_IRQ(4) +#define IRQ_LPC32XX_GPI_28 LPC32XX_SIC1_IRQ(4)#define IRQ_LPC32XX_TS_P LPC32XX_SIC1_IRQ(6)#define IRQ_LPC32XX_TS_IRQ LPC32XX_SIC1_IRQ(7)#define IRQ_LPC32XX_TS_AUX LPC32XX_SIC1_IRQ(8)
arch/arm/mach-lpc32xx/irq.c +20 -5
@@ -118,6 +118,10 @@ static const struct lpc32xx_event_info lpc32xx_events[NR_IRQS] = { .event_group = &lpc32xx_event_pin_regs, .mask = LPC32XX_CLKPWR_EXTSRC_GPI_06_BIT, }, + [IRQ_LPC32XX_GPI_28] = { + .event_group = &lpc32xx_event_pin_regs, + .mask = LPC32XX_CLKPWR_EXTSRC_GPI_28_BIT, + }, [IRQ_LPC32XX_GPIO_00] = { .event_group = &lpc32xx_event_int_regs, .mask = LPC32XX_CLKPWR_INTSRC_GPIO_00_BIT,
@@ -305,9 +309,18 @@ static int lpc32xx_irq_wake(struct irq_data *d, unsigned int state)if (state) eventreg |= lpc32xx_events[d->irq].mask; -else +else { eventreg &= ~lpc32xx_events[d->irq].mask; +/* +* When disabling the wakeup, clear the latched +* event +*/ +__raw_writel (lpc32xx_events[d->irq].mask, + lpc32xx_events[d->irq]. + event_group->rawstat_reg); + } +__raw_writel (eventreg, lpc32xx_events[d->irq].event_group->enab_reg);
@@ -380,13 +393,15 @@ void __init lpc32xx_init_irq(void)/* Setup SIC1 */ __raw_writel (0 ,LPC32XX_INTC_MASK (LPC32XX_SIC1_BASE )); -__raw_writel (MIC_APR_DEFAULT ,LPC32XX_INTC_POLAR (LPC32XX_SIC1_BASE )); -__raw_writel (MIC_ATR_DEFAULT ,LPC32XX_INTC_ACT_TYPE (LPC32XX_SIC1_BASE )); +__raw_writel (SIC1_APR_DEFAULT ,LPC32XX_INTC_POLAR (LPC32XX_SIC1_BASE )); +__raw_writel (SIC1_ATR_DEFAULT , +LPC32XX_INTC_ACT_TYPE (LPC32XX_SIC1_BASE ));/* Setup SIC2 */ __raw_writel (0 ,LPC32XX_INTC_MASK (LPC32XX_SIC2_BASE )); -__raw_writel (MIC_APR_DEFAULT ,LPC32XX_INTC_POLAR (LPC32XX_SIC2_BASE )); -__raw_writel (MIC_ATR_DEFAULT ,LPC32XX_INTC_ACT_TYPE (LPC32XX_SIC2_BASE )); +__raw_writel (SIC2_APR_DEFAULT ,LPC32XX_INTC_POLAR (LPC32XX_SIC2_BASE )); +__raw_writel (SIC2_ATR_DEFAULT , +LPC32XX_INTC_ACT_TYPE (LPC32XX_SIC2_BASE ));/* Configure supported IRQ's */ for (i =0 ; i <NR_IRQS ; i++) {
arch/arm/mach-lpc32xx/serial.c +19 -1
@@ -88,6 +88,7 @@ struct uartinit {char *uart_ck_name;u32 ck_mode_mask;void __iomem *pdiv_clk_reg; +resource_size_t mapbase; };static struct uartinit uartinit_data[]__initdata = {
@@ -97,6 +98,7 @@ static struct uartinit uartinit_data[] __initdata = { .ck_mode_mask = LPC32XX_UART_CLKMODE_LOAD(LPC32XX_UART_CLKMODE_ON, 5), .pdiv_clk_reg = LPC32XX_CLKPWR_UART5_CLK_CTRL, + .mapbase = LPC32XX_UART5_BASE, },#endif #ifdef CONFIG_ARCH_LPC32XX_UART3_SELECT
@@ -105,6 +107,7 @@ static struct uartinit uartinit_data[] __initdata = { .ck_mode_mask = LPC32XX_UART_CLKMODE_LOAD(LPC32XX_UART_CLKMODE_ON, 3), .pdiv_clk_reg = LPC32XX_CLKPWR_UART3_CLK_CTRL, + .mapbase = LPC32XX_UART3_BASE, },#endif #ifdef CONFIG_ARCH_LPC32XX_UART4_SELECT
@@ -113,6 +116,7 @@ static struct uartinit uartinit_data[] __initdata = { .ck_mode_mask = LPC32XX_UART_CLKMODE_LOAD(LPC32XX_UART_CLKMODE_ON, 4), .pdiv_clk_reg = LPC32XX_CLKPWR_UART4_CLK_CTRL, + .mapbase = LPC32XX_UART4_BASE, },#endif #ifdef CONFIG_ARCH_LPC32XX_UART6_SELECT
@@ -121,6 +125,7 @@ static struct uartinit uartinit_data[] __initdata = { .ck_mode_mask = LPC32XX_UART_CLKMODE_LOAD(LPC32XX_UART_CLKMODE_ON, 6), .pdiv_clk_reg = LPC32XX_CLKPWR_UART6_CLK_CTRL, + .mapbase = LPC32XX_UART6_BASE, },#endif };
@@ -165,11 +170,24 @@ void __init lpc32xx_serial_init(void)/* pre-UART clock divider set to 1 */ __raw_writel (0x0101 , uartinit_data[i].pdiv_clk_reg); + +/* +* Force a flush of the RX FIFOs to work around a +* HW bug +*/ + puart = uartinit_data[i].mapbase; +__raw_writel (0xC1 ,LPC32XX_UART_IIR_FCR (puart)); +__raw_writel (0x00 ,LPC32XX_UART_DLL_FIFO (puart)); + j =LPC32XX_SUART_FIFO_SIZE ; +while (j--) + tmp =__raw_readl ( +LPC32XX_UART_DLL_FIFO (puart)); +__raw_writel (0 ,LPC32XX_UART_IIR_FCR (puart)); }/* This needs to be done after all UART clocks are setup */ __raw_writel (clkmodes,LPC32XX_UARTCTL_CLKMODE ); -for (i =0 ; i <ARRAY_SIZE (uartinit_data) -1 ; i++) { +for (i =0 ; i <ARRAY_SIZE (uartinit_data); i++) {/* Force a flush of the RX FIFOs to work around a HW bug */ puart = serial_std_platform_data[i].mapbase;__raw_writel (0xC1 ,LPC32XX_UART_IIR_FCR (puart));
arch/arm/mach-mv78xx0/common.c +2 -1
@@ -20,6 +20,7 @@#include <mach/mv78xx0.h> #include <mach/bridge-regs.h> #include <plat/cache-feroceon-l2.h> +#include <plat/ehci-orion.h> #include <plat/orion_nand.h> #include <plat/time.h> #include <plat/common.h>
@@ -170,7 +171,7 @@ void __init mv78xx0_map_io(void)void __init mv78xx0_ehci0_init (void ) {orion_ehci_init (&mv78xx0_mbus_dram_info, -USB0_PHYS_BASE ,IRQ_MV78XX0_USB_0 ); +USB0_PHYS_BASE ,IRQ_MV78XX0_USB_0 ,EHCI_PHY_NA ); }
arch/arm/mach-mv78xx0/mpp.h +113 -113
423 lines not on this page · raw message
arch/arm/mach-omap2/board-4430sdp.c +14 -8
@@ -52,8 +52,9 @@#define ETH_KS8851_QUART 138#define OMAP4_SFH7741_SENSOR_OUTPUT_GPIO 184#define OMAP4_SFH7741_ENABLE_GPIO 188 -#define HDMI_GPIO_HPD 60/* Hot plug pin for HDMI */ +#define HDMI_GPIO_CT_CP_HPD 60/* HPD mode enable/disable */ #define HDMI_GPIO_LS_OE 41/* Level shifter for HDMI */ +#define HDMI_GPIO_HPD 63/* Hotplug detect */ #define DISPLAY_SEL_GPIO 59/* LCD2/PicoDLP switch */ #define DLP_POWER_ON_GPIO 40
@@ -597,12 +598,8 @@ static void __init omap_sfh7741prox_init(void)static void sdp4430_hdmi_mux_init (void ) { -/* PAD0_HDMI_HPD_PAD1_HDMI_CEC */ -omap_mux_init_signal ("hdmi_hpd" , -OMAP_PIN_INPUT_PULLUP );omap_mux_init_signal ("hdmi_cec" ,OMAP_PIN_INPUT_PULLUP ); -/* PAD0_HDMI_DDC_SCL_PAD1_HDMI_DDC_SDA */ omap_mux_init_signal ("hdmi_ddc_scl" ,OMAP_PIN_INPUT_PULLUP ); omap_mux_init_signal("hdmi_ddc_sda",
@@ -610,8 +607,9 @@ static void sdp4430_hdmi_mux_init(void) }static struct gpio sdp4430_hdmi_gpios[] = { - {HDMI_GPIO_HPD ,GPIOF_OUT_INIT_HIGH ,"hdmi_gpio_hpd" }, + {HDMI_GPIO_CT_CP_HPD ,GPIOF_OUT_INIT_HIGH ,"hdmi_gpio_ct_cp_hpd" }, {HDMI_GPIO_LS_OE ,GPIOF_OUT_INIT_HIGH ,"hdmi_gpio_ls_oe" }, + {HDMI_GPIO_HPD ,GPIOF_DIR_IN ,"hdmi_gpio_hpd" }, };static int sdp4430_panel_enable_hdmi (struct omap_dss_device *dssdev)
@@ -628,8 +626,7 @@ static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev)static void sdp4430_panel_disable_hdmi (struct omap_dss_device *dssdev) { -gpio_free (HDMI_GPIO_LS_OE ); -gpio_free (HDMI_GPIO_HPD ); +gpio_free_array (sdp4430_hdmi_gpios,ARRAY_SIZE (sdp4430_hdmi_gpios)); }static struct nokia_dsi_panel_data dsi1_panel = {
@@ -745,6 +742,10 @@ static void sdp4430_lcd_init(void)pr_err ("%s: Could not get lcd2_reset_gpio\n" , __func__); } +static struct omap_dss_hdmi_data sdp4430_hdmi_data = { + .hpd_gpio =HDMI_GPIO_HPD , +}; +static struct omap_dss_device sdp4430_hdmi_device = { .name ="hdmi" , .driver_name ="hdmi_panel" ,
@@ -752,6 +753,7 @@ static struct omap_dss_device sdp4430_hdmi_device = { .platform_enable = sdp4430_panel_enable_hdmi, .platform_disable = sdp4430_panel_disable_hdmi, .channel = OMAP_DSS_CHANNEL_DIGIT, + .data = &sdp4430_hdmi_data, };static struct picodlp_panel_data sdp4430_picodlp_pdata = {
@@ -829,6 +831,10 @@ static void omap_4430sdp_display_init(void)sdp4430_hdmi_mux_init ();sdp4430_picodlp_init ();omap_display_init (&sdp4430_dss_data); + +omap_mux_init_gpio (HDMI_GPIO_LS_OE ,OMAP_PIN_OUTPUT ); +omap_mux_init_gpio (HDMI_GPIO_CT_CP_HPD ,OMAP_PIN_OUTPUT ); +omap_mux_init_gpio (HDMI_GPIO_HPD ,OMAP_PIN_INPUT_PULLDOWN ); }#ifdef CONFIG_OMAP_MUX
arch/arm/mach-omap2/board-omap4panda.c +14 -8
@@ -51,8 +51,9 @@#define GPIO_HUB_NRESET 62#define GPIO_WIFI_PMENA 43#define GPIO_WIFI_IRQ 53 -#define HDMI_GPIO_HPD 60/* Hot plug pin for HDMI */ +#define HDMI_GPIO_CT_CP_HPD 60/* HPD mode enable/disable */ #define HDMI_GPIO_LS_OE 41/* Level shifter for HDMI */ +#define HDMI_GPIO_HPD 63/* Hotplug detect */ /* wl127x BT, FM, GPS connectivity chip */ static int wl1271_gpios[] = {46 ,-1 ,-1 };
@@ -481,12 +482,8 @@ int __init omap4_panda_dvi_init(void)static void omap4_panda_hdmi_mux_init (void ) { -/* PAD0_HDMI_HPD_PAD1_HDMI_CEC */ -omap_mux_init_signal ("hdmi_hpd" , -OMAP_PIN_INPUT_PULLUP );omap_mux_init_signal ("hdmi_cec" ,OMAP_PIN_INPUT_PULLUP ); -/* PAD0_HDMI_DDC_SCL_PAD1_HDMI_DDC_SDA */ omap_mux_init_signal ("hdmi_ddc_scl" ,OMAP_PIN_INPUT_PULLUP ); omap_mux_init_signal("hdmi_ddc_sda",
@@ -494,8 +491,9 @@ static void omap4_panda_hdmi_mux_init(void) }static struct gpio panda_hdmi_gpios[] = { - {HDMI_GPIO_HPD ,GPIOF_OUT_INIT_HIGH ,"hdmi_gpio_hpd" }, + {HDMI_GPIO_CT_CP_HPD ,GPIOF_OUT_INIT_HIGH ,"hdmi_gpio_ct_cp_hpd" }, {HDMI_GPIO_LS_OE ,GPIOF_OUT_INIT_HIGH ,"hdmi_gpio_ls_oe" }, + {HDMI_GPIO_HPD ,GPIOF_DIR_IN ,"hdmi_gpio_hpd" }, };static int omap4_panda_panel_enable_hdmi (struct omap_dss_device *dssdev)
@@ -512,10 +510,13 @@ static int omap4_panda_panel_enable_hdmi(struct omap_dss_device *dssdev)static void omap4_panda_panel_disable_hdmi (struct omap_dss_device *dssdev) { -gpio_free (HDMI_GPIO_LS_OE ); -gpio_free (HDMI_GPIO_HPD ); +gpio_free_array (panda_hdmi_gpios,ARRAY_SIZE (panda_hdmi_gpios)); } +static struct omap_dss_hdmi_data omap4_panda_hdmi_data = { + .hpd_gpio =HDMI_GPIO_HPD , +}; +static struct omap_dss_device omap4_panda_hdmi_device = { .name ="hdmi" , .driver_name ="hdmi_panel" ,
@@ -523,6 +524,7 @@ static struct omap_dss_device omap4_panda_hdmi_device = { .platform_enable = omap4_panda_panel_enable_hdmi, .platform_disable = omap4_panda_panel_disable_hdmi, .channel = OMAP_DSS_CHANNEL_DIGIT, + .data = &omap4_panda_hdmi_data, };static struct omap_dss_device *omap4_panda_dss_devices[] = {
@@ -546,6 +548,10 @@ void omap4_panda_display_init(void)omap4_panda_hdmi_mux_init ();omap_display_init (&omap4_panda_dss_data); + +omap_mux_init_gpio (HDMI_GPIO_LS_OE ,OMAP_PIN_OUTPUT ); +omap_mux_init_gpio (HDMI_GPIO_CT_CP_HPD ,OMAP_PIN_OUTPUT ); +omap_mux_init_gpio (HDMI_GPIO_HPD ,OMAP_PIN_INPUT_PULLDOWN ); }static void __init omap4_panda_init (void )
arch/arm/mach-omap2/omap-iommu.c +2 -1
@@ -150,7 +150,8 @@ err_out:platform_device_put (omap_iommu_pdev[i]);return err; } -module_init (omap_iommu_init); +/* must be ready before omap3isp is probed */ +subsys_initcall (omap_iommu_init); static void __exit omap_iommu_exit(void) {
arch/arm/mach-orion5x/common.c +3 -1
@@ -29,6 +29,7 @@#include <mach/hardware.h> #include <mach/orion5x.h> #include <plat/orion_nand.h> +#include <plat/ehci-orion.h> #include <plat/time.h> #include <plat/common.h> #include "common.h"
@@ -72,7 +73,8 @@ void __init orion5x_map_io(void)void __init orion5x_ehci0_init (void ) {orion_ehci_init (&orion5x_mbus_dram_info, -ORION5X_USB0_PHYS_BASE ,IRQ_ORION5X_USB0_CTRL ); +ORION5X_USB0_PHYS_BASE ,IRQ_ORION5X_USB0_CTRL , +EHCI_PHY_ORION ); }
arch/arm/mm/proc-v7.S +1 -3
@@ -352,9 +352,7 @@ __v7_setup: mcreq p15, 0, r10, c15, c0, 1 @ write diagnostic register #endif #ifdef CONFIG_ARM_ERRATA_743622 - teq r6, #0x20 @ present in r2p0 - teqne r6, #0x21 @ present in r2p1 - teqne r6, #0x22 @ present in r2p2 + teq r5, #0x00200000 @ only present in r2p* mrceq p15, 0, r10, c15, c0, 1 @ read diagnostic register orreq r10, r10, #1 << 6 @ set bit #6 mcreq p15, 0, r10, c15, c0, 1 @ write diagnostic register
arch/arm/plat-orion/common.c +4 -5
@@ -806,10 +806,7 @@ void __init orion_xor1_init(unsigned long mapbase_low,/***************************************************************************** * EHCI ****************************************************************************/ -static struct orion_ehci_data orion_ehci_data = { - .phy_version =EHCI_PHY_NA , -}; - +static struct orion_ehci_data orion_ehci_data;static u64 ehci_dmamask =DMA_BIT_MASK (32 );
@@ -830,9 +827,11 @@ static struct platform_device orion_ehci = {void __init orion_ehci_init (struct mbus_dram_target_info *mbus_dram_info,unsigned long mapbase, -unsigned long irq) +unsigned long irq, +enum orion_ehci_phy_ver phy_version) { orion_ehci_data.dram = mbus_dram_info; + orion_ehci_data.phy_version = phy_version;fill_resources (&orion_ehci, orion_ehci_resources, mapbase,SZ_4K -1 , irq);
arch/arm/plat-orion/include/plat/common.h +2 -1
@@ -95,7 +95,8 @@ void __init orion_xor1_init(unsigned long mapbase_low,void __init orion_ehci_init (struct mbus_dram_target_info *mbus_dram_info,unsigned long mapbase, -unsigned long irq); +unsigned long irq, +enum orion_ehci_phy_ver phy_version); void __init orion_ehci_1_init(struct mbus_dram_target_info *mbus_dram_info, unsigned long mapbase,
arch/arm/plat-orion/mpp.c +1 -2
@@ -64,8 +64,7 @@ void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, gpio_mode |=GPIO_INPUT_OK ;if (*mpp_list &MPP_OUTPUT_MASK ) gpio_mode |=GPIO_OUTPUT_OK ; -if (sel !=0 ) - gpio_mode =0 ; +orion_gpio_set_valid (num, gpio_mode); }
arch/arm/plat-s3c24xx/dma.c +1 -1
@@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void)struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels -1 ;int channel; -for (channel = dma_channels -1 ; channel >=0 ; cp++, channel--) +for (channel = dma_channels -1 ; channel >=0 ; cp--, channel--)s3c2410_dma_resume_chan (cp); }
arch/avr32/Kconfig +1 -0
@@ -8,6 +8,7 @@ config AVR32 select HAVE_KPROBES select HAVE_GENERIC_HARDIRQS select GENERIC_IRQ_PROBE + select GENERIC_ATOMIC64 select HARDIRQS_SW_RESEND select GENERIC_IRQ_SHOW select ARCH_HAVE_NMI_SAFE_CMPXCHG
arch/s390/Kconfig +3 -0
@@ -230,6 +230,9 @@ config COMPAT config SYSVIPC_COMPAT def_bool y if COMPAT && SYSVIPC +config KEYS_COMPAT + def_bool y if COMPAT && KEYS + config AUDIT_ARCH def_bool y
arch/s390/include/asm/compat.h +0 -7
@@ -172,13 +172,6 @@ static inline int is_compat_task(void) return is_32bit_task(); } -#else - -static inline int is_compat_task (void ) -{ -return 0 ; -} -#endif static inline void __user *arch_compat_alloc_user_space (long len)
arch/s390/kernel/process.c +0 -1
@@ -29,7 +29,6 @@#include <asm/irq.h> #include <asm/timer.h> #include <asm/nmi.h> -#include <asm/compat.h> #include <asm/smp.h> #include "entry.h"
arch/s390/kernel/ptrace.c +1 -1
@@ -20,8 +20,8 @@#include <linux/regset.h> #include <linux/tracehook.h> #include <linux/seccomp.h> +#include <linux/compat.h> #include <trace/syscall.h> -#include <asm/compat.h> #include <asm/segment.h> #include <asm/page.h> #include <asm/pgtable.h>
arch/s390/kernel/setup.c +1 -1
@@ -45,6 +45,7 @@#include <linux/kexec.h> #include <linux/crash_dump.h> #include <linux/memory.h> +#include <linux/compat.h> #include <asm/ipl.h> #include <asm/uaccess.h>
@@ -58,7 +59,6 @@#include <asm/ptrace.h> #include <asm/sections.h> #include <asm/ebcdic.h> -#include <asm/compat.h> #include <asm/kvm_virtio.h> #include <asm/diag.h>
arch/s390/kernel/signal.c +0 -1
@@ -30,7 +30,6 @@#include <asm/ucontext.h> #include <asm/uaccess.h> #include <asm/lowcore.h> -#include <asm/compat.h> #include "entry.h" #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
arch/s390/mm/fault.c +0 -1
@@ -36,7 +36,6 @@#include <asm/pgtable.h> #include <asm/irq.h> #include <asm/mmu_context.h> -#include <asm/compat.h> #include "../kernel/entry.h" #ifndef CONFIG_64BIT
arch/s390/mm/mmap.c +1 -1
@@ -29,8 +29,8 @@#include <linux/mman.h> #include <linux/module.h> #include <linux/random.h> +#include <linux/compat.h> #include <asm/pgalloc.h> -#include <asm/compat.h> static unsigned long stack_maxrandom_size (void ) {
arch/x86/include/asm/perf_event.h +8 -0
@@ -212,4 +212,12 @@ static inline perf_guest_switch_msr *perf_guest_get_msrs(int *nr)static inline void perf_events_lapic_init (void ) { }#endif +#if defined(CONFIG_PERF_EVENTS ) && defined(CONFIG_CPU_SUP_AMD ) +extern void amd_pmu_enable_virt (void ); +extern void amd_pmu_disable_virt (void ); +#else +static inline void amd_pmu_enable_virt (void ) { } +static inline void amd_pmu_disable_virt (void ) { } +#endif +#endif /* _ASM_X86_PERF_EVENT_H */
arch/x86/kernel/cpu/perf_event.h +6 -2
@@ -146,7 +146,9 @@ struct cpu_hw_events {/* * AMD specific bits */ -struct amd_nb *amd_nb; +struct amd_nb *amd_nb; +/* Inverted mask of bits to clear in the perf_ctr ctrl registers */ +u64 perf_ctr_virt_mask;void *kfree_on_online; };
@@ -372,9 +374,11 @@ void x86_pmu_disable_all(void);static inline void __x86_pmu_enable_event (struct hw_perf_event *hwc,u64 enable_mask) { +u64 disable_mask =__this_cpu_read (cpu_hw_events.perf_ctr_virt_mask); +if (hwc->extra_reg.reg)wrmsrl (hwc->extra_reg.reg, hwc->extra_reg.config); -wrmsrl (hwc->config_base, hwc->config | enable_mask); +wrmsrl (hwc->config_base, (hwc->config | enable_mask) & ~disable_mask); }void x86_pmu_enable_all (int added);
arch/x86/kernel/cpu/perf_event_amd.c +35 -2
@@ -1,4 +1,5 @@#include <linux/perf_event.h> +#include <linux/export.h> #include <linux/types.h> #include <linux/init.h> #include <linux/slab.h>
@@ -357,7 +358,9 @@ static void amd_pmu_cpu_starting(int cpu)struct amd_nb *nb;int i, nb_id; -if (boot_cpu_data.x86_max_cores <2 ) + cpuc->perf_ctr_virt_mask =AMD_PERFMON_EVENTSEL_HOSTONLY ; + +if (boot_cpu_data.x86_max_cores <2 || boot_cpu_data.x86 ==0x15 )return ; nb_id =amd_get_nb_id (cpu);
@@ -587,9 +590,9 @@ static __initconst const struct x86_pmu amd_pmu_f15h = { .put_event_constraints = amd_put_event_constraints, .cpu_prepare = amd_pmu_cpu_prepare, - .cpu_starting = amd_pmu_cpu_starting, .cpu_dead = amd_pmu_cpu_dead, #endif + .cpu_starting = amd_pmu_cpu_starting, };__init int amd_pmu_init (void )
@@ -621,3 +624,33 @@ __init int amd_pmu_init(void)return 0 ; } + +void amd_pmu_enable_virt (void ) +{ +struct cpu_hw_events *cpuc = &__get_cpu_var (cpu_hw_events); + + cpuc->perf_ctr_virt_mask =0 ; + +/* Reload all events */ +x86_pmu_disable_all (); +x86_pmu_enable_all (0 ); +} +EXPORT_SYMBOL_GPL (amd_pmu_enable_virt); + +void amd_pmu_disable_virt (void ) +{ +struct cpu_hw_events *cpuc = &__get_cpu_var (cpu_hw_events); + +/* +* We only mask out the Host-only bit so that host-only counting works +* when SVM is disabled. If someone sets up a guest-only counter when +* SVM is disabled the Guest-only bits still gets set and the counter +* will not count anything. +*/ + cpuc->perf_ctr_virt_mask =AMD_PERFMON_EVENTSEL_HOSTONLY ; + +/* Reload all events */ +x86_pmu_disable_all (); +x86_pmu_enable_all (0 ); +} +EXPORT_SYMBOL_GPL (amd_pmu_disable_virt);
arch/x86/kvm/svm.c +5 -0
@@ -29,6 +29,7 @@#include <linux/ftrace_event.h> #include <linux/slab.h> +#include <asm/perf_event.h> #include <asm/tlbflush.h> #include <asm/desc.h> #include <asm/kvm_para.h>
@@ -575,6 +576,8 @@ static void svm_hardware_disable(void *garbage)wrmsrl (MSR_AMD64_TSC_RATIO ,TSC_RATIO_DEFAULT );cpu_svm_disable (); + +amd_pmu_disable_virt (); }static int svm_hardware_enable (void *garbage)
@@ -622,6 +625,8 @@ static int svm_hardware_enable(void *garbage)svm_init_erratum_383 (); +amd_pmu_enable_virt (); +return 0 ; }
block/bsg.c +2 -1
@@ -985,7 +985,8 @@ void bsg_unregister_queue(struct request_queue *q)mutex_lock (&bsg_mutex);idr_remove (&bsg_minor_idr, bcd->minor); -sysfs_remove_link (&q->kobj,"bsg" ); +if (q->kobj.sd) +sysfs_remove_link (&q->kobj,"bsg" );device_unregister (bcd->class_dev); bcd->class_dev =NULL ;kref_put (&bcd->ref, bsg_kref_release_function);
drivers/acpi/sleep.c +16 -0
@@ -476,6 +476,22 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW520F"), }, }, + { + .callback = init_nvs_nosave, + .ident = "Asus K54C", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK Computer Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "K54C"), + }, + }, + { + .callback = init_nvs_nosave, + .ident = "Asus K54HR", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK Computer Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"), + }, + }, {}, };#endif /* CONFIG_SUSPEND */
drivers/crypto/mv_cesa.c +1 -0
@@ -714,6 +714,7 @@ static int mv_hash_final(struct ahash_request *req) {struct mv_req_hash_ctx *ctx =ahash_request_ctx (req); +ahash_request_set_crypt (req,NULL , req->result,0 );mv_update_hash_req_ctx (ctx,1 ,0 );return mv_handle_req (&req->base); }
drivers/gpu/drm/i915/i915_reg.h +15 -0
@@ -2886,6 +2886,20 @@#define DISP_TILE_SURFACE_SWIZZLING (1<<13)#define DISP_FBC_WM_DIS (1<<15) +/* GEN7 chicken */ +#define GEN7_COMMON_SLICE_CHICKEN1 0x7010 +# define GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC ((1<<10) | (1<<26)) + +#define GEN7_L3CNTLREG1 0xB01C +#define GEN7_WA_FOR_GEN7_L3_CONTROL 0x3C4FFF8C + +#define GEN7_L3_CHICKEN_MODE_REGISTER 0xB030 +#define GEN7_WA_L3_CHICKEN_MODE 0x20000000 + +/* WaCatErrorRejectionIssue */ +#define GEN7_SQ_CHICKEN_MBCUNIT_CONFIG 0x9030 +#define GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB (1<<11) +/* PCH */ /* south display engine interrupt */
@@ -3476,6 +3490,7 @@#define GT_FIFO_NUM_RESERVED_ENTRIES 20#define GEN6_UCGCTL2 0x9404 +# define GEN6_RCZUNIT_CLOCK_GATE_DISABLE (1 << 13)# define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE (1 << 12)# define GEN6_RCCUNIT_CLOCK_GATE_DISABLE (1 << 11)
drivers/gpu/drm/i915/intel_display.c +26 -6
@@ -5876,14 +5876,14 @@ static void ironlake_write_eld(struct drm_connector *connector,int aud_cntl_st;int aud_cntrl_st2; -if (IS_IVYBRIDGE (connector->dev)) { - hdmiw_hdmiedid =GEN7_HDMIW_HDMIEDID_A ; - aud_cntl_st =GEN7_AUD_CNTRL_ST_A ; - aud_cntrl_st2 =GEN7_AUD_CNTRL_ST2 ; - }else { +if (HAS_PCH_IBX (connector->dev)) { hdmiw_hdmiedid =GEN5_HDMIW_HDMIEDID_A ; aud_cntl_st =GEN5_AUD_CNTL_ST_A ; aud_cntrl_st2 =GEN5_AUD_CNTL_ST2 ; + }else { + hdmiw_hdmiedid =GEN7_HDMIW_HDMIEDID_A ; + aud_cntl_st =GEN7_AUD_CNTRL_ST_A ; + aud_cntrl_st2 =GEN7_AUD_CNTRL_ST2 ; } i =to_intel_crtc (crtc)->pipe;
@@ -5965,7 +5965,7 @@ void intel_crtc_load_lut(struct drm_crtc *crtc)int i;/* The clocks have to be on to load the palette. */ -if (!crtc->enabled) +if (!crtc->enabled || !intel_crtc->active)return ;/* use legacy palette for Ironlake */
@@ -8248,8 +8248,28 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)I915_WRITE (WM2_LP_ILK ,0 );I915_WRITE (WM1_LP_ILK ,0 ); +/* According to the spec, bit 13 (RCZUNIT) must be set on IVB. +* This implements the WaDisableRCZUnitClockGating workaround. +*/ +I915_WRITE (GEN6_UCGCTL2 ,GEN6_RCZUNIT_CLOCK_GATE_DISABLE ); +I915_WRITE (ILK_DSPCLK_GATE ,IVB_VRHUNIT_CLK_GATE ); +/* Apply the WaDisableRHWOOptimizationForRenderHang workaround. */ +I915_WRITE (GEN7_COMMON_SLICE_CHICKEN1 , +GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC ); + +/* WaApplyL3ControlAndL3ChickenMode requires those two on Ivy Bridge */ +I915_WRITE (GEN7_L3CNTLREG1 , +GEN7_WA_FOR_GEN7_L3_CONTROL ); +I915_WRITE (GEN7_L3_CHICKEN_MODE_REGISTER , +GEN7_WA_L3_CHICKEN_MODE ); + +/* This is required by WaCatErrorRejectionIssue */ +I915_WRITE (GEN7_SQ_CHICKEN_MBCUNIT_CONFIG , +I915_READ (GEN7_SQ_CHICKEN_MBCUNIT_CONFIG ) | +GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB ); +for_each_pipe (pipe) { I915_WRITE(DSPCNTR(pipe), I915_READ(DSPCNTR(pipe)) |
drivers/gpu/drm/radeon/r600_blit_shaders.c +8 -0
@@ -314,6 +314,10 @@ const u32 r6xx_default_state[] =0x00000000 ,/* VGT_VTX_CNT_EN */ 0xc0016900 , +0x000000d4 , +0x00000000 ,/* SX_MISC */ + +0xc0016900 ,0x000002c8 , 0x00000000, /* VGT_STRMOUT_BUFFER_EN */
@@ -626,6 +630,10 @@ const u32 r7xx_default_state[] =0x00000000 ,/* VGT_VTX_CNT_EN */ 0xc0016900 , +0x000000d4 , +0x00000000 ,/* SX_MISC */ + +0xc0016900 ,0x000002c8 , 0x00000000, /* VGT_STRMOUT_BUFFER_EN */
drivers/hid/hid-ids.h +3 -0
@@ -59,6 +59,9 @@#define USB_VENDOR_ID_AIRCABLE 0x16CA#define USB_DEVICE_ID_AIRCABLE1 0x1502 +#define USB_VENDOR_ID_AIREN 0x1a2c +#define USB_DEVICE_ID_AIREN_SLIMPLUS 0x0002 +#define USB_VENDOR_ID_ALCOR 0x058f#define USB_DEVICE_ID_ALCOR_USBRS232 0x9720
drivers/hid/usbhid/hid-quirks.c +1 -0
@@ -53,6 +53,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_PLAYDOTCOM, USB_DEVICE_ID_PLAYDOTCOM_EMS_USBII, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_TOUCHPACK, USB_DEVICE_ID_TOUCHPACK_RTS, HID_QUIRK_MULTI_INPUT }, + { USB_VENDOR_ID_AIREN, USB_DEVICE_ID_AIREN_SLIMPLUS, HID_QUIRK_NOGET }, { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_UC100KM, HID_QUIRK_NOGET }, { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_CS124U, HID_QUIRK_NOGET }, { USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_2PORTKVM, HID_QUIRK_NOGET },
drivers/hwmon/Kconfig +3 -2
@@ -497,8 +497,9 @@ config SENSORS_JC42 If you say yes here, you get support for JEDEC JC42.4 compliant temperature sensors, which are used on many DDR3 memory modules for mobile devices and servers. Support will include, but not be limited - to, ADT7408, CAT34TS02, CAT6095, MAX6604, MCP9805, MCP98242, MCP98243, - MCP9843, SE97, SE98, STTS424(E), TSE2002B3, and TS3000B3. + to, ADT7408, AT30TS00, CAT34TS02, CAT6095, MAX6604, MCP9804, MCP9805, + MCP98242, MCP98243, MCP9843, SE97, SE98, STTS424(E), STTS2002, + STTS3000, TSE2002B3, TSE2002GB2, TS3000B3, and TS3000GB2. This driver can also be built as a module. If so, the module will be called jc42.
drivers/hwmon/jc42.c +28 -2
@@ -64,6 +64,7 @@ static const unsigned short normal_i2c[] = {/* Manufacturer IDs */ #define ADT_MANID 0x11d4/* Analog Devices */ +#define ATMEL_MANID 0x001f/* Atmel */ #define MAX_MANID 0x004d/* Maxim */ #define IDT_MANID 0x00b3/* IDT */ #define MCP_MANID 0x0054/* Microchip */
@@ -77,15 +78,25 @@ static const unsigned short normal_i2c[] = {#define ADT7408_DEVID 0x0801#define ADT7408_DEVID_MASK 0xffff +/* Atmel */ +#define AT30TS00_DEVID 0x8201 +#define AT30TS00_DEVID_MASK 0xffff +/* IDT */ #define TS3000B3_DEVID 0x2903/* Also matches TSE2002B3 */ #define TS3000B3_DEVID_MASK 0xffff +#define TS3000GB2_DEVID 0x2912/* Also matches TSE2002GB2 */ +#define TS3000GB2_DEVID_MASK 0xffff +/* Maxim */ #define MAX6604_DEVID 0x3e00#define MAX6604_DEVID_MASK 0xffff/* Microchip */ +#define MCP9804_DEVID 0x0200 +#define MCP9804_DEVID_MASK 0xfffc +#define MCP98242_DEVID 0x2000#define MCP98242_DEVID_MASK 0xfffc
@@ -113,6 +124,12 @@ static const unsigned short normal_i2c[] = {#define STTS424E_DEVID 0x0000#define STTS424E_DEVID_MASK 0xfffe +#define STTS2002_DEVID 0x0300 +#define STTS2002_DEVID_MASK 0xffff + +#define STTS3000_DEVID 0x0200 +#define STTS3000_DEVID_MASK 0xffff +static u16 jc42_hysteresis[] = {0 ,1500 ,3000 ,6000 };struct jc42_chips {
@@ -123,8 +140,11 @@ struct jc42_chips {static struct jc42_chips jc42_chips[] = { {ADT_MANID ,ADT7408_DEVID ,ADT7408_DEVID_MASK }, + {ATMEL_MANID ,AT30TS00_DEVID ,AT30TS00_DEVID_MASK }, {IDT_MANID ,TS3000B3_DEVID ,TS3000B3_DEVID_MASK }, + {IDT_MANID ,TS3000GB2_DEVID ,TS3000GB2_DEVID_MASK }, {MAX_MANID ,MAX6604_DEVID ,MAX6604_DEVID_MASK }, + {MCP_MANID ,MCP9804_DEVID ,MCP9804_DEVID_MASK }, {MCP_MANID ,MCP98242_DEVID ,MCP98242_DEVID_MASK }, {MCP_MANID ,MCP98243_DEVID ,MCP98243_DEVID_MASK }, {MCP_MANID ,MCP9843_DEVID ,MCP9843_DEVID_MASK },
@@ -133,6 +153,8 @@ static struct jc42_chips jc42_chips[] = { { NXP_MANID, SE98_DEVID, SE98_DEVID_MASK }, { STM_MANID, STTS424_DEVID, STTS424_DEVID_MASK }, { STM_MANID, STTS424E_DEVID, STTS424E_DEVID_MASK }, + { STM_MANID, STTS2002_DEVID, STTS2002_DEVID_MASK }, + { STM_MANID, STTS3000_DEVID, STTS3000_DEVID_MASK }, };/* Each client has this additional data */
@@ -159,10 +181,12 @@ static struct jc42_data *jc42_update_device(struct device *dev);static const struct i2c_device_id jc42_id[] = { {"adt7408" ,0 }, + {"at30ts00" ,0 }, {"cat94ts02" ,0 }, {"cat6095" ,0 }, {"jc42" ,0 }, {"max6604" ,0 }, + {"mcp9804" ,0 }, {"mcp9805" ,0 }, {"mcp98242" ,0 }, {"mcp98243" ,0 },
@@ -171,8 +195,10 @@ static const struct i2c_device_id jc42_id[] = { { "se97b", 0 }, { "se98", 0 }, { "stts424", 0 }, - { "tse2002b3", 0 }, - { "ts3000b3", 0 }, + { "stts2002", 0 }, + { "stts3000", 0 }, + { "tse2002", 0 }, + { "ts3000", 0 }, { } };MODULE_DEVICE_TABLE (i2c, jc42_id);
drivers/hwmon/pmbus/pmbus_core.c +2 -1
@@ -54,7 +54,8 @@lcrit_alarm, crit_alarm */ #define PMBUS_IOUT_BOOLEANS_PER_PAGE 3/* alarm, lcrit_alarm, crit_alarm */ -#define PMBUS_POUT_BOOLEANS_PER_PAGE 2/* alarm, crit_alarm */ +#define PMBUS_POUT_BOOLEANS_PER_PAGE 3/* cap_alarm, alarm, crit_alarm +*/ #define PMBUS_MAX_BOOLEANS_PER_FAN 2/* alarm, fault */ #define PMBUS_MAX_BOOLEANS_PER_TEMP 4/* min_alarm, max_alarm, lcrit_alarm, crit_alarm */
drivers/hwmon/pmbus/zl6100.c +6 -4
@@ -33,6 +33,7 @@ enum chips { zl2004, zl2006, zl2008, zl2105, zl2106, zl6100, zl6105 };struct zl6100_data {int id;ktime_t access;/* chip access time */ +int delay;/* Delay between chip accesses in uS */ struct pmbus_driver_info info; };
@@ -49,10 +50,10 @@ MODULE_PARM_DESC(delay, "Delay between chip accesses in uS");/* Some chips need a delay between accesses */ static inline void zl6100_wait (const struct zl6100_data *data) { -if (delay) { +if (data->delay) {s64 delta =ktime_us_delta (ktime_get (), data->access); -if (delta < delay) -udelay (delay - delta); +if (delta < data->delay) +udelay (data->delay - delta); } }
@@ -184,8 +185,9 @@ static int zl6100_probe(struct i2c_client *client,* can be cleared later for additional chips if tests show that it * is not needed (in other words, better be safe than sorry). */ + data->delay = delay;if (data->id == zl2004 || data->id == zl6105) - delay =0 ; + data->delay =0 ;/* * Since there was a direct I2C device access above, wait before
drivers/i2c/busses/i2c-mxs.c +10 -3
@@ -72,6 +72,7 @@#define MXS_I2C_QUEUESTAT (0x70)#define MXS_I2C_QUEUESTAT_RD_QUEUE_EMPTY 0x00002000 +#define MXS_I2C_QUEUESTAT_WRITE_QUEUE_CNT_MASK 0x0000001F#define MXS_I2C_QUEUECMD (0x80)
@@ -219,14 +220,14 @@ static int mxs_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg,int ret;int flags; -init_completion (&i2c->cmd_complete); -dev_dbg (i2c->dev,"addr: 0x%04x, len: %d, flags: 0x%x, stop: %d\n" , msg->addr, msg->len, msg->flags, stop);if (msg->len ==0 )return -EINVAL ; +init_completion (&i2c->cmd_complete); + flags = stop ?MXS_I2C_CTRL0_POST_SEND_STOP :0 ;if (msg->flags &I2C_M_RD )
@@ -286,6 +287,7 @@ static irqreturn_t mxs_i2c_isr(int this_irq, void *dev_id) {struct mxs_i2c_dev *i2c = dev_id;u32 stat =readl (i2c->regs +MXS_I2C_CTRL1 ) &MXS_I2C_IRQ_MASK ; +bool is_last_cmd;if (!stat)return IRQ_NONE ;
@@ -300,9 +302,14 @@ static irqreturn_t mxs_i2c_isr(int this_irq, void *dev_id)else i2c->cmd_err =0 ; -complete (&i2c->cmd_complete); + is_last_cmd = (readl (i2c->regs +MXS_I2C_QUEUESTAT ) & +MXS_I2C_QUEUESTAT_WRITE_QUEUE_CNT_MASK ) ==0 ; + +if (is_last_cmd || i2c->cmd_err) +complete (&i2c->cmd_complete);writel (stat, i2c->regs +MXS_I2C_CTRL1_CLR ); +return IRQ_HANDLED ; }
drivers/input/mouse/alps.c +5 -2
@@ -421,7 +421,9 @@ static const struct alps_model_info *alps_get_model(struct psmouse *psmouse, int/* * First try "E6 report". -* ALPS should return 0,0,10 or 0,0,100 +* ALPS should return 0,0,10 or 0,0,100 if no buttons are pressed. +* The bits 0-2 of the first byte will be 1s if some buttons are +* pressed. */ param[0 ] =0 ; if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES) ||
@@ -437,7 +439,8 @@ static const struct alps_model_info *alps_get_model(struct psmouse *psmouse, intpsmouse_dbg (psmouse,"E6 report: %2.2x %2.2x %2.2x" , param[0 ], param[1 ], param[2 ]); -if (param[0 ] !=0 || param[1 ] !=0 || (param[2 ] !=10 && param[2 ] !=100 )) +if ((param[0 ] &0xf8 ) !=0 || param[1 ] !=0 || + (param[2 ] !=10 && param[2 ] !=100 ))return NULL ;/*
drivers/iommu/amd_iommu_init.c +1 -1
@@ -268,7 +268,7 @@ static void iommu_set_exclusion_range(struct amd_iommu *iommu) }/* Programs the physical address of the device table into the IOMMU hardware */ -static void __init iommu_set_device_table (struct amd_iommu *iommu) +static void iommu_set_device_table (struct amd_iommu *iommu) {u64 entry;
drivers/iommu/omap-iommu.c +2 -1
@@ -1229,7 +1229,8 @@ static int __init omap_iommu_init(void)return platform_driver_register (&omap_iommu_driver); } -module_init (omap_iommu_init); +/* must be ready before omap3isp is probed */ +subsys_initcall (omap_iommu_init); static void __exit omap_iommu_exit(void) {
drivers/md/dm-flakey.c +1 -1
@@ -323,7 +323,7 @@ static int flakey_end_io(struct dm_target *ti, struct bio *bio,* Corrupt successful READs while in down state. * If flags were specified, only corrupt those that match. */ -if (!error && bio_submitted_while_down && +if (fc->corrupt_bio_byte && !error && bio_submitted_while_down && (bio_data_dir (bio) ==READ ) && (fc->corrupt_bio_rw ==READ ) &&all_corrupt_bio_flags_match (bio, fc))corrupt_bio_data (bio, fc);
drivers/md/dm-io.c +16 -7
@@ -296,6 +296,8 @@ static void do_region(int rw, unsigned region, struct dm_io_region *where,unsigned offset;unsigned num_bvecs;sector_t remaining = where->count; +struct request_queue *q =bdev_get_queue (where->bdev); +sector_t discard_sectors;/* * where->count may be zero if rw holds a flush and we need to
@@ -305,9 +307,12 @@ static void do_region(int rw, unsigned region, struct dm_io_region *where,/* * Allocate a suitably sized-bio. */ - num_bvecs =dm_sector_div_up (remaining, - (PAGE_SIZE >>SECTOR_SHIFT )); - num_bvecs =min_t (int,bio_get_nr_vecs (where->bdev), num_bvecs); +if (rw &REQ_DISCARD ) + num_bvecs =1 ; +else + num_bvecs =min_t (int,bio_get_nr_vecs (where->bdev), +dm_sector_div_up (remaining, (PAGE_SIZE >>SECTOR_SHIFT ))); + bio =bio_alloc_bioset (GFP_NOIO , num_bvecs, io->client->bios); bio->bi_sector = where->sector + (where->count - remaining); bio->bi_bdev = where->bdev;
@@ -315,10 +320,14 @@ static void do_region(int rw, unsigned region, struct dm_io_region *where, bio->bi_destructor = dm_bio_destructor;store_io_and_region_in_bio (bio, io, region); -/* -* Try and add as many pages as possible. -*/ -while (remaining) { +if (rw &REQ_DISCARD ) { + discard_sectors =min_t (sector_t, q->limits.max_discard_sectors, remaining); + bio->bi_size = discard_sectors <<SECTOR_SHIFT ; + remaining -= discard_sectors; + }else while (remaining) { +/* +* Try and add as many pages as possible. +*/ dp->get_page (dp, &page, &len, &offset); len =min (len,to_bytes (remaining));if (!bio_add_page (bio, page, len, offset))
drivers/md/dm-ioctl.c +1 -1
@@ -1437,7 +1437,7 @@ static int target_message(struct dm_ioctl *param, size_t param_size)if (!argc) {DMWARN ("Empty message received." ); - goto out; + goto out_argv; } table =dm_get_live_table (md);
drivers/md/dm-raid.c +11 -6
@@ -667,7 +667,14 @@ static int super_load(struct md_rdev *rdev, struct md_rdev *refdev)return ret; sb =page_address (rdev->sb_page); -if (sb->magic !=cpu_to_le32 (DM_RAID_MAGIC )) { + +/* +* Two cases that we want to write new superblocks and rebuild: +* 1) New device (no matching magic number) +* 2) Device specified for rebuild (!In_sync w/ offset == 0) +*/ +if ((sb->magic !=cpu_to_le32 (DM_RAID_MAGIC )) || + (!test_bit (In_sync, &rdev->flags) && !rdev->recovery_offset)) {super_sync (rdev->mddev, rdev);set_bit (FirstUse, &rdev->flags);
@@ -744,11 +751,8 @@ static int super_init_validation(struct mddev *mddev, struct md_rdev *rdev)*/ rdev_for_each (r, t, mddev) {if (!test_bit (In_sync, &r->flags)) { -if (!test_bit (FirstUse, &r->flags)) -DMERR ("Superblock area of " -"rebuild device %d should have been " -"cleared." , r->raid_disk); -set_bit (FirstUse, &r->flags); +DMINFO ("Device %d specified for rebuild: " +"Clearing superblock" , r->raid_disk); rebuilds++; }else if (test_bit (FirstUse, &r->flags)) new_devs++;
@@ -970,6 +974,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)INIT_WORK (&rs->md.event_work, do_table_event); ti->private = rs; + ti->num_flush_requests =1 ;mutex_lock (&rs->md.reconfig_mutex); ret =md_run (&rs->md);
drivers/md/dm-thin-metadata.c +20 -5
@@ -385,6 +385,7 @@ static int init_pmd(struct dm_pool_metadata *pmd, data_sm =dm_sm_disk_create (tm, nr_blocks);if (IS_ERR (data_sm)) {DMERR ("sm_disk_create failed" ); +dm_tm_unlock (tm, sblock); r =PTR_ERR (data_sm); goto bad; }
@@ -789,6 +790,11 @@ int dm_pool_metadata_close(struct dm_pool_metadata *pmd)return 0 ; } +/* +* __open_device: Returns @td corresponding to device with id @dev, +* creating it if @create is set and incrementing @td->open_count. +* On failure, @td is undefined. +*/ static int __open_device (struct dm_pool_metadata *pmd,dm_thin_id dev,int create,struct dm_thin_device **td)
@@ -799,10 +805,16 @@ static int __open_device(struct dm_pool_metadata *pmd,struct disk_device_details details_le;/* -* Check the device isn't already open. +* If the device is already open, return it. */ list_for_each_entry (td2, &pmd->thin_devices, list)if (td2->id == dev) { +/* +* May not create an already-open device. +*/ +if (create) +return -EEXIST ; + td2->open_count++; *td = td2;return 0 ;
@@ -817,6 +829,9 @@ static int __open_device(struct dm_pool_metadata *pmd,if (r != -ENODATA || !create)return r; +/* +* Create new device. +*/ changed =1 ; details_le.mapped_blocks =0 ; details_le.transaction_id =cpu_to_le64 (pmd->trans_id);
@@ -882,12 +897,10 @@ static int __create_thin(struct dm_pool_metadata *pmd, r =__open_device (pmd, dev,1 , &td);if (r) { -__close_device (td);dm_btree_remove (&pmd->tl_info, pmd->root, &key, &pmd->root);dm_btree_del (&pmd->bl_info, dev_root);return r; } - td->changed =1 ;__close_device (td);return r;
@@ -967,14 +980,14 @@ static int __create_snap(struct dm_pool_metadata *pmd, goto bad; r =__set_snapshot_details (pmd, td, origin, pmd->time); +__close_device (td); +if (r) goto bad; -__close_device (td);return 0 ; bad: -__close_device (td);dm_btree_remove (&pmd->tl_info, pmd->root, &key, &pmd->root);dm_btree_remove (&pmd->details_info, pmd->details_root, &key, &pmd->details_root);
@@ -1211,6 +1224,8 @@ static int __remove(struct dm_thin_device *td, dm_block_t block)if (r)return r; + td->mapped_blocks--; + td->changed =1 ; pmd->need_commit =1 ;return 0 ;
drivers/mfd/cs5535-mfd.c +3 -3
@@ -179,7 +179,7 @@ static struct pci_device_id cs5535_mfd_pci_tbl[] = { };MODULE_DEVICE_TABLE (pci, cs5535_mfd_pci_tbl); -static struct pci_driver cs5535_mfd_drv = { +static struct pci_driver cs5535_mfd_driver = { .name =DRV_NAME , .id_table = cs5535_mfd_pci_tbl, .probe = cs5535_mfd_probe,
@@ -188,12 +188,12 @@ static struct pci_driver cs5535_mfd_drv = {static int __init cs5535_mfd_init (void ) { -return pci_register_driver (&cs5535_mfd_drv); +return pci_register_driver (&cs5535_mfd_driver); } static void __exit cs5535_mfd_exit(void) { -pci_unregister_driver (&cs5535_mfd_drv); +pci_unregister_driver (&cs5535_mfd_driver); }module_init (cs5535_mfd_init);
drivers/mfd/mfd-core.c +1 -1
@@ -123,7 +123,7 @@ static int mfd_add_device(struct device *parent, int id, }if (!cell->ignore_resource_conflicts) { - ret =acpi_check_resource_conflict (res); + ret =acpi_check_resource_conflict (&res[r]);if (ret) goto fail_res; }
drivers/mfd/wm8994-core.c +14 -0
@@ -252,6 +252,20 @@ static int wm8994_suspend(struct device *dev)break ; } +switch (wm8994->type) { +case WM1811 : + ret =wm8994_reg_read (wm8994,WM8994_ANTIPOP_2 ); +if (ret <0 ) { +dev_err (dev,"Failed to read jackdet: %d\n" , ret); + }else if (ret &WM1811_JACKDET_MODE_MASK ) { +dev_dbg (dev,"CODEC still active, ignoring suspend\n" ); +return 0 ; + } +break ; +default : +break ; + } +/* Disable LDO pulldowns while the device is suspended if we * don't know that something will be driving them. */ if (!wm8994->ldo_ena_always_driven)
drivers/misc/cs5535-mfgpt.c +1 -1
@@ -262,7 +262,7 @@ static void __init reset_all_timers(void)* In other cases (such as with VSAless OpenFirmware), the system firmware * leaves timers available for us to use. */ -static int __init scan_timers (struct cs5535_mfgpt_chip *mfgpt) +static int __devinit scan_timers (struct cs5535_mfgpt_chip *mfgpt) {struct cs5535_mfgpt_timer timer = { .chip = mfgpt };unsigned long flags;
drivers/mmc/host/atmel-mci.c +10 -11
@@ -1944,12 +1944,12 @@ static bool atmci_filter(struct dma_chan *chan, void *slave) } } -static void atmci_configure_dma (struct atmel_mci *host) +static bool atmci_configure_dma (struct atmel_mci *host) {struct mci_platform_data *pdata;if (host ==NULL ) -return ; +return false; pdata = host->pdev->dev.platform_data;
@@ -1966,12 +1966,15 @@ static void atmci_configure_dma(struct atmel_mci *host) host->dma.chan =dma_request_channel (mask, atmci_filter, pdata->dma_slave); } -if (!host->dma.chan) -dev_notice (&host->pdev->dev,"DMA not available, using PIO\n" ); -else +if (!host->dma.chan) { +dev_warn (&host->pdev->dev,"no DMA channel available\n" ); +return false; + }else {dev_info (&host->pdev->dev,"Using %s for DMA transfers\n" ,dma_chan_name (host->dma.chan)); +return true; + } }static inline unsigned int atmci_get_version (struct atmel_mci *host)
@@ -2081,8 +2084,7 @@ static int __init atmci_probe(struct platform_device *pdev)/* Get MCI capabilities and set operations according to it */ atmci_get_cap (host); -if (host->caps.has_dma) { -dev_info (&pdev->dev,"using DMA\n" ); +if (host->caps.has_dma &&atmci_configure_dma (host)) { host->prepare_data = &atmci_prepare_data_dma; host->submit_data = &atmci_submit_data_dma; host->stop_transfer = &atmci_stop_transfer_dma;
@@ -2092,15 +2094,12 @@ static int __init atmci_probe(struct platform_device *pdev) host->submit_data = &atmci_submit_data_pdc; host->stop_transfer = &atmci_stop_transfer_pdc; }else { -dev_info (&pdev->dev,"no DMA, no PDC\n" ); +dev_info (&pdev->dev,"using PIO\n" ); host->prepare_data = &atmci_prepare_data; host->submit_data = &atmci_submit_data; host->stop_transfer = &atmci_stop_transfer; } -if (host->caps.has_dma) -atmci_configure_dma (host); -platform_set_drvdata (pdev, host);/* We need at least one slot to succeed */
drivers/mmc/host/sdhci-esdhc-imx.c +3 -2
@@ -269,8 +269,9 @@ static void esdhc_writew_le(struct sdhci_host *host, u16 val, int reg) imx_data->scratchpad = val;return ;case SDHCI_COMMAND : -if ((host->cmd->opcode ==MMC_STOP_TRANSMISSION ) - && (imx_data->flags &ESDHC_FLAG_MULTIBLK_NO_INT )) +if ((host->cmd->opcode ==MMC_STOP_TRANSMISSION || + host->cmd->opcode ==MMC_SET_BLOCK_COUNT ) && + (imx_data->flags &ESDHC_FLAG_MULTIBLK_NO_INT )) val |=SDHCI_CMD_ABORTCMD ;if (is_imx6q_usdhc (imx_data)) {
drivers/net/usb/cdc_ether.c +7 -0
@@ -570,6 +570,13 @@ static const struct usb_device_id products [] = { .driver_info = 0, }, +/* Logitech Harmony 900 - uses the pseudo-MDLM (BLAN) driver */ +{ +USB_DEVICE_AND_INTERFACE_INFO (0x046d ,0xc11f ,USB_CLASS_COMM , + USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), + .driver_info = 0, +}, +/* * WHITELIST!!! *
drivers/net/usb/usbnet.c +2 -0
@@ -589,6 +589,7 @@ static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q) entry = (struct skb_data *) skb->cb; urb = entry->urb; +spin_unlock_irqrestore (&q->lock, flags);// during some PM-driven resume scenarios, // these (async) unlinks complete immediately retval =usb_unlink_urb (urb);
@@ -596,6 +597,7 @@ static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q)netdev_dbg (dev->net,"unlink urb err, %d\n" , retval); else count++; +spin_lock_irqsave (&q->lock, flags); }spin_unlock_irqrestore (&q->lock, flags);return count;
drivers/net/usb/zaurus.c +7 -0
@@ -349,6 +349,13 @@ static const struct usb_device_id products [] = { ZAURUS_MASTER_INTERFACE, .driver_info = OLYMPUS_MXL_INFO, }, + +/* Logitech Harmony 900 - uses the pseudo-MDLM (BLAN) driver */ +{ +USB_DEVICE_AND_INTERFACE_INFO (0x046d ,0xc11f ,USB_CLASS_COMM , + USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long) &bogus_mdlm_info, +}, { }, // END };MODULE_DEVICE_TABLE (usb, products);
drivers/net/wireless/ath/ath9k/ar5008_phy.c +1 -24
@@ -489,8 +489,6 @@ static int ar5008_hw_rf_alloc_ext_banks(struct ath_hw *ah)ATH_ALLOC_BANK (ah->analogBank6Data, ah->iniBank6.ia_rows);ATH_ALLOC_BANK (ah->analogBank6TPCData, ah->iniBank6TPC.ia_rows);ATH_ALLOC_BANK (ah->analogBank7Data, ah->iniBank7.ia_rows); -ATH_ALLOC_BANK (ah->addac5416_21, - ah->iniAddac.ia_rows * ah->iniAddac.ia_columns);ATH_ALLOC_BANK (ah->bank6Temp, ah->iniBank6.ia_rows);return 0 ;
@@ -519,7 +517,6 @@ static void ar5008_hw_rf_free_ext_banks(struct ath_hw *ah)ATH_FREE_BANK (ah->analogBank6Data);ATH_FREE_BANK (ah->analogBank6TPCData);ATH_FREE_BANK (ah->analogBank7Data); -ATH_FREE_BANK (ah->addac5416_21);ATH_FREE_BANK (ah->bank6Temp);#undef ATH_FREE_BANK
@@ -805,27 +802,7 @@ static int ar5008_hw_process_ini(struct ath_hw *ah,if (ah->eep_ops->set_addac) ah->eep_ops->set_addac (ah, chan); -if (AR_SREV_5416_22_OR_LATER (ah)) { -REG_WRITE_ARRAY (&ah->iniAddac,1 , regWrites); - }else { -struct ar5416IniArray temp; -u32 addacSize = -sizeof (u32) * ah->iniAddac.ia_rows * - ah->iniAddac.ia_columns; - -/* For AR5416 2.0/2.1 */ -memcpy (ah->addac5416_21, - ah->iniAddac.ia_array, addacSize); - -/* override CLKDRV value at [row, column] = [31, 1] */ - (ah->addac5416_21)[31 * ah->iniAddac.ia_columns +1 ] =0 ; - - temp.ia_array = ah->addac5416_21; - temp.ia_columns = ah->iniAddac.ia_columns; - temp.ia_rows = ah->iniAddac.ia_rows; -REG_WRITE_ARRAY (&temp,1 , regWrites); - } - +REG_WRITE_ARRAY (&ah->iniAddac,1 , regWrites);REG_WRITE (ah,AR_PHY_ADC_SERIAL_CTL ,AR_PHY_SEL_INTERNAL_ADDAC );ENABLE_REGWRITE_BUFFER (ah);
drivers/net/wireless/ath/ath9k/ar9002_hw.c +19 -0
@@ -180,6 +180,25 @@ static void ar9002_hw_init_mode_regs(struct ath_hw *ah)INIT_INI_ARRAY (&ah->iniAddac, ar5416Addac,ARRAY_SIZE (ar5416Addac),2 ); } + +/* iniAddac needs to be modified for these chips */ +if (AR_SREV_9160 (ah) || !AR_SREV_5416_22_OR_LATER (ah)) { +struct ar5416IniArray *addac = &ah->iniAddac; +u32 size =sizeof (u32) * addac->ia_rows * addac->ia_columns; +u32 *data; + + data =kmalloc (size,GFP_KERNEL ); +if (!data) +return ; + +memcpy (data, addac->ia_array, size); + addac->ia_array = data; + +if (!AR_SREV_5416_22_OR_LATER (ah)) { +/* override CLKDRV value */ +INI_RA (addac,31 ,1 ) =0 ; + } + } }/* Support for Japan ch.14 (2484) spread */
drivers/net/wireless/ath/ath9k/hw.h +0 -1
@@ -772,7 +772,6 @@ struct ath_hw {u32 *analogBank6Data;u32 *analogBank6TPCData;u32 *analogBank7Data; -u32 *addac5416_21;u32 *bank6Temp;u8 txpower_limit;
drivers/net/wireless/ath/carl9170/tx.c +6 -3
@@ -1234,6 +1234,7 @@ static bool carl9170_tx_ps_drop(struct ar9170 *ar, struct sk_buff *skb) {struct ieee80211_sta *sta;struct carl9170_sta_info *sta_info; +struct ieee80211_tx_info *tx_info;rcu_read_lock (); sta =__carl9170_get_tx_sta (ar, skb);
@@ -1241,16 +1242,18 @@ static bool carl9170_tx_ps_drop(struct ar9170 *ar, struct sk_buff *skb) goto out_rcu; sta_info = (void *) sta->drv_priv; -if (unlikely (sta_info->sleeping)) { -struct ieee80211_tx_info *tx_info; + tx_info =IEEE80211_SKB_CB (skb); +if (unlikely (sta_info->sleeping) && + !(tx_info->flags & (IEEE80211_TX_CTL_POLL_RESPONSE | +IEEE80211_TX_CTL_CLEAR_PS_FILT ))) {rcu_read_unlock (); - tx_info =IEEE80211_SKB_CB (skb);if (tx_info->flags &IEEE80211_TX_CTL_AMPDU )atomic_dec (&ar->tx_ampdu_upload); tx_info->flags |=IEEE80211_TX_STAT_TX_FILTERED ; +carl9170_release_dev_space (ar, skb);carl9170_tx_status (ar, skb, false);return true; }
drivers/net/wireless/iwlwifi/iwl-agn-sta.c +9 -1
@@ -1211,6 +1211,7 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv,unsigned long flags;struct iwl_addsta_cmd sta_cmd;u8 sta_id =iwlagn_key_sta_id (priv, ctx->vif, sta); +__le16 key_flags;/* if station isn't there, neither is the key */ if (sta_id ==IWL_INVALID_STATION )
@@ -1236,7 +1237,14 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv,IWL_ERR (priv,"offset %d not used in uCode key table.\n" , keyconf->hw_key_idx); - sta_cmd.key.key_flags =STA_KEY_FLG_NO_ENC |STA_KEY_FLG_INVALID ; + key_flags =cpu_to_le16 (keyconf->keyidx <<STA_KEY_FLG_KEYID_POS ); + key_flags |=STA_KEY_FLG_MAP_KEY_MSK |STA_KEY_FLG_NO_ENC | +STA_KEY_FLG_INVALID ; + +if (!(keyconf->flags &IEEE80211_KEY_FLAG_PAIRWISE )) + key_flags |=STA_KEY_MULTICAST_MSK ; + + sta_cmd.key.key_flags = key_flags; sta_cmd.key.key_offset =WEP_INVALID_OFFSET ; sta_cmd.sta.modify_mask =STA_MODIFY_KEY_MASK ; sta_cmd.mode =STA_CONTROL_MODIFY_MSK ;
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +32 -4
@@ -275,6 +275,8 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8191, rtl92cu_hal_cfg)},/****** 8188CU ********/ +/* RTL8188CTV */ + {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x018a, rtl92cu_hal_cfg)},/* 8188CE-VAU USB minCard */ {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8170, rtl92cu_hal_cfg)},/* 8188cu 1*1 dongle */
@@ -291,14 +293,14 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817e, rtl92cu_hal_cfg)},/* 8188RU in Alfa AWUS036NHR */ {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817f, rtl92cu_hal_cfg)}, +/* RTL8188CUS-VL */ + {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x818a, rtl92cu_hal_cfg)},/* 8188 Combo for BC4 */ {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8754, rtl92cu_hal_cfg)},/****** 8192CU ********/ -/* 8191cu 1*2 */ - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8177, rtl92cu_hal_cfg)},/* 8192cu 2*2 */ - {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817b, rtl92cu_hal_cfg)}, + {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8178, rtl92cu_hal_cfg)},/* 8192CE-VAU USB minCard */ {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817c, rtl92cu_hal_cfg)},
@@ -309,13 +311,17 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x07b8, 0x8188, rtl92cu_hal_cfg)}, /*Abocom - Abocom*/ {RTL_USB_DEVICE(0x07b8, 0x8189, rtl92cu_hal_cfg)}, /*Funai - Abocom*/ {RTL_USB_DEVICE(0x0846, 0x9041, rtl92cu_hal_cfg)}, /*NetGear WNA1000M*/ - {RTL_USB_DEVICE(0x0Df6, 0x0052, rtl92cu_hal_cfg)}, /*Sitecom - Edimax*/ + {RTL_USB_DEVICE(0x0df6, 0x0052, rtl92cu_hal_cfg)}, /*Sitecom - Edimax*/ + {RTL_USB_DEVICE(0x0df6, 0x005c, rtl92cu_hal_cfg)}, /*Sitecom - Edimax*/ {RTL_USB_DEVICE(0x0eb0, 0x9071, rtl92cu_hal_cfg)}, /*NO Brand - Etop*//* HP - Lite-On ,8188CUS Slim Combo */ {RTL_USB_DEVICE(0x103c, 0x1629, rtl92cu_hal_cfg)}, {RTL_USB_DEVICE(0x13d3, 0x3357, rtl92cu_hal_cfg)}, /* AzureWave */ {RTL_USB_DEVICE(0x2001, 0x3308, rtl92cu_hal_cfg)}, /*D-Link - Alpha*/ + {RTL_USB_DEVICE(0x2019, 0x4902, rtl92cu_hal_cfg)}, /*Planex - Etop*/ {RTL_USB_DEVICE(0x2019, 0xab2a, rtl92cu_hal_cfg)}, /*Planex - Abocom*/ +/*SW-WF02-AD15 -Abocom*/ + {RTL_USB_DEVICE(0x2019, 0xab2e, rtl92cu_hal_cfg)}, {RTL_USB_DEVICE(0x2019, 0xed17, rtl92cu_hal_cfg)}, /*PCI - Edimax*/ {RTL_USB_DEVICE(0x20f4, 0x648b, rtl92cu_hal_cfg)}, /*TRENDnet - Cameo*/ {RTL_USB_DEVICE(0x7392, 0x7811, rtl92cu_hal_cfg)}, /*Edimax - Edimax*/
@@ -326,14 +332,36 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x4855, 0x0091, rtl92cu_hal_cfg)}, /* NetweeN-Feixun */ {RTL_USB_DEVICE(0x9846, 0x9041, rtl92cu_hal_cfg)}, /* Netgear Cameo */ +/****** 8188 RU ********/ +/* Netcore */ + {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x317f, rtl92cu_hal_cfg)}, + +/****** 8188CUS Slim Solo********/ + {RTL_USB_DEVICE(0x04f2, 0xaff7, rtl92cu_hal_cfg)}, /*Xavi*/ + {RTL_USB_DEVICE(0x04f2, 0xaff9, rtl92cu_hal_cfg)}, /*Xavi*/ + {RTL_USB_DEVICE(0x04f2, 0xaffa, rtl92cu_hal_cfg)}, /*Xavi*/ + +/****** 8188CUS Slim Combo ********/ + {RTL_USB_DEVICE(0x04f2, 0xaff8, rtl92cu_hal_cfg)}, /*Xavi*/ + {RTL_USB_DEVICE(0x04f2, 0xaffb, rtl92cu_hal_cfg)}, /*Xavi*/ + {RTL_USB_DEVICE(0x04f2, 0xaffc, rtl92cu_hal_cfg)}, /*Xavi*/ + {RTL_USB_DEVICE(0x2019, 0x1201, rtl92cu_hal_cfg)}, /*Planex-Vencer*/ +/****** 8192CU ********/ + {RTL_USB_DEVICE(0x050d, 0x2102, rtl92cu_hal_cfg)}, /*Belcom-Sercomm*/ + {RTL_USB_DEVICE(0x050d, 0x2103, rtl92cu_hal_cfg)}, /*Belcom-Edimax*/ {RTL_USB_DEVICE(0x0586, 0x341f, rtl92cu_hal_cfg)}, /*Zyxel -Abocom*/ {RTL_USB_DEVICE(0x07aa, 0x0056, rtl92cu_hal_cfg)}, /*ATKK-Gemtek*/ {RTL_USB_DEVICE(0x07b8, 0x8178, rtl92cu_hal_cfg)}, /*Funai -Abocom*/ + {RTL_USB_DEVICE(0x0846, 0x9021, rtl92cu_hal_cfg)}, /*Netgear-Sercomm*/ + {RTL_USB_DEVICE(0x0b05, 0x17ab, rtl92cu_hal_cfg)}, /*ASUS-Edimax*/ + {RTL_USB_DEVICE(0x0df6, 0x0061, rtl92cu_hal_cfg)}, /*Sitecom-Edimax*/ + {RTL_USB_DEVICE(0x0e66, 0x0019, rtl92cu_hal_cfg)}, /*Hawking-Edimax*/ {RTL_USB_DEVICE(0x2001, 0x3307, rtl92cu_hal_cfg)}, /*D-Link-Cameo*/ {RTL_USB_DEVICE(0x2001, 0x3309, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ {RTL_USB_DEVICE(0x2001, 0x330a, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ {RTL_USB_DEVICE(0x2019, 0xab2b, rtl92cu_hal_cfg)}, /*Planex -Abocom*/ + {RTL_USB_DEVICE(0x20f4, 0x624d, rtl92cu_hal_cfg)}, /*TRENDNet*/ {RTL_USB_DEVICE(0x7392, 0x7822, rtl92cu_hal_cfg)}, /*Edimax -Edimax*/ {} };
drivers/rapidio/devices/tsi721.c +3 -2
@@ -410,13 +410,14 @@ static void tsi721_db_dpc(struct work_struct *work)*/ mport = priv->mport; - wr_ptr =ioread32 (priv->regs +TSI721_IDQ_WP (IDB_QUEUE )); - rd_ptr =ioread32 (priv->regs +TSI721_IDQ_RP (IDB_QUEUE )); + wr_ptr =ioread32 (priv->regs +TSI721_IDQ_WP (IDB_QUEUE )) %IDB_QSIZE ; + rd_ptr =ioread32 (priv->regs +TSI721_IDQ_RP (IDB_QUEUE )) %IDB_QSIZE ;while (wr_ptr != rd_ptr) { idb_entry = (u64 *)(priv->idb_base + (TSI721_IDB_ENTRY_SIZE * rd_ptr)); rd_ptr++; + rd_ptr %=IDB_QSIZE ; idb.msg = *idb_entry; *idb_entry =0 ;
drivers/regulator/88pm8607.c +3 -3
@@ -196,7 +196,7 @@ static const unsigned int LDO12_suspend_table[] = { };static const unsigned int LDO13_table[] = { -1300000 ,1800000 ,2000000 ,2500000 ,2800000 ,3000000 ,0 ,0 , +1200000 ,1300000 ,1800000 ,2000000 ,2500000 ,2800000 ,3000000 ,0 , };static const unsigned int LDO13_suspend_table[] = {
@@ -389,10 +389,10 @@ static struct pm8607_regulator_info pm8607_regulator_info[] = {PM8607_LDO (7 ,LDO7 ,0 ,3 ,SUPPLIES_EN12 ,1 ),PM8607_LDO (8 ,LDO8 ,0 ,3 ,SUPPLIES_EN12 ,2 ),PM8607_LDO (9 ,LDO9 ,0 ,3 ,SUPPLIES_EN12 ,3 ), -PM8607_LDO (10 ,LDO10 ,0 ,3 ,SUPPLIES_EN12 ,4 ), +PM8607_LDO (10 ,LDO10 ,0 ,4 ,SUPPLIES_EN12 ,4 ),PM8607_LDO (12 ,LDO12 ,0 ,4 ,SUPPLIES_EN12 ,5 ),PM8607_LDO (13 ,VIBRATOR_SET ,1 ,3 ,VIBRATOR_SET ,0 ), - PM8607_LDO(14, LDO14, 0, 4, SUPPLIES_EN12, 6), + PM8607_LDO(14, LDO14, 0, 3, SUPPLIES_EN12, 6), };static int __devinit pm8607_regulator_probe (struct platform_device *pdev)
drivers/s390/block/dasd_eckd.c +1 -1
@@ -18,12 +18,12 @@#include <linux/hdreg.h> /* HDIO_GETGEO */ #include <linux/bio.h> #include <linux/module.h> +#include <linux/compat.h> #include <linux/init.h> #include <asm/debug.h> #include <asm/idals.h> #include <asm/ebcdic.h> -#include <asm/compat.h> #include <asm/io.h> #include <asm/uaccess.h> #include <asm/cio.h>
drivers/s390/block/dasd_ioctl.c +1 -0
@@ -13,6 +13,7 @@#define KMSG_COMPONENT "dasd"#include <linux/interrupt.h> +#include <linux/compat.h> #include <linux/major.h> #include <linux/fs.h> #include <linux/blkpg.h>
drivers/s390/char/fs3270.c +1 -0
@@ -11,6 +11,7 @@#include <linux/console.h> #include <linux/init.h> #include <linux/interrupt.h> +#include <linux/compat.h> #include <linux/module.h> #include <linux/list.h> #include <linux/slab.h>
drivers/s390/char/vmcp.c +1 -0
@@ -13,6 +13,7 @@#include <linux/fs.h> #include <linux/init.h> +#include <linux/compat.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/slab.h>
drivers/s390/cio/chsc_sch.c +1 -0
@@ -8,6 +8,7 @@*/ #include <linux/slab.h> +#include <linux/compat.h> #include <linux/device.h> #include <linux/module.h> #include <linux/uaccess.h>
drivers/s390/cio/qdio_main.c +2 -2
@@ -167,7 +167,7 @@ again:DBF_ERROR ("%4x EQBS ERROR" ,SCH_NO (q));DBF_ERROR ("%3d%3d%2d" , count, tmp_count, nr); q->handler (q->irq_ptr->cdev,QDIO_ERROR_ACTIVATE_CHECK_CONDITION , -0 ,-1 ,-1 , q->irq_ptr->int_parm); + q->nr, q->first_to_kick, count, q->irq_ptr->int_parm);return 0 ; }
@@ -215,7 +215,7 @@ again:DBF_ERROR ("%4x SQBS ERROR" ,SCH_NO (q));DBF_ERROR ("%3d%3d%2d" , count, tmp_count, nr); q->handler (q->irq_ptr->cdev,QDIO_ERROR_ACTIVATE_CHECK_CONDITION , -0 ,-1 ,-1 , q->irq_ptr->int_parm); + q->nr, q->first_to_kick, count, q->irq_ptr->int_parm);return 0 ; }
drivers/s390/scsi/zfcp_cfdc.c +1 -0
@@ -11,6 +11,7 @@#define KMSG_COMPONENT "zfcp"#define pr_fmt (fmt) KMSG_COMPONENT ": " fmt +#include <linux/compat.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/miscdevice.h>
drivers/scsi/osd/osd_uld.c +2 -2
@@ -69,10 +69,10 @@#ifndef SCSI_OSD_MAJOR # define SCSI_OSD_MAJOR 260#endif -#define SCSI_OSD_MAX_MINOR 64 +#define SCSI_OSD_MAX_MINOR MINORMASKstatic const char osd_name[] ="osd" ; -static const char *osd_version_string ="open-osd 0.2.0" ; +static const char *osd_version_string ="open-osd 0.2.1" ;MODULE_AUTHOR ("Boaz Harrosh <[email protected]>" );MODULE_DESCRIPTION ("open-osd Upper-Layer-Driver osd.ko" );
drivers/spi/spi-topcliff-pch.c +3 -3
@@ -1717,7 +1717,7 @@ static int pch_spi_resume(struct pci_dev *pdev)#endif -static struct pci_driver pch_spi_pcidev = { +static struct pci_driver pch_spi_pcidev_driver = { .name ="pch_spi" , .id_table = pch_spi_pcidev_id, .probe = pch_spi_probe,
@@ -1733,7 +1733,7 @@ static int __init pch_spi_init(void)if (ret)return ret; - ret =pci_register_driver (&pch_spi_pcidev); + ret =pci_register_driver (&pch_spi_pcidev_driver);if (ret)return ret;
@@ -1743,7 +1743,7 @@ module_init(pch_spi_init); static void __exit pch_spi_exit(void) { -pci_unregister_driver (&pch_spi_pcidev); +pci_unregister_driver (&pch_spi_pcidev_driver);platform_driver_unregister (&pch_spi_pd_driver); }module_exit (pch_spi_exit);
drivers/staging/media/lirc/lirc_serial.c +47 -53
170 lines not on this page · raw message
drivers/tty/Kconfig +1 -1
@@ -365,7 +365,7 @@ config PPC_EPAPR_HV_BYTECHAN config PPC_EARLY_DEBUG_EHV_BC bool "Early console (udbg) support for ePAPR hypervisors" - depends on PPC_EPAPR_HV_BYTECHAN + depends on PPC_EPAPR_HV_BYTECHAN=y help Select this option to enable early console (a.k.a. "udbg") support via an ePAPR byte channel. You also need to choose the byte channel
drivers/video/omap2/dss/hdmi.c +3 -0
@@ -490,6 +490,7 @@ bool omapdss_hdmi_detect(void)int omapdss_hdmi_display_enable (struct omap_dss_device *dssdev) { +struct omap_dss_hdmi_data *priv = dssdev->data;int r =0 ;DSSDBG ("ENTER hdmi_display_enable\n" );
@@ -502,6 +503,8 @@ int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev) goto err0; } + hdmi.ip_data.hpd_gpio = priv->hpd_gpio; + r =omap_dss_start_device (dssdev);if (r) {DSSERR ("failed to start device\n" );
drivers/video/omap2/dss/ti_hdmi.h +4 -0
@@ -121,6 +121,10 @@ struct hdmi_ip_data {const struct ti_hdmi_ip_ops *ops;struct hdmi_config cfg;struct hdmi_pll_info pll_data; + +/* ti_hdmi_4xxx_ip private data. These should be in a separate struct */ +int hpd_gpio; +bool phy_tx_enabled; };int ti_hdmi_4xxx_phy_enable (struct hdmi_ip_data *ip_data);
Lines of this file are not shown. View the raw message.
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c +65 -12
77 lines not on this page · raw message
kernel/irq/manage.c +38 -6
44 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.