Linux 3.8.7
Greg KH
maintainerI'm announcing the release of the 3.8.7 kernel.
All users of the 3.8 kernel series must upgrade.
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.8.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
------------
Makefile | 2 arch/alpha/kernel/sys_nautilus.c | 5 + arch/arm/mach-exynos/common.c | 6 - arch/mips/kernel/mcount.S | 11 +- arch/mips/lib/bitops.c | 16 +-- arch/powerpc/platforms/pseries/lpar.c | 8 + arch/x86/boot/compressed/Makefile | 5 - arch/x86/include/asm/syscall.h | 4 block/blk-sysfs.c | 2 crypto/gcm.c | 17 +++ drivers/acpi/pci_root.c | 121 ++++++++++++-------------- drivers/ata/ata_piix.c | 14 ++- drivers/ata/libata-core.c | 6 + drivers/base/regmap/regcache-rbtree.c | 2 drivers/base/regmap/regmap.c | 4 drivers/cpufreq/exynos-cpufreq.c | 4 drivers/crypto/ux500/cryp/cryp_core.c | 2 drivers/eisa/pci_eisa.c | 67 +++++++++----- drivers/gpio/gpio-stmpe.c | 15 ++- drivers/gpu/drm/drm_fops.c | 6 - drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 drivers/gpu/drm/i915/intel_crt.c | 40 +++----- drivers/gpu/drm/i915/intel_display.c | 9 + drivers/gpu/drm/mgag200/mgag200_mode.c | 13 -- drivers/gpu/drm/nouveau/nouveau_abi16.c | 18 ++- drivers/hid/hid-magicmouse.c | 29 ++++-- drivers/hwspinlock/hwspinlock_core.c | 2 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 11 +- drivers/net/ethernet/realtek/r8169.c | 28 +++++- drivers/net/wireless/mwifiex/cfg80211.c | 3 drivers/net/wireless/mwifiex/scan.c | 11 +- drivers/net/wireless/rt2x00/rt2x00pci.c | 4 drivers/pci/pci-acpi.c | 15 +-- drivers/pci/pcie/portdrv_pci.c | 13 -- drivers/platform/x86/msi-wmi.c | 4 drivers/remoteproc/Kconfig | 2 drivers/remoteproc/remoteproc_core.c | 4 drivers/remoteproc/ste_modem_rproc.c | 7 + drivers/rtc/rtc-at91rm9200.c | 50 ++++------ drivers/rtc/rtc-at91rm9200.h | 1 drivers/spi/spi-mpc512x-psc.c | 2 drivers/spi/spi-s3c64xx.c | 41 +++++--- drivers/thermal/thermal_sys.c | 1 drivers/tty/serial/8250/8250_pnp.c | 12 +- drivers/vfio/pci/vfio_pci.c | 3 fs/nfs/nfs4client.c | 45 ++++++--- fs/nfs/nfs4state.c | 8 + fs/reiserfs/xattr.c | 4 fs/ubifs/super.c | 12 +- include/linux/ata.h | 2 include/linux/libata.h | 1 include/linux/preempt.h | 22 +++- include/linux/spinlock_up.h | 29 +++--- kernel/trace/ftrace.c | 8 - mm/mmap.c | 2 mm/nommu.c | 2 net/can/gw.c | 6 - net/mac80211/cfg.c | 6 - net/mac80211/ieee80211_i.h | 3 net/mac80211/offchannel.c | 23 +++- net/sunrpc/clnt.c | 4 sound/pci/hda/hda_codec.c | 2 sound/pci/hda/hda_eld.c | 2 sound/pci/hda/patch_realtek.c | 4 sound/soc/fsl/imx-ssi.c | 5 + sound/soc/sh/dma-sh7760.c | 4 sound/soc/spear/spear_pcm.c | 12 +- 67 files changed, 507 insertions(+), 341 deletions(-)
Adam Jackson (1):
drm/i915: Be sure to turn hsync/vsync back on at crt enable (v2)
Alex Williamson (1):
vfio-pci: Fix possible integer overflow
Anatolij Gustschin (1):
spi/mpc512x-psc: optionally keep PSC SS asserted across xfer segmensts
Arnd Bergmann (1):
block: avoid using uninitialized value in from queue_var_store
Artem Bityutskiy (1):
UBIFS: make space fixup work in the remount case
Benjamin Tissoires (1):
HID: magicmouse: fix race between input_register() and probe()
Bing Zhao (1):
mwifiex: complete last internal scan
Bjorn Helgaas (1):
Revert "PCI/ACPI: Request _OSC control before scanning PCI root bus"
Christopher Harvey (1):
drm/mgag200: Index 24 in extended CRTC registers is 24 in hex, not decimal.
Chuck Lever (1):
SUNRPC: Remove extra xprt_put()
David Daney (2):
MIPS: Fix logic errors in bitops.c
MIPS: Unbreak function tracer for 64-bit kernel.
David Henningsson (1):
ALSA: hda - fix typo in proc output
David Woodhouse (1):
libata: fix DMA to stack in reading devslp_timing parameters
Dimitris Papastamos (1):
regmap: Initialize `map->debugfs' before regcache
Dmitry Tarnyagin (1):
remoteproc/ste: fix memory leak on shutdown
Gabriel Fernandez (1):
gpio: stmpe: pass DT node to irqdomain
Girish K S (1):
spi/s3c64xx: modified error interrupt handling and init
Greg Kroah-Hartman (1):
Linux 3.8.7
Ilija Hadzic (1):
drm: correctly restore mappings if drm_open fails
Jakub Kicinski (1):
ixgbe: fix registration order of driver and DCA nofitication
Jan Beulich (1):
x86: Fix rebuild with EFI_STUB enabled
Jan Kara (1):
reiserfs: Fix warning and inode leak when deleting inode with xattrs
Jan Kiszka (1):
ftrace: Consistently restore trace function on sysctl enabling
Jan Stancek (1):
mm: prevent mmap_cache race in find_vma()
Jani Nikula (3):
drm/i915: add quirk to invert brightness on eMachines G725 drm/i915: add quirk to invert brightness on eMachines e725 drm/i915: add quirk to invert brightness on Packard Bell NCL20
Jay Estabrook (1):
alpha: Add irongate_io to PCI bus resources
Johan Hovold (1):
Revert "drivers/rtc/rtc-at91rm9200.c: use a variable for storing IMR"
Johannes Berg (1):
mac80211: fix remain-on-channel cancel crash
Jonghwan Choi (1):
cpufreq: exynos: Get booting freq value in exynos_cpufreq_init
Jussi Kivilinna (1):
crypto: gcm - fix assumption that assoc has one segment
Lars-Peter Clausen (3):
ASoC: dma-sh7760: Fix compile error
ASoC: spear_pcm: Update to new pcm_new() API
regmap: cache Fix regcache-rbtree sync
Lauri Kasanen (1):
drm/i915: Fix build failure
Li Fei (1):
hwspinlock: fix __hwspin_lock_request error path
Linus Torvalds (1):
spinlocks and preemption points need to be at least compiler barriers
Linus Walleij (1):
crypto: ux500 - add missing comma
Maarten Lankhorst (1):
drm/nouveau: fix handling empty channel list in ioctl's
Maxim Mikityanskiy (1):
msi-wmi: Fix memory leak
Mengdong Lin (1):
ALSA: hda - bug fix on return value when getting HDMI ELD info
Michael Wolf (1):
powerpc: pSeries_lpar_hpte_remove fails from Adjunct partition being performed before the ANDCOND test
Paul Moore (1):
x86: remove the x32 syscall bitmask from syscall_get_nr()
Rafael J. Wysocki (2):
PCI/ACPI: Always resume devices on ACPI wakeup notifications PCI/PM: Disable runtime PM of PCIe ports
Rainer Koenig (1):
ALSA: hda - Enabling Realtek ALC 671 codec
Richard Guy Briggs (1):
thermal: return an error on failure to register thermal class
Robert Tivy (1):
remoteproc: fix FW_CONFIG typo
Sascha Hauer (1):
ASoC: imx-ssi: Fix occasional AC97 reset failure
Sean Young (1):
Revert "tty/8250_pnp: serial port detection regression since v3.7"
Shan Hai (2):
libata: Use integer return value for atapi_command_packet_set
libata: Set max sector to 65535 for Slimtype DVD A DS8A8SH drive
Sjur Brændeland (1):
remoteproc: fix error path of handle_vdev
Stone Piao (1):
mwifiex: limit channel number not to overflow memory
Thomas Abraham (1):
ARM: EXYNOS: Fix crash on soft reset on EXYNOS5440
Tim Gardner (1):
rt2x00: rt2x00pci_regbusy_read() - only print register access failure once
Trond Myklebust (3):
NFSv4: Fix a memory leak in nfs4_discover_server_trunking NFSv4/4.1: Fix bugs in nfs4[01]_walk_client_list
NFSv4: Doh! Typo in the fix to nfs41_walk_client_list
Wei Yongjun (1):
can: gw: use kmem_cache_free() instead of kfree()
Yinghai Lu (2):
EISA/PCI: Init EISA early, before PNP
EISA/PCI: Fix bus res reference
Youquan Song (1):
ata_piix: Fix DVD not dectected at some Haswell platforms
hayeswang (1):
r8169: fix auto speed down issue
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 8 -SUBLEVEL = 6 +SUBLEVEL = 7 EXTRAVERSION = NAME = Displaced Humerus Anterior
arch/alpha/kernel/sys_nautilus.c +5 -0
@@ -188,6 +188,10 @@ nautilus_machine_check(unsigned long vector, unsigned long la_ptr)extern void free_reserved_mem (void *,void *);extern void pcibios_claim_one_bus (struct pci_bus *); +static struct resource irongate_io = { + .name ="Irongate PCI IO" , + .flags =IORESOURCE_IO , +};static struct resource irongate_mem = { .name ="Irongate PCI MEM" , .flags =IORESOURCE_MEM ,
@@ -209,6 +213,7 @@ nautilus_init_pci(void) irongate =pci_get_bus_and_slot (0 ,0 ); bus->self = irongate; + bus->resource[0 ] = &irongate_io; bus->resource[1 ] = &irongate_mem;pci_bus_size_bridges (bus);
arch/arm/mach-exynos/common.c +4 -2
@@ -299,6 +299,7 @@ void exynos4_restart(char mode, const char *cmd)void exynos5_restart (char mode,const char *cmd) { +struct device_node *np;u32 val;void __iomem *addr;
@@ -306,8 +307,9 @@ void exynos5_restart(char mode, const char *cmd) val =0x1 ; addr =EXYNOS_SWRESET ; }else if (of_machine_is_compatible ("samsung,exynos5440" )) { - val = (0x10 <<20 ) | (0x1 <<16 ); - addr =EXYNOS5440_SWRESET ; + np =of_find_compatible_node (NULL ,NULL ,"samsung,exynos5440-clock" ); + addr =of_iomap (np,0 ) +0xcc ; + val = (0xfff <<20 ) | (0x1 <<16 ); }else {pr_err ("%s: cannot support non-DT\n" , __func__);return ;
arch/mips/kernel/mcount.S +7 -4
@@ -46,10 +46,9 @@ PTR_L a5, PT_R9(sp) PTR_L a6, PT_R10(sp) PTR_L a7, PT_R11(sp) -#else - PTR_ADDIU sp, PT_SIZE #endif -.endm + PTR_ADDIU sp, PT_SIZE + .endm .macro RETURN_BACK jr ra
@@ -68,7 +67,11 @@ NESTED(ftrace_caller, PT_SIZE, ra) .globl _mcount _mcount: b ftrace_stub - addiu sp,sp,8 +#ifdef CONFIG_32BIT + addiu sp,sp,8 +#else + nop +#endif /* When tracing is activated, it calls ftrace_caller+8 (aka here) */ lw t1, function_trace_stop
arch/mips/lib/bitops.c +8 -8
@@ -90,12 +90,12 @@ int __mips_test_and_set_bit(unsigned long nr,unsigned bit = nr &SZLONG_MASK ;unsigned long mask;unsigned long flags; -unsigned long res; +int res; a += nr >>SZLONG_LOG ; mask =1UL << bit;raw_local_irq_save (flags); - res = (mask & *a); + res = (mask & *a) !=0 ; *a |= mask;raw_local_irq_restore (flags);return res;
@@ -116,12 +116,12 @@ int __mips_test_and_set_bit_lock(unsigned long nr,unsigned bit = nr &SZLONG_MASK ;unsigned long mask;unsigned long flags; -unsigned long res; +int res; a += nr >>SZLONG_LOG ; mask =1UL << bit;raw_local_irq_save (flags); - res = (mask & *a); + res = (mask & *a) !=0 ; *a |= mask;raw_local_irq_restore (flags);return res;
@@ -141,12 +141,12 @@ int __mips_test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)unsigned bit = nr &SZLONG_MASK ;unsigned long mask;unsigned long flags; -unsigned long res; +int res; a += nr >>SZLONG_LOG ; mask =1UL << bit;raw_local_irq_save (flags); - res = (mask & *a); + res = (mask & *a) !=0 ; *a &= ~mask;raw_local_irq_restore (flags);return res;
@@ -166,12 +166,12 @@ int __mips_test_and_change_bit(unsigned long nr, volatile unsigned long *addr)unsigned bit = nr &SZLONG_MASK ;unsigned long mask;unsigned long flags; -unsigned long res; +int res; a += nr >>SZLONG_LOG ; mask =1UL << bit;raw_local_irq_save (flags); - res = (mask & *a); + res = (mask & *a) !=0 ; *a ^= mask;raw_local_irq_restore (flags);return res;
arch/powerpc/platforms/pseries/lpar.c +7 -1
@@ -186,7 +186,13 @@ static long pSeries_lpar_hpte_remove(unsigned long hpte_group) (0x1UL << 4), &dummy1, &dummy2);if (lpar_rc ==H_SUCCESS )return i; -BUG_ON (lpar_rc !=H_NOT_FOUND ); + +/* +* The test for adjunct partition is performed before the +* ANDCOND test. H_RESOURCE may be returned, so we need to +* check for that as well. +*/ +BUG_ON (lpar_rc !=H_NOT_FOUND && lpar_rc !=H_RESOURCE ); slot_offset++; slot_offset &=0x7 ;
arch/x86/boot/compressed/Makefile +2 -3
@@ -4,7 +4,7 @@ # create a compressed vmlinux image from the original vmlinux # -targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo head_$(BITS).o misc.o string.o cmdline.o early_serial_console.o piggy.o +targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 KBUILD_CFLAGS += -fno-strict-aliasing -fPIC
@@ -29,7 +29,6 @@ VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ $(obj)/piggy.o $(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone -$(obj)/efi_stub_$(BITS).o: KBUILD_CLFAGS += -fshort-wchar -mno-red-zone ifeq ($(CONFIG_EFI_STUB), y) VMLINUX_OBJS += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o
@@ -43,7 +42,7 @@ OBJCOPYFLAGS_vmlinux.bin := -R .comment -S $(obj)/vmlinux.bin: vmlinux FORCE $(call if_changed,objcopy) -targets += vmlinux.bin.all vmlinux.relocs +targets += $(patsubst $(obj)/%,%,$(VMLINUX_OBJS)) vmlinux.bin.all vmlinux.relocs CMD_RELOCS = arch/x86/tools/relocs quiet_cmd_relocs = RELOCS $@
arch/x86/include/asm/syscall.h +2 -2
@@ -29,13 +29,13 @@ extern const unsigned long sys_call_table[];*/ static inline int syscall_get_nr (struct task_struct *task,struct pt_regs *regs) { -return regs->orig_ax & __SYSCALL_MASK; +return regs->orig_ax; }static inline void syscall_rollback (struct task_struct *task,struct pt_regs *regs) { - regs->ax = regs->orig_ax & __SYSCALL_MASK; + regs->ax = regs->orig_ax; } static inline long syscall_get_error(struct task_struct *task,
block/blk-sysfs.c +2 -0
@@ -229,6 +229,8 @@ queue_store_##name(struct request_queue *q, const char *page, size_t count) \unsigned long val; \ssize_t ret; \ ret =queue_var_store (&val, page, count); \ +if (ret <0 ) \ +return ret; \if (neg) \ val = !val; \ \
crypto/gcm.c +14 -3
@@ -44,6 +44,7 @@ struct crypto_rfc4543_ctx {struct crypto_rfc4543_req_ctx {u8 auth_tag[16 ]; +u8 assocbuf[32 ];struct scatterlist cipher[1 ];struct scatterlist payload[2 ];struct scatterlist assoc[2 ];
@@ -1142,9 +1143,19 @@ static struct aead_request *crypto_rfc4543_crypt(struct aead_request *req,scatterwalk_crypto_chain (payload, dst, vdst == req->iv +8 ,2 ); assoclen +=8 + req->cryptlen - (enc ?0 : authsize); -sg_init_table (assoc,2 ); -sg_set_page (assoc,sg_page (req->assoc), req->assoc->length, - req->assoc->offset); +if (req->assoc->length == req->assoclen) { +sg_init_table (assoc,2 ); +sg_set_page (assoc,sg_page (req->assoc), req->assoc->length, + req->assoc->offset); + }else { +BUG_ON (req->assoclen >sizeof (rctx->assocbuf)); + +scatterwalk_map_and_copy (rctx->assocbuf, req->assoc,0 , + req->assoclen,0 ); + +sg_init_table (assoc,2 ); +sg_set_buf (assoc, rctx->assocbuf, req->assoclen); + }scatterwalk_crypto_chain (assoc, payload,0 ,2 );aead_request_set_tfm (subreq, ctx->child);
drivers/acpi/pci_root.c +59 -62
140 lines not on this page · raw message
drivers/ata/ata_piix.c +13 -1
@@ -150,6 +150,7 @@ enum piix_controller_ids { tolapai_sata, piix_pata_vmw,/* PIIX4 for VMware, spurious DMA_ERR */ ich8_sata_snb, + ich8_2port_sata_snb, }; struct piix_map_db {
@@ -304,7 +305,7 @@ static const struct pci_device_id piix_pci_tbl[] = {/* SATA Controller IDE (Lynx Point) */ { 0x8086, 0x8c01, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb },/* SATA Controller IDE (Lynx Point) */ - { 0x8086, 0x8c08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, + { 0x8086, 0x8c08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_snb },/* SATA Controller IDE (Lynx Point) */ { 0x8086, 0x8c09, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, /* SATA Controller IDE (Lynx Point-LP) */
@@ -439,6 +440,7 @@ static const struct piix_map_db *piix_map_db_table[] = { [ich8m_apple_sata] = &ich8m_apple_map_db, [tolapai_sata] = &tolapai_map_db, [ich8_sata_snb] = &ich8_map_db, + [ich8_2port_sata_snb] = &ich8_2port_map_db, };static struct pci_bits piix_enable_bits[] = {
@@ -1242,6 +1244,16 @@ static struct ata_port_info piix_port_info[] = { .udma_mask = ATA_UDMA6, .port_ops = &piix_sata_ops, }, + + [ich8_2port_sata_snb] = + { + .flags =PIIX_SATA_FLAGS |PIIX_FLAG_SIDPR + | PIIX_FLAG_PIO16, + .pio_mask = ATA_PIO4, + .mwdma_mask = ATA_MWDMA2, + .udma_mask = ATA_UDMA6, + .port_ops = &piix_sata_ops, + }, };#define AHCI_PCI_BAR 5
drivers/ata/libata-core.c +5 -1
@@ -2329,7 +2329,7 @@ int ata_dev_configure(struct ata_device *dev)* from SATA Settings page of Identify Device Data Log. */ if (ata_id_has_devslp (dev->id)) { -u8 sata_setting[ATA_SECT_SIZE ]; +u8 *sata_setting = ap->sector_buf;int i, j; dev->flags |=ATA_DFLAG_DEVSLP ;
@@ -2437,6 +2437,9 @@ int ata_dev_configure(struct ata_device *dev) dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, dev->max_sectors); +if (dev->horkage &ATA_HORKAGE_MAX_SEC_LBA48 ) + dev->max_sectors =ATA_MAX_SECTORS_LBA48 ; +if (ap->ops->dev_config) ap->ops->dev_config (dev);
@@ -4098,6 +4101,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {/* Weird ATAPI devices */ { "TORiSAN DVD-ROM DRD-N216", NULL, ATA_HORKAGE_MAX_SEC_128 }, { "QUANTUM DAT DAT72-000", NULL, ATA_HORKAGE_ATAPI_MOD16_DMA }, + { "Slimtype DVD A DS8A8SH", NULL, ATA_HORKAGE_MAX_SEC_LBA48 }, /* Devices we expect to fail diagnostics */
drivers/base/regmap/regcache-rbtree.c +1 -1
@@ -398,7 +398,7 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min, base =0 ;if (max < rbnode->base_reg + rbnode->blklen) - end = rbnode->base_reg + rbnode->blklen - max; + end = max - rbnode->base_reg +1 ;else end = rbnode->blklen;
drivers/base/regmap/regmap.c +2 -2
@@ -662,12 +662,12 @@ struct regmap *regmap_init(struct device *dev, } } +regmap_debugfs_init (map, config->name); + ret =regcache_init (map, config);if (ret !=0 ) goto err_range; -regmap_debugfs_init (map, config->name); -/* Add a devres resource for dev_get_regmap() */ m =devres_alloc (dev_get_regmap_release,sizeof (*m),GFP_KERNEL );if (!m) {
drivers/cpufreq/exynos-cpufreq.c +2 -2
@@ -222,8 +222,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)cpufreq_frequency_table_get_attr (exynos_info->freq_table, policy->cpu); - locking_frequency =exynos_getspeed (0 ); -/* set the transition latency value */ policy->cpuinfo.transition_latency =100000 ;
@@ -288,6 +286,8 @@ static int __init exynos_cpufreq_init(void) goto err_vdd_arm; } + locking_frequency =exynos_getspeed (0 ); +register_pm_notifier (&exynos_cpufreq_nb);if (cpufreq_register_driver (&exynos_driver)) {
drivers/crypto/ux500/cryp/cryp_core.c +1 -1
@@ -1750,7 +1750,7 @@ static struct platform_driver cryp_driver = { .shutdown = ux500_cryp_shutdown, .driver = { .owner = THIS_MODULE, - .name = "cryp1" + .name = "cryp1", .pm = &ux500_cryp_pm, } };
drivers/eisa/pci_eisa.c +46 -21
87 lines not on this page · raw message
drivers/gpio/gpio-stmpe.c +11 -4
@@ -307,11 +307,15 @@ static const struct irq_domain_ops stmpe_gpio_irq_simple_ops = { .xlate = irq_domain_xlate_twocell, }; -static int stmpe_gpio_irq_init (struct stmpe_gpio *stmpe_gpio) +static int stmpe_gpio_irq_init (struct stmpe_gpio *stmpe_gpio, +struct device_node *np) { -int base = stmpe_gpio->irq_base; +int base =0 ; - stmpe_gpio->domain =irq_domain_add_simple (NULL , +if (!np) + base = stmpe_gpio->irq_base; + + stmpe_gpio->domain =irq_domain_add_simple (np, stmpe_gpio->chip.ngpio, base, &stmpe_gpio_irq_simple_ops, stmpe_gpio);if (!stmpe_gpio->domain) {
@@ -346,6 +350,9 @@ static int stmpe_gpio_probe(struct platform_device *pdev) stmpe_gpio->chip = template_chip; stmpe_gpio->chip.ngpio = stmpe->num_gpios; stmpe_gpio->chip.dev = &pdev->dev; +#ifdef CONFIG_OF + stmpe_gpio->chip.of_node = np; +#endif stmpe_gpio->chip.base = pdata ? pdata->gpio_base :-1 ;if (pdata)
@@ -366,7 +373,7 @@ static int stmpe_gpio_probe(struct platform_device *pdev) goto out_free;if (irq >=0 ) { - ret =stmpe_gpio_irq_init (stmpe_gpio); + ret =stmpe_gpio_irq_init (stmpe_gpio, np);if (ret) goto out_disable;
drivers/gpu/drm/drm_fops.c +4 -2
@@ -123,6 +123,7 @@ int drm_open(struct inode *inode, struct file *filp)int retcode =0 ;int need_setup =0 ;struct address_space *old_mapping; +struct address_space *old_imapping; minor =idr_find (&drm_minors_idr, minor_id);if (!minor)
@@ -137,6 +138,7 @@ int drm_open(struct inode *inode, struct file *filp)if (!dev->open_count++) need_setup =1 ;mutex_lock (&dev->struct_mutex); + old_imapping = inode->i_mapping; old_mapping = dev->dev_mapping;if (old_mapping ==NULL ) dev->dev_mapping = &inode->i_data;
@@ -159,8 +161,8 @@ int drm_open(struct inode *inode, struct file *filp) err_undo:mutex_lock (&dev->struct_mutex); - filp->f_mapping = old_mapping; - inode->i_mapping = old_mapping; + filp->f_mapping = old_imapping; + inode->i_mapping = old_imapping; iput(container_of(dev->dev_mapping, struct inode, i_data)); dev->dev_mapping = old_mapping;mutex_unlock (&dev->struct_mutex);
drivers/gpu/drm/i915/i915_gem_execbuffer.c +1 -1
@@ -43,7 +43,7 @@ eb_create(int size) {struct eb_objects *eb;int count =PAGE_SIZE /sizeof (struct hlist_head ) /2 ; -BUILD_BUG_ON (!is_power_of_2 (PAGE_SIZE /sizeof (struct hlist_head ))); +BUILD_BUG_ON_NOT_POWER_OF_2 (PAGE_SIZE /sizeof (struct hlist_head ));while (count > size) count >>=1 ; eb = kzalloc(count*sizeof(struct hlist_head) +
drivers/gpu/drm/i915/intel_crt.c +17 -23
@@ -45,6 +45,9 @@struct intel_crt {struct intel_encoder base; +/* DPMS state is stored in the connector, which we need in the +* encoder's enable/disable callbacks */ +struct intel_connector *connector;bool force_hotplug_required;u32 adpa_reg; };
@@ -81,29 +84,6 @@ static bool intel_crt_get_hw_state(struct intel_encoder *encoder,return true; } -static void intel_disable_crt (struct intel_encoder *encoder) -{ -struct drm_i915_private *dev_priv = encoder->base.dev->dev_private; -struct intel_crt *crt =intel_encoder_to_crt (encoder); -u32 temp; - - temp =I915_READ (crt->adpa_reg); - temp |=ADPA_HSYNC_CNTL_DISABLE |ADPA_VSYNC_CNTL_DISABLE ; - temp &= ~ADPA_DAC_ENABLE ; -I915_WRITE (crt->adpa_reg, temp); -} - -static void intel_enable_crt (struct intel_encoder *encoder) -{ -struct drm_i915_private *dev_priv = encoder->base.dev->dev_private; -struct intel_crt *crt =intel_encoder_to_crt (encoder); -u32 temp; - - temp =I915_READ (crt->adpa_reg); - temp |=ADPA_DAC_ENABLE ; -I915_WRITE (crt->adpa_reg, temp); -} -/* Note: The caller is required to filter out dpms modes not supported by the * platform. */ static void intel_crt_set_dpms (struct intel_encoder *encoder,int mode)
@@ -135,6 +115,19 @@ static void intel_crt_set_dpms(struct intel_encoder *encoder, int mode)I915_WRITE (crt->adpa_reg, temp); } +static void intel_disable_crt (struct intel_encoder *encoder) +{ +intel_crt_set_dpms (encoder,DRM_MODE_DPMS_OFF ); +} + +static void intel_enable_crt (struct intel_encoder *encoder) +{ +struct intel_crt *crt =intel_encoder_to_crt (encoder); + +intel_crt_set_dpms (encoder, crt->connector->base.dpms); +} + +static void intel_crt_dpms (struct drm_connector *connector,int mode) {struct drm_device *dev = connector->dev;
@@ -746,6 +739,7 @@ void intel_crt_init(struct drm_device *dev) } connector = &intel_connector->base; + crt->connector = intel_connector;drm_connector_init (dev, &intel_connector->base, &intel_crt_connector_funcs,DRM_MODE_CONNECTOR_VGA );
drivers/gpu/drm/i915/intel_display.c +9 -0
@@ -8901,6 +8901,15 @@ static struct intel_quirk intel_quirks[] = {/* Acer Aspire 4736Z */ { 0x2a42, 0x1025, 0x0260, quirk_invert_brightness }, + +/* Acer/eMachines G725 */ + { 0x2a42, 0x1025, 0x0210, quirk_invert_brightness }, + +/* Acer/eMachines e725 */ + { 0x2a42, 0x1025, 0x0212, quirk_invert_brightness }, + +/* Acer/Packard Bell NCL20 */ + { 0x2a42, 0x1025, 0x034b, quirk_invert_brightness }, };static void intel_init_quirks (struct drm_device *dev)
drivers/gpu/drm/mgag200/mgag200_mode.c +3 -10
@@ -751,8 +751,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,int i;unsigned char misc =0 ;unsigned char ext_vga[6 ]; -unsigned char ext_vga_index24; -unsigned char dac_index90 =0 ;u8 bppshift;static unsigned char dacvalue[] = {
@@ -803,7 +801,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc, option2 =0x0000b000 ;break ;case G200_ER : - dac_index90 =0 ;break ; }
@@ -852,10 +849,8 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,WREG_DAC (i, dacvalue[i]); } -if (mdev->type ==G200_ER ) { -WREG_DAC (0x90 , dac_index90); - } - +if (mdev->type ==G200_ER ) +WREG_DAC (0x90 ,0 );if (option)pci_write_config_dword (dev->pdev,PCI_MGA_OPTION , option);
@@ -952,8 +947,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,if (mdev->type ==G200_WB ) ext_vga[1 ] |=0x88 ; - ext_vga_index24 =0x05 ; -/* Set pixel clocks */ misc =0x2d ;WREG8 (MGA_MISC_OUT , misc);
@@ -965,7 +958,7 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc, }if (mdev->type ==G200_ER ) -WREG_ECRT (24 , ext_vga_index24); +WREG_ECRT (0x24 ,0x5 );if (mdev->type ==G200_EV ) {WREG_ECRT (6 ,0 );
drivers/gpu/drm/nouveau/nouveau_abi16.c +10 -8
@@ -386,7 +386,7 @@ nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS)struct nouveau_drm *drm =nouveau_drm (dev);struct nouveau_device *device =nv_device (drm->device);struct nouveau_abi16 *abi16 =nouveau_abi16_get (file_priv, dev); -struct nouveau_abi16_chan *chan, *temp; +struct nouveau_abi16_chan *chan =NULL , *temp;struct nouveau_abi16_ntfy *ntfy;struct nouveau_object *object;struct nv_dma_class args = {};
@@ -399,10 +399,11 @@ nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS)if (unlikely (nv_device (abi16->device)->card_type >=NV_C0 ))return nouveau_abi16_put (abi16, -EINVAL ); -list_for_each_entry_safe (chan, temp, &abi16->channels, head) { -if (chan->chan->handle == (NVDRM_CHAN | info->channel)) +list_for_each_entry (temp, &abi16->channels, head) { +if (temp->chan->handle == (NVDRM_CHAN | info->channel)) { + chan = temp;break ; - chan =NULL ; + } }if (!chan)
@@ -454,17 +455,18 @@ nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS) {struct drm_nouveau_gpuobj_free *fini = data;struct nouveau_abi16 *abi16 =nouveau_abi16_get (file_priv, dev); -struct nouveau_abi16_chan *chan, *temp; +struct nouveau_abi16_chan *chan =NULL , *temp;struct nouveau_abi16_ntfy *ntfy;int ret;if (unlikely (!abi16))return -ENOMEM ; -list_for_each_entry_safe (chan, temp, &abi16->channels, head) { -if (chan->chan->handle == (NVDRM_CHAN | fini->channel)) +list_for_each_entry (temp, &abi16->channels, head) { +if (temp->chan->handle == (NVDRM_CHAN | fini->channel)) { + chan = temp;break ; - chan =NULL ; + } }if (!chan)
drivers/hid/hid-magicmouse.c +20 -9
@@ -462,6 +462,21 @@ static int magicmouse_input_mapping(struct hid_device *hdev,return 0 ; } +static void magicmouse_input_configured (struct hid_device *hdev, +struct hid_input *hi) + +{ +struct magicmouse_sc *msc =hid_get_drvdata (hdev); + +int ret =magicmouse_setup_input (msc->input, hdev); +if (ret) { +hid_err (hdev,"magicmouse setup input failed (%d)\n" , ret); +/* clean msc->input to notify probe() of the failure */ + msc->input =NULL ; + } +} + +static int magicmouse_probe (struct hid_device *hdev,const struct hid_device_id *id) {
@@ -493,15 +508,10 @@ static int magicmouse_probe(struct hid_device *hdev, goto err_free; } -/* We do this after hid-input is done parsing reports so that -* hid-input uses the most natural button and axis IDs. -*/ -if (msc->input) { - ret =magicmouse_setup_input (msc->input, hdev); -if (ret) { -hid_err (hdev,"magicmouse setup input failed (%d)\n" , ret); - goto err_stop_hw; - } +if (!msc->input) { +hid_err (hdev,"magicmouse input not registered\n" ); + ret = -ENOMEM ; + goto err_stop_hw; }if (id->product ==USB_DEVICE_ID_APPLE_MAGICMOUSE )
@@ -568,6 +578,7 @@ static struct hid_driver magicmouse_driver = { .remove = magicmouse_remove, .raw_event = magicmouse_raw_event, .input_mapping = magicmouse_input_mapping, + .input_configured = magicmouse_input_configured, };static int __init magicmouse_init (void )
drivers/hwspinlock/hwspinlock_core.c +2 -0
@@ -416,6 +416,8 @@ static int __hwspin_lock_request(struct hwspinlock *hwlock) ret =pm_runtime_get_sync (dev);if (ret <0 ) {dev_err (dev,"%s: can't power on device\n" , __func__); +pm_runtime_put_noidle (dev); +module_put (dev->driver->owner);return ret; }
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +9 -2
@@ -7858,12 +7858,19 @@ static int __init ixgbe_init_module(void)ixgbe_dbg_init ();#endif /* CONFIG_DEBUG_FS */ + ret =pci_register_driver (&ixgbe_driver); +if (ret) { +#ifdef CONFIG_DEBUG_FS +ixgbe_dbg_exit (); +#endif /* CONFIG_DEBUG_FS */ +return ret; + } +#ifdef CONFIG_IXGBE_DCA dca_register_notify (&dca_notifier);#endif - ret =pci_register_driver (&ixgbe_driver); -return ret; +return 0 ; }module_init (ixgbe_init_module);
drivers/net/ethernet/realtek/r8169.c +25 -3
@@ -3819,6 +3819,30 @@ static void rtl_init_mdio_ops(struct rtl8169_private *tp) } } +static void rtl_speed_down (struct rtl8169_private *tp) +{ +u32 adv; +int lpa; + +rtl_writephy (tp,0x1f ,0x0000 ); + lpa =rtl_readphy (tp,MII_LPA ); + +if (lpa & (LPA_10HALF |LPA_10FULL )) + adv = ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full; +else if (lpa & (LPA_100HALF |LPA_100FULL )) + adv = ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full | + ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full; +else + adv = ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full | + ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full | + (tp->mii.supports_gmii ? + ADVERTISED_1000baseT_Half | + ADVERTISED_1000baseT_Full :0 ); + +rtl8169_set_speed (tp->dev,AUTONEG_ENABLE ,SPEED_1000 ,DUPLEX_FULL , + adv); +} +static void rtl_wol_suspend_quirk (struct rtl8169_private *tp) {void __iomem *ioaddr = tp->mmio_addr;
@@ -3849,9 +3873,7 @@ static bool rtl_wol_pll_power_down(struct rtl8169_private *tp)if (!(__rtl8169_get_wol (tp) &WAKE_ANY ))return false; -rtl_writephy (tp,0x1f ,0x0000 ); -rtl_writephy (tp,MII_BMCR ,0x0000 ); - +rtl_speed_down (tp);rtl_wol_suspend_quirk (tp);return true;
drivers/net/wireless/mwifiex/cfg80211.c +2 -1
@@ -1846,7 +1846,8 @@ mwifiex_cfg80211_scan(struct wiphy *wiphy, } } -for (i =0 ; i < request->n_channels; i++) { +for (i =0 ; i <min_t (u32, request->n_channels, +MWIFIEX_USER_SCAN_CHAN_MAX ); i++) { chan = request->channels[i]; priv->user_scan_cfg->chan_list[i].chan_number = chan->hw_value; priv->user_scan_cfg->chan_list[i].radio_type = chan->band;
drivers/net/wireless/mwifiex/scan.c +9 -2
@@ -1371,8 +1371,10 @@ int mwifiex_scan_networks(struct mwifiex_private *priv,queue_work (adapter->workqueue, &adapter->main_work);/* Perform internal scan synchronously */ -if (!priv->scan_request) +if (!priv->scan_request) { +dev_dbg (adapter->dev,"wait internal scan\n" );mwifiex_wait_queue_complete (adapter, cmd_node); + } }else {spin_unlock_irqrestore (&adapter->scan_pending_q_lock, flags);
@@ -1768,7 +1770,12 @@ check_next_scan:/* Need to indicate IOCTL complete */ if (adapter->curr_cmd->wait_q_enabled) { adapter->cmd_wait_q.status =0 ; -mwifiex_complete_cmd (adapter, adapter->curr_cmd); +if (!priv->scan_request) { +dev_dbg (adapter->dev, +"complete internal scan\n" ); +mwifiex_complete_cmd (adapter, + adapter->curr_cmd); + } }if (priv->report_scan_result) priv->report_scan_result = false;
drivers/net/wireless/rt2x00/rt2x00pci.c +2 -2
@@ -52,8 +52,8 @@ int rt2x00pci_regbusy_read(struct rt2x00_dev *rt2x00dev,udelay (REGISTER_BUSY_DELAY ); } -ERROR (rt2x00dev,"Indirect register access failed: " -"offset=0x%.08x, value=0x%.08x\n" , offset, *reg); +printk_once (KERN_ERR "%s() Indirect register access failed: " +"offset=0x%.08x, value=0x%.08x\n" , __func__, offset, *reg); *reg = ~0 ;return 0 ;
drivers/pci/pci-acpi.c +8 -7
@@ -53,14 +53,15 @@ static void pci_acpi_wake_dev(acpi_handle handle, u32 event, void *context)return ; } -if (!pci_dev->pm_cap || !pci_dev->pme_support - ||pci_check_pme_status (pci_dev)) { -if (pci_dev->pme_poll) - pci_dev->pme_poll = false; +/* Clear PME Status if set. */ +if (pci_dev->pme_support) +pci_check_pme_status (pci_dev); -pci_wakeup_event (pci_dev); -pm_runtime_resume (&pci_dev->dev); - } +if (pci_dev->pme_poll) + pci_dev->pme_poll = false; + +pci_wakeup_event (pci_dev); +pm_runtime_resume (&pci_dev->dev);if (pci_dev->subordinate)pci_pme_wakeup_bus (pci_dev->subordinate);
drivers/pci/pcie/portdrv_pci.c +0 -13
@@ -185,14 +185,6 @@ static const struct dev_pm_ops pcie_portdrv_pm_ops = {#endif /* !PM */ /* -* PCIe port runtime suspend is broken for some chipsets, so use a -* black list to disable runtime PM for these chipsets. -*/ -static const struct pci_device_id port_runtime_pm_black_list[] = { - {/* end: all zeroes */ } -}; - -/* * pcie_portdrv_probe - Probe PCI-Express port devices * @dev: PCI-Express port device being probed *
@@ -225,16 +217,11 @@ static int pcie_portdrv_probe(struct pci_dev *dev,* it by default. */ dev->d3cold_allowed = false; -if (!pci_match_id (port_runtime_pm_black_list, dev)) -pm_runtime_put_noidle (&dev->dev); -return 0 ; }static void pcie_portdrv_remove (struct pci_dev *dev) { -if (!pci_match_id (port_runtime_pm_black_list, dev)) -pm_runtime_get_noresume (&dev->dev);pcie_port_device_remove (dev);pci_disable_device (dev); }
drivers/platform/x86/msi-wmi.c +3 -1
@@ -176,7 +176,7 @@ static void msi_wmi_notify(u32 value, void *context)pr_debug ("Suppressed key event 0x%X - " "Last press was %lld us ago\n" , key->code,ktime_to_us (diff)); -return ; + goto msi_wmi_notify_exit; } last_pressed[key->code -SCANCODE_BASE ] = cur;
@@ -195,6 +195,8 @@ static void msi_wmi_notify(u32 value, void *context)pr_info ("Unknown key pressed - %x\n" , eventcode); }else pr_info ("Unknown event received\n" ); + +msi_wmi_notify_exit:kfree (response.pointer); }
drivers/remoteproc/Kconfig +1 -1
@@ -5,7 +5,7 @@ config REMOTEPROC tristate depends on EXPERIMENTAL depends on HAS_DMA - select FW_CONFIG + select FW_LOADER select VIRTIO config OMAP_REMOTEPROC
drivers/remoteproc/remoteproc_core.c +3 -1
@@ -370,10 +370,12 @@ static int rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc,/* it is now safe to add the virtio device */ ret =rproc_add_virtio_dev (rvdev, rsc->id);if (ret) - goto free_rvdev; + goto remove_rvdev;return 0 ; +remove_rvdev: +list_del (&rvdev->node); free_rvdev:kfree (rvdev);return ret;
drivers/remoteproc/ste_modem_rproc.c +6 -1
@@ -240,6 +240,8 @@ static int sproc_drv_remove(struct platform_device *pdev)/* Unregister as remoteproc device */ rproc_del (sproc->rproc); +dma_free_coherent (sproc->rproc->dev.parent,SPROC_FW_SIZE , + sproc->fw_addr, sproc->fw_dma_addr);rproc_put (sproc->rproc); mdev->drv_data =NULL ;
@@ -297,10 +299,13 @@ static int sproc_probe(struct platform_device *pdev)/* Register as a remoteproc device */ err =rproc_add (rproc);if (err) - goto free_rproc; + goto free_mem;return 0 ; +free_mem: +dma_free_coherent (rproc->dev.parent,SPROC_FW_SIZE , + sproc->fw_addr, sproc->fw_dma_addr); free_rproc:/* Reset device data upon error */ mdev->drv_data =NULL ;
drivers/rtc/rtc-at91rm9200.c +19 -31
136 lines not on this page · raw message
drivers/rtc/rtc-at91rm9200.h +1 -0
@@ -64,6 +64,7 @@#define AT91_RTC_SCCR 0x1c/* Status Clear Command Register */ #define AT91_RTC_IER 0x20/* Interrupt Enable Register */ #define AT91_RTC_IDR 0x24/* Interrupt Disable Register */ +#define AT91_RTC_IMR 0x28/* Interrupt Mask Register */ #define AT91_RTC_VER 0x2c/* Valid Entry Register */ #define AT91_RTC_NVTIM (1 << 0)/* Non valid Time */
drivers/spi/spi-mpc512x-psc.c +1 -1
@@ -164,7 +164,7 @@ static int mpc512x_psc_spi_transfer_rxtx(struct spi_device *spi,for (i = count; i >0 ; i--) { data = tx_buf ? *tx_buf++ :0 ; -if (len ==EOFBYTE ) +if (len ==EOFBYTE && t->cs_change)setbits32 (&fifo->txcmd, MPC512x_PSC_FIFO_EOF);out_8 (&fifo->txdata_8, data); len--;
drivers/spi/spi-s3c64xx.c +25 -16
59 lines not on this page · raw message
drivers/thermal/thermal_sys.c +1 -0
@@ -1807,6 +1807,7 @@ static int __init thermal_init(void)idr_destroy (&thermal_cdev_idr);mutex_destroy (&thermal_idr_lock);mutex_destroy (&thermal_list_lock); +return result; } result =genetlink_init ();return result;
drivers/tty/serial/8250/8250_pnp.c +5 -7
@@ -429,7 +429,6 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) {struct uart_8250_port uart;int ret, line, flags = dev_id->driver_data; -struct resource *res =NULL ;if (flags &UNKNOWN_DEV ) { ret =serial_pnp_guess_board (dev);
@@ -440,12 +439,11 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)memset (&uart,0 ,sizeof (uart));if (pnp_irq_valid (dev,0 )) uart.port.irq =pnp_irq (dev,0 ); -if ((flags &CIR_PORT ) &&pnp_port_valid (dev,2 )) - res =pnp_get_resource (dev,IORESOURCE_IO ,2 ); -else if (pnp_port_valid (dev,0 )) - res =pnp_get_resource (dev,IORESOURCE_IO ,0 ); -if (pnp_resource_enabled (res)) { - uart.port.iobase = res->start; +if ((flags &CIR_PORT ) &&pnp_port_valid (dev,2 )) { + uart.port.iobase =pnp_port_start (dev,2 ); + uart.port.iotype =UPIO_PORT ; + }else if (pnp_port_valid (dev,0 )) { + uart.port.iobase =pnp_port_start (dev,0 ); uart.port.iotype =UPIO_PORT ; }else if (pnp_mem_valid (dev,0 )) { uart.port.mapbase =pnp_mem_start (dev,0 );
drivers/vfio/pci/vfio_pci.c +2 -1
@@ -331,6 +331,7 @@ static long vfio_pci_ioctl(void *device_data,if (!(hdr.flags &VFIO_IRQ_SET_DATA_NONE )) {size_t size; +int max =vfio_pci_get_irq_count (vdev, hdr.index);if (hdr.flags &VFIO_IRQ_SET_DATA_BOOL ) size =sizeof (uint8_t );
@@ -340,7 +341,7 @@ static long vfio_pci_ioctl(void *device_data,return -EINVAL ;if (hdr.argsz - minsz < hdr.count * size || - hdr.count >vfio_pci_get_irq_count (vdev, hdr.index)) + hdr.start >= max || hdr.start + hdr.count > max)return -EINVAL ; data = memdup_user((void __user *)(arg + minsz),
fs/nfs/nfs4client.c +29 -16
97 lines not on this page · raw message
fs/nfs/nfs4state.c +7 -1
@@ -1877,7 +1877,13 @@ again: status =PTR_ERR (clnt);break ; } - clp->cl_rpcclient = clnt; +/* Note: this is safe because we haven't yet marked the +* client as ready, so we are the only user of +* clp->cl_rpcclient +*/ + clnt =xchg (&clp->cl_rpcclient, clnt); +rpc_shutdown_client (clnt); + clnt = clp->cl_rpcclient; goto again;case -NFS4ERR_MINOR_VERS_MISMATCH :
fs/reiserfs/xattr.c +2 -2
@@ -187,8 +187,8 @@ fill_with_dentries(void *buf, const char *name, int namelen, loff_t offset,if (dbuf->count ==ARRAY_SIZE (dbuf->dentries))return -ENOSPC ; -if (name[0 ] =='.' && (name[1 ] =='\0' || - (name[1 ] =='.' && name[2 ] =='\0' ))) +if (name[0 ] =='.' && (namelen <2 || + (namelen ==2 && name[1 ] =='.' )))return 0 ; dentry =lookup_one_len (name, dbuf->xadir, namelen);
fs/ubifs/super.c +6 -6
@@ -1568,6 +1568,12 @@ static int ubifs_remount_rw(struct ubifs_info *c) c->remounting_rw =1 ; c->ro_mount =0 ; +if (c->space_fixup) { + err =ubifs_fixup_free_space (c); +if (err) +return err; + } + err =check_free_space (c);if (err) goto out;
@@ -1684,12 +1690,6 @@ static int ubifs_remount_rw(struct ubifs_info *c) err =dbg_check_space_info (c); } -if (c->space_fixup) { - err =ubifs_fixup_free_space (c); -if (err) - goto out; - } -mutex_unlock (&c->umount_mutex);return err;
include/linux/ata.h +1 -1
@@ -954,7 +954,7 @@ static inline int atapi_cdb_len(const u16 *dev_id) } } -static inline bool atapi_command_packet_set (const u16 *dev_id) +static inline int atapi_command_packet_set (const u16 *dev_id) {return (dev_id[ATA_ID_CONFIG ] >>8 ) &0x1f ; }
include/linux/libata.h +1 -0
@@ -398,6 +398,7 @@ enum {ATA_HORKAGE_NOSETXFER = (1 <<14 ),/* skip SETXFER, SATA only */ ATA_HORKAGE_BROKEN_FPDMA_AA = (1 <<15 ),/* skip AA */ ATA_HORKAGE_DUMP_ID = (1 <<16 ),/* dump IDENTIFY data */ + ATA_HORKAGE_MAX_SEC_LBA48 = (1 << 17), /* Set max sects to 65535 *//* DMA mask for user DMA control: User visible values; DO NOT renumber */
include/linux/preempt.h +14 -8
@@ -93,14 +93,20 @@ do { \#else /* !CONFIG_PREEMPT_COUNT */ -#define preempt_disable () do { } while (0) -#define sched_preempt_enable_no_resched () do { } while (0) -#define preempt_enable_no_resched () do { } while (0) -#define preempt_enable () do { } while (0) - -#define preempt_disable_notrace () do { } while (0) -#define preempt_enable_no_resched_notrace () do { } while (0) -#define preempt_enable_notrace () do { } while (0) +/* +* Even if we don't have any preemption, we need preempt disable/enable +* to be barriers, so that we don't have things like get_user/put_user +* that can cause faults and scheduling migrate into our preempt-protected +* region. +*/ +#define preempt_disable () barrier() +#define sched_preempt_enable_no_resched () barrier() +#define preempt_enable_no_resched () barrier() +#define preempt_enable () barrier() + +#define preempt_disable_notrace () barrier() +#define preempt_enable_no_resched_notrace () barrier() +#define preempt_enable_notrace () barrier()#endif /* CONFIG_PREEMPT_COUNT */
include/linux/spinlock_up.h +18 -11
@@ -16,7 +16,10 @@* In the debug case, 1 means unlocked, 0 means locked. (the values * are inverted, to catch initialization bugs) * -* No atomicity anywhere, we are on UP. +* No atomicity anywhere, we are on UP. However, we still need +* the compiler barriers, because we do not want the compiler to +* move potentially faulting instructions (notably user accesses) +* into the locked sequence, resulting in non-atomic execution. */ #ifdef CONFIG_DEBUG_SPINLOCK
@@ -25,6 +28,7 @@static inline void arch_spin_lock (arch_spinlock_t *lock) { lock->slock =0 ; +barrier (); } static inline void
@@ -32,6 +36,7 @@ arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) {local_irq_save (flags); lock->slock =0 ; +barrier (); }static inline int arch_spin_trylock (arch_spinlock_t *lock)
@@ -39,32 +44,34 @@ static inline int arch_spin_trylock(arch_spinlock_t *lock)char oldval = lock->slock; lock->slock =0 ; +barrier (); return oldval > 0; }static inline void arch_spin_unlock (arch_spinlock_t *lock) { +barrier (); lock->slock =1 ; }/* * Read-write spinlocks. No debug version. */ -#define arch_read_lock (lock) do { (void)(lock); } while (0) -#define arch_write_lock (lock) do { (void)(lock); } while (0) -#define arch_read_trylock (lock) ({ (void)(lock); 1; }) -#define arch_write_trylock (lock) ({ (void)(lock); 1; }) -#define arch_read_unlock (lock) do { (void)(lock); } while (0) -#define arch_write_unlock (lock) do { (void)(lock); } while (0) +#define arch_read_lock (lock) do { barrier(); (void)(lock); } while (0) +#define arch_write_lock (lock) do { barrier(); (void)(lock); } while (0) +#define arch_read_trylock (lock) ({ barrier(); (void)(lock); 1; }) +#define arch_write_trylock (lock) ({ barrier(); (void)(lock); 1; }) +#define arch_read_unlock (lock) do { barrier(); (void)(lock); } while (0) +#define arch_write_unlock (lock) do { barrier(); (void)(lock); } while (0)#else /* DEBUG_SPINLOCK */ #define arch_spin_is_locked (lock) ((void)(lock), 0)/* for sched.c and kernel_lock.c: */ -# define arch_spin_lock (lock) do { (void)(lock); } while (0) -# define arch_spin_lock_flags (lock, flags) do { (void)(lock); } while (0) -# define arch_spin_unlock (lock) do { (void)(lock); } while (0) -# define arch_spin_trylock (lock) ({ (void)(lock); 1; }) +# define arch_spin_lock (lock) do { barrier(); (void)(lock); } while (0) +# define arch_spin_lock_flags (lock, flags) do { barrier(); (void)(lock); } while (0) +# define arch_spin_unlock (lock) do { barrier(); (void)(lock); } while (0) +# define arch_spin_trylock (lock) ({ barrier(); (void)(lock); 1; })#endif /* DEBUG_SPINLOCK */ #define arch_spin_is_contended (lock) (((void)(lock), 0))
kernel/trace/ftrace.c +2 -6
@@ -4537,12 +4537,8 @@ ftrace_enable_sysctl(struct ctl_table *table, int write,ftrace_startup_sysctl ();/* we are starting ftrace again */ -if (ftrace_ops_list != &ftrace_list_end) { -if (ftrace_ops_list->next == &ftrace_list_end) - ftrace_trace_function = ftrace_ops_list->func; -else - ftrace_trace_function = ftrace_ops_list_func; - } +if (ftrace_ops_list != &ftrace_list_end) +update_ftrace_function (); }else {/* stopping ftrace calls (just send to ftrace_stub) */
mm/mmap.c +1 -1
@@ -1922,7 +1922,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)/* Check the cache first. */ /* (Cache hit rate is typically around 35%.) */ - vma = mm->mmap_cache; + vma =ACCESS_ONCE (mm->mmap_cache);if (!(vma && vma->vm_end > addr && vma->vm_start <= addr)) {struct rb_node *rb_node;
mm/nommu.c +1 -1
@@ -819,7 +819,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)struct vm_area_struct *vma;/* check the cache first */ - vma = mm->mmap_cache; + vma =ACCESS_ONCE (mm->mmap_cache);if (vma && vma->vm_start <= addr && vma->vm_end > addr)return vma;
net/can/gw.c +3 -3
@@ -436,7 +436,7 @@ static int cgw_notifier(struct notifier_block *nb,if (gwj->src.dev == dev || gwj->dst.dev == dev) {hlist_del (&gwj->list);cgw_unregister_filter (gwj); -kfree (gwj); +kmem_cache_free (cgw_cache, gwj); } } }
@@ -829,7 +829,7 @@ static void cgw_remove_all_jobs(void)hlist_for_each_entry_safe (gwj, n, nx, &cgw_list, list) {hlist_del (&gwj->list);cgw_unregister_filter (gwj); -kfree (gwj); +kmem_cache_free (cgw_cache, gwj); } }
@@ -885,7 +885,7 @@ static int cgw_remove_job(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)hlist_del (&gwj->list);cgw_unregister_filter (gwj); -kfree (gwj); +kmem_cache_free (cgw_cache, gwj); err =0 ;break ; }
net/mac80211/cfg.c +4 -2
@@ -2499,7 +2499,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,list_del (&dep->list);mutex_unlock (&local->mtx); -ieee80211_roc_notify_destroy (dep); +ieee80211_roc_notify_destroy (dep, true);return 0 ; }
@@ -2539,7 +2539,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,ieee80211_start_next_roc (local);mutex_unlock (&local->mtx); -ieee80211_roc_notify_destroy (found); +ieee80211_roc_notify_destroy (found, true); }else {/* work may be pending so use it all the time */ found->abort = true;
@@ -2549,6 +2549,8 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,/* work will clean up etc */ flush_delayed_work (&found->work); +WARN_ON (!found->to_be_freed); +kfree (found); }return 0 ;
net/mac80211/ieee80211_i.h +2 -1
@@ -346,6 +346,7 @@ struct ieee80211_roc_work {struct ieee80211_channel *chan;bool started, abort, hw_begun, notified; +bool to_be_freed;unsigned long hw_start_time;
@@ -1363,7 +1364,7 @@ void ieee80211_offchannel_return(struct ieee80211_local *local);void ieee80211_roc_setup (struct ieee80211_local *local);void ieee80211_start_next_roc (struct ieee80211_local *local);void ieee80211_roc_purge (struct ieee80211_sub_if_data *sdata); -void ieee80211_roc_notify_destroy (struct ieee80211_roc_work *roc); +void ieee80211_roc_notify_destroy (struct ieee80211_roc_work *roc,bool free);void ieee80211_sw_roc_work (struct work_struct *work);void ieee80211_handle_roc_started (struct ieee80211_roc_work *roc);
net/mac80211/offchannel.c +17 -6
@@ -299,10 +299,13 @@ void ieee80211_start_next_roc(struct ieee80211_local *local) } } -void ieee80211_roc_notify_destroy (struct ieee80211_roc_work *roc) +void ieee80211_roc_notify_destroy (struct ieee80211_roc_work *roc,bool free) {struct ieee80211_roc_work *dep, *tmp; +if (WARN_ON (roc->to_be_freed)) +return ; +/* was never transmitted */ if (roc->frame) { cfg80211_mgmt_tx_status(&roc->sdata->wdev,
@@ -318,9 +321,12 @@ void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc) GFP_KERNEL);list_for_each_entry_safe (dep, tmp, &roc->dependents, list) -ieee80211_roc_notify_destroy (dep); +ieee80211_roc_notify_destroy (dep, true); -kfree (roc); +if (free) +kfree (roc); +else + roc->to_be_freed = true; }void ieee80211_sw_roc_work (struct work_struct *work)
@@ -333,6 +339,9 @@ void ieee80211_sw_roc_work(struct work_struct *work)mutex_lock (&local->mtx); +if (roc->to_be_freed) + goto out_unlock; +if (roc->abort) goto finish;
@@ -372,7 +381,7 @@ void ieee80211_sw_roc_work(struct work_struct *work) finish:list_del (&roc->list); started = roc->started; -ieee80211_roc_notify_destroy (roc); +ieee80211_roc_notify_destroy (roc, !roc->abort);if (started) {drv_flush (local, false);
@@ -412,7 +421,7 @@ static void ieee80211_hw_roc_done(struct work_struct *work)list_del (&roc->list); -ieee80211_roc_notify_destroy (roc); +ieee80211_roc_notify_destroy (roc, true);/* if there's another roc, start it now */ ieee80211_start_next_roc (local);
@@ -462,12 +471,14 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata)list_for_each_entry_safe (roc, tmp, &tmp_list, list) {if (local->ops->remain_on_channel) {list_del (&roc->list); -ieee80211_roc_notify_destroy (roc); +ieee80211_roc_notify_destroy (roc, true); }else {ieee80211_queue_delayed_work (&local->hw, &roc->work,0 );/* work will clean up etc */ flush_delayed_work (&roc->work); +WARN_ON (!roc->to_be_freed); +kfree (roc); } }
net/sunrpc/clnt.c +1 -3
@@ -511,7 +511,7 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args, new =rpc_new_client (args, xprt);if (IS_ERR (new)) { err =PTR_ERR (new); - goto out_put; + goto out_err; }atomic_inc (&clnt->cl_count);
@@ -524,8 +524,6 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args, new->cl_chatty = clnt->cl_chatty;return new; -out_put: -xprt_put (xprt); out_err:dprintk ("RPC: %s: returned error %d\n" , __func__, err);return ERR_PTR (err);
sound/pci/hda/hda_codec.c +1 -1
@@ -173,7 +173,7 @@ const char *snd_hda_get_jack_type(u32 cfg)"Line Out" ,"Speaker" ,"HP Out" ,"CD" ,"SPDIF Out" ,"Digital Out" ,"Modem Line" ,"Modem Hand" ,"Line In" ,"Aux" ,"Mic" ,"Telephony" , -"SPDIF In" ,"Digitial In" ,"Reserved" ,"Other" +"SPDIF In" ,"Digital In" ,"Reserved" ,"Other" }; return jack_types[(cfg & AC_DEFCFG_DEVICE)
sound/pci/hda/hda_eld.c +1 -1
@@ -322,7 +322,7 @@ int snd_hdmi_get_eld(struct hdmi_eld *eld, struct hda_codec *codec, hda_nid_t nid) { int i; -int ret; +int ret =0 ;int size;unsigned char *buf;
sound/pci/hda/patch_realtek.c +3 -1
@@ -6720,7 +6720,8 @@ static int alc662_parse_auto_config(struct hda_codec *codec)const hda_nid_t *ssids;if (codec->vendor_id ==0x10ec0272 || codec->vendor_id ==0x10ec0663 || - codec->vendor_id ==0x10ec0665 || codec->vendor_id ==0x10ec0670 ) + codec->vendor_id ==0x10ec0665 || codec->vendor_id ==0x10ec0670 || + codec->vendor_id ==0x10ec0671 ) ssids = alc663_ssids;else ssids = alc662_ssids;
@@ -7173,6 +7174,7 @@ static const struct hda_codec_preset snd_hda_preset_realtek[] = { { .id = 0x10ec0665, .name = "ALC665", .patch = patch_alc662 }, { .id = 0x10ec0668, .name = "ALC668", .patch = patch_alc662 }, { .id = 0x10ec0670, .name = "ALC670", .patch = patch_alc662 }, + { .id = 0x10ec0671, .name = "ALC671", .patch = patch_alc662 }, { .id = 0x10ec0680, .name = "ALC680", .patch = patch_alc680 }, { .id = 0x10ec0880, .name = "ALC880", .patch = patch_alc880 }, { .id = 0x10ec0882, .name = "ALC882", .patch = patch_alc882 },
sound/soc/fsl/imx-ssi.c +5 -0
@@ -496,6 +496,8 @@ static void imx_ssi_ac97_reset(struct snd_ac97 *ac97)if (imx_ssi->ac97_reset) imx_ssi->ac97_reset (ac97); +/* First read sometimes fails, do a dummy read */ +imx_ssi_ac97_read (ac97,0 ); }static void imx_ssi_ac97_warm_reset (struct snd_ac97 *ac97)
@@ -504,6 +506,9 @@ static void imx_ssi_ac97_warm_reset(struct snd_ac97 *ac97)if (imx_ssi->ac97_warm_reset) imx_ssi->ac97_warm_reset (ac97); + +/* First read sometimes fails, do a dummy read */ +imx_ssi_ac97_read (ac97,0 ); }struct snd_ac97_bus_ops soc_ac97_ops = {
sound/soc/sh/dma-sh7760.c +2 -2
@@ -342,8 +342,8 @@ static int camelot_pcm_new(struct snd_soc_pcm_runtime *rtd)return 0 ; } -static struct snd_soc_platform sh7760_soc_platform = { - .pcm_ops = &camelot_pcm_ops, +static struct snd_soc_platform_driver sh7760_soc_platform = { + .ops = &camelot_pcm_ops, .pcm_new = camelot_pcm_new, .pcm_free = camelot_pcm_free, };
sound/soc/spear/spear_pcm.c +6 -6
@@ -149,9 +149,9 @@ static void spear_pcm_free(struct snd_pcm *pcm)static u64 spear_pcm_dmamask =DMA_BIT_MASK (32 ); -static int spear_pcm_new (struct snd_card *card, -struct snd_soc_dai *dai,struct snd_pcm *pcm) +static int spear_pcm_new (struct snd_soc_pcm_runtime *rtd) { +struct snd_card *card = rtd->card->snd_card;int ret;if (!card->dev->dma_mask)
@@ -159,16 +159,16 @@ static int spear_pcm_new(struct snd_card *card,if (!card->dev->coherent_dma_mask) card->dev->coherent_dma_mask =DMA_BIT_MASK (32 ); -if (dai->driver->playback.channels_min) { - ret =spear_pcm_preallocate_dma_buffer (pcm, +if (rtd->cpu_dai->driver->playback.channels_min) { + ret =spear_pcm_preallocate_dma_buffer (rtd->pcm,SNDRV_PCM_STREAM_PLAYBACK , spear_pcm_hardware.buffer_bytes_max);if (ret)return ret; } -if (dai->driver->capture.channels_min) { - ret =spear_pcm_preallocate_dma_buffer (pcm, +if (rtd->cpu_dai->driver->capture.channels_min) { + ret =spear_pcm_preallocate_dma_buffer (rtd->pcm,SNDRV_PCM_STREAM_CAPTURE , spear_pcm_hardware.buffer_bytes_max);if (ret)