Skip to contentSkip to conversation

Linux 2.6.31.2

DISCUSSION Greg KH 1 participant 2 messages Oct 5, 2009

Subsystems (62)
lore
Share & tools
lore

Greg KH

author
#0 lore raw

I'm announcing the release of the 2.6.31.2 kernel. All users of the 2.6.31 kernel series are very strongly encouraged to upgrade.

I'll also be replying to this message with a copy of the patch between 2.6.31.1 and 2.6.31.2

The updated 2.6.31.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.31.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.31.y.git;a=summary

thanks,

greg k-h

------------

 MAINTAINERS                                 |    6 
 Makefile                                    |    2 
 arch/alpha/kernel/core_marvel.c             |    2 
 arch/alpha/kernel/core_titan.c              |    2 
 arch/alpha/kernel/pci_impl.h                |    2 
 arch/alpha/kernel/pci_iommu.c               |    4 
 arch/arm/mach-pxa/sharpsl_pm.c              |    4 
 arch/powerpc/include/asm/pte-common.h       |    2 
 arch/powerpc/mm/pgtable.c                   |   19 +
 arch/x86/include/asm/elf.h                  |    2 
 arch/x86/include/asm/uv/uv_hub.h            |    2 
 arch/x86/kernel/cpu/cpufreq/powernow-k8.c   |   17 -
 arch/x86/kvm/mmu.c                          |    6 
 arch/x86/kvm/vmx.c                          |    6 
 arch/x86/kvm/x86.c                          |   15 -
 arch/x86/mm/Makefile                        |    5 
 arch/x86/mm/mmap.c                          |   17 +
 arch/x86/mm/pageattr.c                      |    1 
 arch/x86/xen/Makefile                       |    2 
 arch/x86/xen/enlighten.c                    |  139 ++++++++--
 arch/x86/xen/smp.c                          |    1 
 arch/x86/xen/spinlock.c                     |   28 +-
 drivers/acpi/pci_slot.c                     |    4 
 drivers/ata/ahci.c                          |    4 
 drivers/ata/pata_amd.c                      |    3 
 drivers/base/base.h                         |    2 
 drivers/base/bus.c                          |   23 -
 drivers/base/core.c                         |    2 
 drivers/char/agp/intel-agp.c                |   30 +-
 drivers/char/pty.c                          |    6 
 drivers/char/tty_io.c                       |    1 
 drivers/char/tty_port.c                     |   29 +-
 drivers/gpu/drm/i915/i915_drv.c             |    2 
 drivers/gpu/drm/i915/i915_gem.c             |   55 +---
 drivers/gpu/drm/i915/i915_gem_tiling.c      |   15 -
 drivers/gpu/drm/i915/i915_reg.h             |    6 
 drivers/gpu/drm/i915/intel_bios.c           |    3 
 drivers/gpu/drm/i915/intel_crt.c            |    9 
 drivers/gpu/drm/i915/intel_display.c        |   35 ++
 drivers/gpu/drm/i915/intel_lvds.c           |   11 
 drivers/gpu/drm/i915/intel_sdvo.c           |   96 +++++-
 drivers/hid/hid-core.c                      |    1 
 drivers/isdn/gigaset/interface.c            |   19 -
 drivers/media/video/em28xx/em28xx-cards.c   |   32 +-
 drivers/media/video/em28xx/em28xx.h         |    4 
 drivers/media/video/saa7134/saa7134-input.c |   56 +---
 drivers/media/video/saa7134/saa7134.h       |    4 
 drivers/message/fusion/mptbase.c            |   10 
 drivers/mfd/ab3100-core.c                   |    2 
 drivers/mmc/core/mmc.c                      |   10 
 drivers/mmc/core/sd.c                       |   10 
 drivers/mtd/chips/cfi_cmdset_0002.c         |   11 
 drivers/mtd/chips/cfi_util.c                |    4 
 drivers/mtd/nand/ndfc.c                     |    4 
 drivers/mtd/ofpart.c                        |   21 -
 drivers/net/can/vcan.c                      |    2 
 drivers/net/usb/kaweth.c                    |   18 -
 drivers/net/wireless/ath/ar9170/usb.c       |    2 
 drivers/net/wireless/ath/ath5k/ath5k.h      |    1 
 drivers/net/wireless/ath/ath5k/attach.c     |    2 
 drivers/net/wireless/ath/ath5k/base.c       |   55 +---
 drivers/net/wireless/ath/ath5k/reset.c      |  155 ++++++++---
 drivers/net/wireless/iwlwifi/iwl-1000.c     |    6 
 drivers/net/wireless/iwlwifi/iwl-3945.c     |   40 ++
 drivers/net/wireless/iwlwifi/iwl-4965.c     |   39 ++
 drivers/net/wireless/iwlwifi/iwl-5000.c     |   58 ++++
 drivers/net/wireless/iwlwifi/iwl-6000.c     |   25 +
 drivers/net/wireless/iwlwifi/iwl-agn.c      |   57 ++--
 drivers/net/wireless/iwlwifi/iwl-core.h     |   16 +
 drivers/net/wireless/iwlwifi/iwl-dev.h      |   43 ++-
 drivers/net/wireless/iwlwifi/iwl-eeprom.c   |  185 ++++++++++---
 drivers/net/wireless/iwlwifi/iwl-eeprom.h   |   10 
 drivers/net/wireless/iwlwifi/iwl-prph.h     |    5 
 drivers/net/wireless/iwlwifi/iwl-scan.c     |    3 
 drivers/net/wireless/iwlwifi/iwl3945-base.c |   45 +--
 drivers/net/wireless/p54/p54usb.c           |    1 
 drivers/pcmcia/at91_cf.c                    |    2 
 drivers/pcmcia/au1000_generic.c             |    2 
 drivers/pcmcia/bfin_cf_pcmcia.c             |    2 
 drivers/pcmcia/cs.c                         |    2 
 drivers/pcmcia/i82092.c                     |    2 
 drivers/pcmcia/i82365.c                     |    2 
 drivers/pcmcia/m32r_cfc.c                   |    2 
 drivers/pcmcia/m32r_pcc.c                   |    2 
 drivers/pcmcia/m8xx_pcmcia.c                |    2 
 drivers/pcmcia/omap_cf.c                    |    2 
 drivers/pcmcia/pd6729.c                     |    2 
 drivers/pcmcia/pxa2xx_base.c                |    2 
 drivers/pcmcia/sa1100_generic.c             |    2 
 drivers/pcmcia/sa1111_generic.c             |    2 
 drivers/pcmcia/tcic.c                       |    2 
 drivers/pcmcia/vrc4171_card.c               |    2 
 drivers/pcmcia/yenta_socket.c               |   88 +++---
 drivers/platform/x86/sony-laptop.c          |    6 
 drivers/platform/x86/thinkpad_acpi.c        |    8 
 drivers/serial/bfin_5xx.c                   |    4 
 drivers/serial/serial_cs.c                  |    1 
 drivers/usb/class/cdc-acm.c                 |    7 
 drivers/usb/class/cdc-wdm.c                 |   30 +-
 drivers/usb/class/usbtmc.c                  |   22 +
 drivers/usb/core/config.c                   |    2 
 drivers/usb/host/sl811-hcd.c                |    8 
 drivers/usb/host/xhci-dbg.c                 |    5 
 drivers/usb/host/xhci-hcd.c                 |  370 +++++++++++++++++++++-----
 drivers/usb/host/xhci-mem.c                 |   64 ++++
 drivers/usb/host/xhci-pci.c                 |   13 
 drivers/usb/host/xhci-ring.c                |  232 +++++++++++++++-
 drivers/usb/host/xhci.h                     |   41 ++
 drivers/usb/serial/ark3116.c                |   46 ---
 drivers/usb/serial/console.c                |   28 +-
 drivers/usb/serial/cp210x.c                 |    6 
 drivers/usb/serial/cypress_m8.c             |   12 
 drivers/usb/serial/empeg.c                  |   12 
 drivers/usb/serial/ftdi_sio.c               |    7 
 drivers/usb/serial/ftdi_sio.h               |   10 
 drivers/usb/serial/iuu_phoenix.c            |   31 +-
 drivers/usb/serial/kobil_sct.c              |   22 -
 drivers/usb/serial/option.c                 |    4 
 drivers/usb/serial/oti6858.c                |   21 -
 drivers/usb/serial/pl2303.c                 |    1 
 drivers/usb/serial/pl2303.h                 |    4 
 drivers/usb/serial/spcp8x5.c                |   21 -
 drivers/usb/serial/usb-serial.c             |  385 ++++++++++++----------------
 drivers/usb/serial/whiteheat.c              |    6 
 drivers/usb/storage/initializers.c          |    2 
 drivers/usb/storage/onetouch.c              |    2 
 drivers/video/console/fbcon.c               |   10 
 drivers/video/s3c-fb.c                      |    2 
 drivers/video/sis/vstruct.h                 |    2 
 drivers/xen/Makefile                        |    3 
 fs/cifs/cifsglob.h                          |    4 
 fs/ecryptfs/crypto.c                        |    5 
 fs/ecryptfs/inode.c                         |    2 
 fs/ecryptfs/keystore.c                      |   28 +-
 fs/ecryptfs/kthread.c                       |   24 -
 fs/ecryptfs/main.c                          |    3 
 fs/inode.c                                  |   14 -
 fs/nfsd/nfs4callback.c                      |    4 
 fs/nilfs2/btnode.c                          |    1 
 fs/proc/kcore.c                             |    8 
 fs/proc/uptime.c                            |    7 
 include/linux/tty.h                         |    8 
 include/linux/usb/serial.h                  |    3 
 include/pcmcia/ss.h                         |    2 
 kernel/perf_counter.c                       |   20 -
 mm/hugetlb.c                                |    2 
 mm/memory.c                                 |    3 
 mm/mlock.c                                  |   99 ++-----
 mm/mmap.c                                   |    4 
 mm/nommu.c                                  |   34 --
 mm/page_alloc.c                             |   12 
 net/ax25/af_ax25.c                          |    2 
 net/bridge/br_netfilter.c                   |    2 
 net/bridge/netfilter/ebt_ulog.c             |    2 
 net/can/af_can.c                            |    4 
 net/ipv4/netfilter/nf_nat_core.c            |    2 
 net/netfilter/nf_conntrack_core.c           |    6 
 net/packet/af_packet.c                      |    4 
 scripts/Kbuild.include                      |    4 
 scripts/kallsyms.c                          |    2 
 tools/perf/builtin-annotate.c               |    4 
 tools/perf/builtin-report.c                 |    4 
 tools/perf/util/module.c                    |    2 
 163 files changed, 2340 insertions(+), 1131 deletions(-)

Aaro Koskinen (1):
sisfb: change SiS_DDC_Port type to SISIOADDRESS

Alan Cox (6):
cdc_acm: Fix to use modern speed interfaces
tty: remove dtr/rts use from the driver open methods
tty: Add a full port_close function
tty: USB hangup is racy
tty: USB can now use the shutdown method for kref based freeing of ports
tty: USB serial termios bits

Alan Jenkins (1):
sony-laptop: check for rfkill hard block at load time

Alan Stern (10):
Driver core: add new device to bus's list before probing
usb-serial: change referencing of port and serial structures
usb-serial: put subroutines in logical order
usb-serial: change logic of serial lookups
usb-serial: acquire references when a new tty is installed
usb-serial: fix termios initialization logic
usb-serial: rename subroutines
usb-serial: add missing tests and debug lines
usb-serial: straighten out serial_open
USB serial: update the console driver

Alex Chiang (1):
ACPI: pci_slot.ko wants a 64-bit _SUN

Andrew Morton (1):
drivers/mfd/ab3100-core.c: fix powerpc build error

Arjan van de Ven (2):
net ax25: Fix signed comparison in the sockopt handler
net: Make the copy length in af_packet sockopt handler unsigned

Avi Kivity (1):
KVM: Protect update_cr8_intercept() when running without an apic

Benjamin Krill (1):
mtd: ofpart: Check availability of reg property instead of name property

Bob Copeland (1):
ath5k: do not release irq across suspend/resume

Brian Rogers (2):
em28xx: ir-kbd-i2c init data needs a persistent object
saa7134: ir-kbd-i2c init data needs a persistent object

Chris Wilson (4):
drm/i915: Only destroy a constructed mmap offset drm/i915: Add buffer to inactive list immediately during fault drm/i915: Check that the relocation points to within the target drm/i915: Handle ERESTARTSYS during page fault

Christian Lamparter (2):
p54usb: add Zcomax XG-705A usbid
ar9170usb: add usbid for TP-Link TL-WN821N v2

Chuck Ebbert (1):
Re-enable Lanman security

David Howells (1):
NOMMU: Fix MAP_PRIVATE mmap() of objects where the data can be mapped directly

Eric Anholt (1):
agp/intel: Fix the pre-9xx chipset flush.

Eric Dumazet (1):
perf tools: Fix buffer allocation

Feng Kan (1):
mtd: nand: fix ECC Correction bug for SMC ordering for NDFC driver

Greg Kroah-Hartman (1):

      Linux 2.6.31.2

Guus Sliepen (1):
USB: usbtmc: sanity checks for DEV_DEP_MSG_IN urbs

Hennerich, Michael (1):
USB: sl811-hcd: Fix device disconnect:

Henrique de Moraes Holschuh (1):
thinkpad-acpi: don't ask about brightness_mode for fw. 1V and 1R

Hugh Dickins (2):
mm: munlock use follow_page
mm: fix anonymous dirtying

Huzaifa Sidhpurwala (1):
USB: option.c Add support for ZTE AC2726 EVDO modem

Ian Armstrong (1):
fbcon: only unbind from console if successfully registered

Ian Schram (1):
perf_counter: Fix perf_copy_attr() pointer arithmetic

Ivan Kokshaysky (1):
alpha: AGP update (fixes compile failure)

J. Bruce Fields (1):
nfsd4: fix null dereference creating nfsv4 callback client

Jack Steiner (1):
x86: SGI UV: Fix IPI macros

Jan Kara (1):
fs: make sure data stored into inode is properly seen before unlocking new inode

Jan Scholz (1):
HID: completely remove apple mightymouse from blacklist

Jay Sternberg (2):
iwlwifi: Handle new firmware file with ucode build number in header
iwlwifi: update 1000 series API version to match firmware

Jeremy Fitzhardinge (3):
xen: make -fstack-protector work under Xen
xen: only enable interrupts while actually blocking for spinlock
xen: check EFER for NX before setting up GDT mapping

Jesse Barnes (1):
drm/i915: prevent FIFO calculation overflows on 32 bits with high dotclocks

Jory A. Pratt (1):
kbuild: fix cc1 options check to ensure we do not use -fPIC when compiling

KAMEZAWA Hiroyuki (1):
/proc/kcore: work around a BUG()

Kashyap, Desai (1):
mptsas : PAE Kernel more than 4 GB kernel panic

Keith Packard (1):
drm/I915: Use the CRT DDC to get the EDID for DVI-connector on Mac

Kevin Cernekee (1):
kaweth: Fix memory leak in kaweth_control()

Kurt Roeckx (1):
Fix NULL ptr regression in powernow-k8

Lee Schermerhorn (2):
hugetlb: restore interleaving of bootmem huge pages (2.6.31)
mmap: avoid unnecessary anon_vma lock acquisition in vma_adjust()

Linus Torvalds (1):
pty_write: don't do a tty_wakeup() when the buffers are full

Luca Tettamanti (1):
hwmon: (asus_atk0110) Add maintainer information

Manuel Lauss (1):
USB: option: TELIT UC864G support

Marcelo Tosatti (3):
KVM: MMU: fix missing locking in alloc_mmu_pages
KVM: MMU: fix bogus alloc_mmu_pages assignment Revert "KVM: x86: check for cr3 validity in ioctl_set_sregs"

Mark McLoughlin (1):
KVM: fix cpuid E2BIG handling for extended request types

Massimo Cirillo (1):

      mtd: cfi_cmdset_0002: add 0xFF intolerance for M29W128G

Mel Gorman (1):
page-allocator: limit the number of MIGRATE_RESERVE pageblocks per zone

Michael Abbott (1):
Fix idle time field in /proc/uptime

Michael Hennerich (1):
USB: serial: ftdi: handle gnICE+ JTAG adaptors

Michal Hocko (1):
x86: Increase MIN_GAP to include randomized stack

Mike Frysinger (1):
serial: bfin_5xx: fix building as module when early printk is enabled

Nick Kossifidis (1):
ath5k: Wakeup fixes

Oliver Hartkopp (1):
can: fix NOHZ local_softirq_pending 08 warning

Oliver Neukum (3):
USB: CDC WDM driver doesn't support non-blocking reads
USB: fix cdc-acm regression in open
USB: storage: fix a resume path GFP_NOIO must be used

Patrick McHardy (4):
netfilter: nf_nat: fix inverted logic for persistent NAT mappings
netfilter: nf_conntrack: netns fix re reliable conntrack event delivery
netfilter: bridge: refcount fix
netfilter: ebt_ulog: fix checkentry return value

Paul Mundt (1):
kallsyms: fix segfault in prefix_underscores_count()

Pavel Machek (1):
pxa/sharpsl_pm: zaurus c3000 aka spitz: fix resume

Pawel Ludwikow (2):
USB: serial: ftdi_sio: new hardware support - hameg power supply
USB: serial: pl2303: new hardware support - sanwa multimeter

Peter Korsgaard (1):
video: s3c_fb.c: fix build with CONFIG_HOTPLUG=n

Pierre Habouzit (1):
perf tools: do not complain if root is owning perf.data

Rafael J. Wysocki (2):
PM / PCMCIA: Drop second argument of pcmcia_socket_dev_suspend() PM / yenta: Fix cardbus suspend/resume regression

Rex Feany (1):
powerpc/8xx: Fix regression introduced by cache coherency rewrite

Robert Hancock (1):
pata_amd: do not filter out valid modes in nv_mode_filter

Ryusuke Konishi (1):
nilfs2: fix missing zero-fill initialization of btree node cache

Sarah Sharp (15):
USB: xhci: Work around for chain bit in link TRBs.
USB: xhci: Fix slot and endpoint context debugging.
USB: xhci: Configure endpoint code refactoring.
USB: xhci: Set correct max packet size for HS/FS control endpoints.
USB: xhci: Support full speed devices.
USB: xhci: Handle stalled control endpoints.
USB: xhci: Add quirk for Fresco Logic xHCI hardware.
USB: xhci: Make TRB completion code comparison readable.
USB: xhci: Handle babbling endpoints correctly.
USB: xhci: Don't touch xhci_td after it's freed.
USB: xhci: Check URB's actual transfer buffer size.
USB: xhci: Check URB_SHORT_NOT_OK before setting short packet status.
USB: xhci: Set -EREMOTEIO when xHC gives bad transfer length.
USB: xhci: Support interrupt transfers.
USB: Fix SS endpoint companion descriptor parsing.

Sheng Yang (1):
KVM: VMX: Fix EPT with WP bit change during paging

Tejun Heo (1):
ahci: restore pci_intx() handling

Tilman Schmidt (1):
tty: gigaset: really fix chars_in_buffer

Tyler Hicks (5):
eCryptfs: Handle unrecognized tag 3 cipher codes
eCryptfs: Check for O_RDONLY lower inodes when opening lower files
eCryptfs: Filename encryption only supports password auth tokens
eCryptfs: Validate global auth tok keys
eCryptfs: Prevent lower dentry from going negative during unlink

Weirich, Bernhard (1):
powerpc: Fix incorrect setting of __HAVE_ARCH_PTE_SPECIAL

Wey-Yi Guy (3):
iwlagn: modify digital SVR for 1000
iwlwifi: traverse linklist to find the valid OTP block
iwlwifi: fix unloading driver while scanning

Wolfgang Muees (1):
mmc_spi: fail gracefully if host or card do not support the switch command

Wolfram Sang (1):
tty: serial/pcmcia: add ID for Advantech card

Yang Xiaowei (1):
xen: use stronger barrier after unlocking lock

Zhenyu Wang (6):
drm/i915: remove restore in resume
drm/i915: Fix typo for wrong LVDS clock setting on IGDNG drm/i915: Fix SSC frequence for IGDNG
drm/i915: Remove DAC disable in CRT force detect on IGDNG drm/i915: Fix LVDS panel fitting on Arrandale drm/i915: fix tiling on IGDNG

fangxiaozhi (1):
USB: usb-storage fails to attach to Huawei Datacard cdrom device

[email protected] (1):
USB: add PIDs for FTDI based OpenDCC hardware

author
#1 lore raw
MAINTAINERS +6 -0
index 8dca9d8..2ccc21c 100644
@@ -897,6 +897,12 @@ W:	http://wireless.kernel.org/en/users/Drivers/ar9170
 S:	Maintained
 F:	drivers/net/wireless/ath/ar9170/
 
+ATK0110 HWMON DRIVER
+M:	Luca Tettamanti <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/hwmon/asus_atk0110.c
+
 ATI_REMOTE2 DRIVER
 M:	Ville Syrjala <[email protected]>
 S:	Maintained
Makefile +1 -1
index ea8734a..d3a69fd 100644
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 31
-EXTRAVERSION = .1
+EXTRAVERSION = .2
 NAME = Man-Eating Seals of Antiquity
 
 # *DOCUMENTATION*
arch/alpha/kernel/core_marvel.c +1 -1
index e302dae..8e059e5 100644
@@ -1016,7 +1016,7 @@ marvel_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *m
 {
 	struct marvel_agp_aperture *aper = agp->aperture.sysdata;
 	return iommu_bind(aper->arena, aper->pg_start + pg_start, 
-			  mem->page_count, mem->memory);
+			  mem->page_count, mem->pages);
 }
 
 static int 
arch/alpha/kernel/core_titan.c +1 -1
index 319fcb7..7668649 100644
@@ -680,7 +680,7 @@ titan_agp_bind_memory(alpha_agp_info *agp, off_t pg_start, struct agp_memory *me
 {
 	struct titan_agp_aperture *aper = agp->aperture.sysdata;
 	return iommu_bind(aper->arena, aper->pg_start + pg_start, 
-			  mem->page_count, mem->memory);
+			  mem->page_count, mem->pages);
 }
 
 static int 
arch/alpha/kernel/pci_impl.h +1 -1
index 00edd04..85457b2 100644
@@ -198,7 +198,7 @@ extern unsigned long size_for_memory(unsigned long max);
 
 extern int iommu_reserve(struct pci_iommu_arena *, long, long);
 extern int iommu_release(struct pci_iommu_arena *, long, long);
-extern int iommu_bind(struct pci_iommu_arena *, long, long, unsigned long *);
+extern int iommu_bind(struct pci_iommu_arena *, long, long, struct page **);
 extern int iommu_unbind(struct pci_iommu_arena *, long, long);
 
 
arch/alpha/kernel/pci_iommu.c +2 -2
index bfb880a..eadd63b 100644
@@ -880,7 +880,7 @@ iommu_release(struct pci_iommu_arena *arena, long pg_start, long pg_count)
 
 int
 iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, 
-	   unsigned long *physaddrs)
+	   struct page **pages)
 {
 	unsigned long flags;
 	unsigned long *ptes;
@@ -900,7 +900,7 @@ iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count,
 	}
 		
 	for(i = 0, j = pg_start; i < pg_count; i++, j++)
-		ptes[j] = mk_iommu_pte(physaddrs[i]);
+		ptes[j] = mk_iommu_pte(page_to_phys(pages[i]));
 
 	spin_unlock_irqrestore(&arena->lock, flags);
 
arch/arm/mach-pxa/sharpsl_pm.c +2 -2
index 2546c06..629e05d 100644
@@ -678,8 +678,8 @@ static int corgi_enter_suspend(unsigned long alarm_time, unsigned int alarm_enab
 		dev_dbg(sharpsl_pm.dev, "User triggered wakeup in offline charger.\n");
 	}
 
-	if ((!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_LOCK)) || (sharpsl_fatal_check() < 0) )
-	{
+	if ((!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_LOCK)) ||
+	    (!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_FATAL)))	{
 		dev_err(sharpsl_pm.dev, "Fatal condition. Suspend.\n");
 		corgi_goto_sleep(alarm_time, alarm_enable, state);
 		return 1;
arch/powerpc/include/asm/pte-common.h +1 -1
index a7e210b..0cd2e34 100644
@@ -176,7 +176,7 @@ extern unsigned long bad_call_to_PMD_PAGE_SIZE(void);
 #define HAVE_PAGE_AGP
 
 /* Advertise support for _PAGE_SPECIAL */
-#ifdef _PAGE_SPECIAL
+#if _PAGE_SPECIAL != 0
 #define __HAVE_ARCH_PTE_SPECIAL
 #endif
 
arch/powerpc/mm/pgtable.c +16 -3
index 627767d..d8e6725 100644
@@ -30,6 +30,8 @@
 #include <asm/tlbflush.h>
 #include <asm/tlb.h>
 
+#include "mmu_decl.h"
+
 static DEFINE_PER_CPU(struct pte_freelist_batch *, pte_freelist_cur);
 static unsigned long pte_freelist_forced_free;
 
@@ -119,7 +121,7 @@ void pte_free_finish(void)
 /*
  * Handle i/d cache flushing, called from set_pte_at() or ptep_set_access_flags()
  */
-static pte_t do_dcache_icache_coherency(pte_t pte)
+static pte_t do_dcache_icache_coherency(pte_t pte, unsigned long addr)
 {
 	unsigned long pfn = pte_pfn(pte);
 	struct page *page;
@@ -128,6 +130,17 @@ static pte_t do_dcache_icache_coherency(pte_t pte)
 		return pte;
 	page = pfn_to_page(pfn);
 
+#ifdef CONFIG_8xx
+       /* On 8xx, cache control instructions (particularly
+        * "dcbst" from flush_dcache_icache) fault as write
+        * operation if there is an unpopulated TLB entry
+        * for the address in question. To workaround that,
+        * we invalidate the TLB here, thus avoiding dcbst
+        * misbehaviour.
+        */
+       _tlbil_va(addr, 0 /* 8xx doesn't care about PID */);
+#endif
+
 	if (!PageReserved(page) && !test_bit(PG_arch_1, &page->flags)) {
 		pr_devel("do_dcache_icache_coherency... flushing\n");
 		flush_dcache_icache_page(page);
@@ -198,7 +211,7 @@ void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte
 	 */
 	pte = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS);
 	if (pte_need_exec_flush(pte, 1))
-		pte = do_dcache_icache_coherency(pte);
+		pte = do_dcache_icache_coherency(pte, addr);
 
 	/* Perform the setting of the PTE */
 	__set_pte_at(mm, addr, ptep, pte, 0);
@@ -216,7 +229,7 @@ int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long address,
 {
 	int changed;
 	if (!dirty && pte_need_exec_flush(entry, 0))
-		entry = do_dcache_icache_coherency(entry);
+		entry = do_dcache_icache_coherency(entry, address);
 	changed = !pte_same(*(ptep), entry);
 	if (changed) {
 		if (!(vma->vm_flags & VM_HUGETLB))
arch/x86/include/asm/elf.h +2 -0
index 83c1bc8..456a304 100644
@@ -299,6 +299,8 @@ do {									\
 
 #ifdef CONFIG_X86_32
 
+#define STACK_RND_MASK (0x7ff)
+
 #define VDSO_HIGH_BASE		(__fix_to_virt(FIX_VDSO))
 
 #define ARCH_DLINFO		ARCH_DLINFO_IA32(vdso_enabled)
arch/x86/include/asm/uv/uv_hub.h +1 -1
index 77a6850..03a0cbd 100644
@@ -422,7 +422,7 @@ static inline void uv_hub_send_ipi(int pnode, int apicid, int vector)
 	unsigned long val;
 
 	val = (1UL << UVH_IPI_INT_SEND_SHFT) |
-			((apicid & 0x3f) << UVH_IPI_INT_APIC_ID_SHFT) |
+			((apicid) << UVH_IPI_INT_APIC_ID_SHFT) |
 			(vector << UVH_IPI_INT_VECTOR_SHFT);
 	uv_write_global_mmr64(pnode, UVH_IPI_INT, val);
 }
arch/x86/kernel/cpu/cpufreq/powernow-k8.c +9 -8
index 2a50ef8..fde0cd3 100644
@@ -605,9 +605,10 @@ static int check_pst_table(struct powernow_k8_data *data, struct pst_s *pst,
 	return 0;
 }
 
-static void invalidate_entry(struct powernow_k8_data *data, unsigned int entry)
+static void invalidate_entry(struct cpufreq_frequency_table *powernow_table,
+		unsigned int entry)
 {
-	data->powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID;
+	powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID;
 }
 
 static void print_basics(struct powernow_k8_data *data)
@@ -914,13 +915,13 @@ static int fill_powernow_table_pstate(struct powernow_k8_data *data,
 					"bad value %d.\n", i, index);
 			printk(KERN_ERR PFX "Please report to BIOS "
 					"manufacturer\n");
-			invalidate_entry(data, i);
+			invalidate_entry(powernow_table, i);
 			continue;
 		}
 		rdmsr(MSR_PSTATE_DEF_BASE + index, lo, hi);
 		if (!(hi & HW_PSTATE_VALID_MASK)) {
 			dprintk("invalid pstate %d, ignoring\n", index);
-			invalidate_entry(data, i);
+			invalidate_entry(powernow_table, i);
 			continue;
 		}
 
@@ -970,7 +971,7 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data,
 		/* verify frequency is OK */
 		if ((freq > (MAX_FREQ * 1000)) || (freq < (MIN_FREQ * 1000))) {
 			dprintk("invalid freq %u kHz, ignoring\n", freq);
-			invalidate_entry(data, i);
+			invalidate_entry(powernow_table, i);
 			continue;
 		}
 
@@ -978,7 +979,7 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data,
 		 * BIOSs are using "off" to indicate invalid */
 		if (vid == VID_OFF) {
 			dprintk("invalid vid %u, ignoring\n", vid);
-			invalidate_entry(data, i);
+			invalidate_entry(powernow_table, i);
 			continue;
 		}
 
@@ -997,7 +998,7 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data,
 
 				dprintk("double low frequency table entry, "
 						"ignoring it.\n");
-				invalidate_entry(data, i);
+				invalidate_entry(powernow_table, i);
 				continue;
 			} else
 				cntlofreq = i;
@@ -1009,7 +1010,7 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data,
 				(unsigned int)
 				(data->acpi_data.states[i].core_frequency
 				 * 1000));
-			invalidate_entry(data, i);
+			invalidate_entry(powernow_table, i);
 			continue;
 		}
 	}
arch/x86/kvm/mmu.c +0 -6
index a5cdb35..4712293 100644
@@ -2713,12 +2713,6 @@ static int alloc_mmu_pages(struct kvm_vcpu *vcpu)
 
 	ASSERT(vcpu);
 
-	if (vcpu->kvm->arch.n_requested_mmu_pages)
-		vcpu->kvm->arch.n_free_mmu_pages =
-					vcpu->kvm->arch.n_requested_mmu_pages;
-	else
-		vcpu->kvm->arch.n_free_mmu_pages =
-					vcpu->kvm->arch.n_alloc_mmu_pages;
 	/*
 	 * When emulating 32-bit mode, cr3 is only 32 bits even on x86_64.
 	 * Therefore we need to allocate shadow page tables in the first
arch/x86/kvm/vmx.c +3 -3
index b5fa966..6a768ff 100644
@@ -1569,7 +1569,6 @@ static void ept_update_paging_mode_cr0(unsigned long *hw_cr0,
 		vcpu->arch.cr0 = cr0;
 		vmx_set_cr4(vcpu, vcpu->arch.cr4);
 		*hw_cr0 |= X86_CR0_PE | X86_CR0_PG;
-		*hw_cr0 &= ~X86_CR0_WP;
 	} else if (!is_paging(vcpu)) {
 		/* From nonpaging to paging */
 		vmcs_write32(CPU_BASED_VM_EXEC_CONTROL,
@@ -1578,9 +1577,10 @@ static void ept_update_paging_mode_cr0(unsigned long *hw_cr0,
 			       CPU_BASED_CR3_STORE_EXITING));
 		vcpu->arch.cr0 = cr0;
 		vmx_set_cr4(vcpu, vcpu->arch.cr4);
-		if (!(vcpu->arch.cr0 & X86_CR0_WP))
-			*hw_cr0 &= ~X86_CR0_WP;
 	}
+
+	if (!(cr0 & X86_CR0_WP))
+		*hw_cr0 &= ~X86_CR0_WP;
 }
 
 static void ept_update_paging_mode_cr4(unsigned long *hw_cr4,
arch/x86/kvm/x86.c +8 -7
index 3d36045..91a077f 100644
@@ -1448,6 +1448,10 @@ static int kvm_dev_ioctl_get_supported_cpuid(struct kvm_cpuid2 *cpuid,
 	for (func = 0x80000001; func <= limit && nent < cpuid->nent; ++func)
 		do_cpuid_ent(&cpuid_entries[nent], func, 0,
 			     &nent, cpuid->nent);
+	r = -E2BIG;
+	if (nent >= cpuid->nent)
+		goto out_free;
+
 	r = -EFAULT;
 	if (copy_to_user(entries, cpuid_entries,
 			 nent * sizeof(struct kvm_cpuid_entry2)))
@@ -3198,6 +3202,9 @@ static void update_cr8_intercept(struct kvm_vcpu *vcpu)
 	if (!kvm_x86_ops->update_cr8_intercept)
 		return;
 
+	if (!vcpu->arch.apic)
+		return;
+
 	if (!vcpu->arch.apic->vapic_addr)
 		max_irr = kvm_lapic_find_highest_irr(vcpu);
 	else
@@ -4118,13 +4125,7 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu,
 
 	vcpu->arch.cr2 = sregs->cr2;
 	mmu_reset_needed |= vcpu->arch.cr3 != sregs->cr3;
-
-	down_read(&vcpu->kvm->slots_lock);
-	if (gfn_to_memslot(vcpu->kvm, sregs->cr3 >> PAGE_SHIFT))
-		vcpu->arch.cr3 = sregs->cr3;
-	else
-		set_bit(KVM_REQ_TRIPLE_FAULT, &vcpu->requests);
-	up_read(&vcpu->kvm->slots_lock);
+	vcpu->arch.cr3 = sregs->cr3;
 
 	kvm_set_cr8(vcpu, sregs->cr8);
 
arch/x86/mm/Makefile +5 -0
index eefdeee..0088329 100644
@@ -1,6 +1,11 @@
 obj-y	:=  init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
 	    pat.o pgtable.o gup.o
 
+# Make sure __phys_addr has no stackprotector
+nostackp := $(call cc-option, -fno-stack-protector)
+CFLAGS_ioremap.o		:= $(nostackp)
+CFLAGS_init.o			:= $(nostackp)
+
 obj-$(CONFIG_SMP)		+= tlb.o
 
 obj-$(CONFIG_X86_32)		+= pgtable_32.o iomap_32.o
arch/x86/mm/mmap.c +15 -2
index 1658296..c8191de 100644
@@ -29,13 +29,26 @@
 #include <linux/random.h>
 #include <linux/limits.h>
 #include <linux/sched.h>
+#include <asm/elf.h>
+
+static unsigned int stack_maxrandom_size(void)
+{
+	unsigned int max = 0;
+	if ((current->flags & PF_RANDOMIZE) &&
+		!(current->personality & ADDR_NO_RANDOMIZE)) {
+		max = ((-1U) & STACK_RND_MASK) << PAGE_SHIFT;
+	}
+
+	return max;
+}
+
 
 /*
  * Top of mmap area (just below the process stack).
  *
- * Leave an at least ~128 MB hole.
+ * Leave an at least ~128 MB hole with possible stack randomization.
  */
-#define MIN_GAP (128*1024*1024)
+#define MIN_GAP (128*1024*1024UL + stack_maxrandom_size())
 #define MAX_GAP (TASK_SIZE/6*5)
 
 /*
arch/x86/mm/pageattr.c +1 -0
index e245775..fbb46d6 100644
@@ -143,6 +143,7 @@ void clflush_cache_range(void *vaddr, unsigned int size)
 
 	mb();
 }
+EXPORT_SYMBOL_GPL(clflush_cache_range);
 
 static void __cpa_flush_all(void *arg)
 {
arch/x86/xen/Makefile +2 -0
index 7410640..3bb4fc2 100644
@@ -8,6 +8,7 @@ endif
 # Make sure early boot has no stackprotector
 nostackp := $(call cc-option, -fno-stack-protector)
 CFLAGS_enlighten.o		:= $(nostackp)
+CFLAGS_mmu.o			:= $(nostackp)
 
 obj-y		:= enlighten.o setup.o multicalls.o mmu.o irq.o \
 			time.o xen-asm.o xen-asm_$(BITS).o \
@@ -16,3 +17,4 @@ obj-y		:= enlighten.o setup.o multicalls.o mmu.o irq.o \
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
 obj-$(CONFIG_XEN_DEBUG_FS)	+= debugfs.o
+
arch/x86/xen/enlighten.c +116 -23

202 lines not on this page · raw message

arch/x86/xen/smp.c +1 -0
index 429834e..fe03eee 100644
@@ -236,6 +236,7 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle)
 	ctxt->user_regs.ss = __KERNEL_DS;
 #ifdef CONFIG_X86_32
 	ctxt->user_regs.fs = __KERNEL_PERCPU;
+	ctxt->user_regs.gs = __KERNEL_STACK_CANARY;
 #else
 	ctxt->gs_base_kernel = per_cpu_offset(cpu);
 #endif
arch/x86/xen/spinlock.c +18 -10
index 5601506..36a5141 100644
@@ -187,7 +187,6 @@ static noinline int xen_spin_lock_slow(struct raw_spinlock *lock, bool irq_enabl
 	struct xen_spinlock *prev;
 	int irq = __get_cpu_var(lock_kicker_irq);
 	int ret;
-	unsigned long flags;
 	u64 start;
 
 	/* If kicker interrupts not initialized yet, just spin */
@@ -199,16 +198,12 @@ static noinline int xen_spin_lock_slow(struct raw_spinlock *lock, bool irq_enabl
 	/* announce we're spinning */
 	prev = spinning_lock(xl);
 
-	flags = __raw_local_save_flags();
-	if (irq_enable) {
-		ADD_STATS(taken_slow_irqenable, 1);
-		raw_local_irq_enable();
-	}
-
 	ADD_STATS(taken_slow, 1);
 	ADD_STATS(taken_slow_nested, prev != NULL);
 
 	do {
+		unsigned long flags;
+
 		/* clear pending */
 		xen_clear_irq_pending(irq);
 
@@ -228,6 +223,12 @@ static noinline int xen_spin_lock_slow(struct raw_spinlock *lock, bool irq_enabl
 			goto out;
 		}
 
+		flags = __raw_local_save_flags();
+		if (irq_enable) {
+			ADD_STATS(taken_slow_irqenable, 1);
+			raw_local_irq_enable();
+		}
+
 		/*
 		 * Block until irq becomes pending.  If we're
 		 * interrupted at this point (after the trylock but
@@ -238,13 +239,15 @@ static noinline int xen_spin_lock_slow(struct raw_spinlock *lock, bool irq_enabl
 		 * pending.
 		 */
 		xen_poll_irq(irq);
+
+		raw_local_irq_restore(flags);
+
 		ADD_STATS(taken_slow_spurious, !xen_test_irq_pending(irq));
 	} while (!xen_test_irq_pending(irq)); /* check for spurious wakeups */
 
 	kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));
 
 out:
-	raw_local_irq_restore(flags);
 	unspinning_lock(xl, prev);
 	spin_time_accum_blocked(start);
 
@@ -323,8 +326,13 @@ static void xen_spin_unlock(struct raw_spinlock *lock)
 	smp_wmb();		/* make sure no writes get moved after unlock */
 	xl->lock = 0;		/* release lock */
 
-	/* make sure unlock happens before kick */
-	barrier();
+	/*
+	 * Make sure unlock happens before checking for waiting
+	 * spinners.  We need a strong barrier to enforce the
+	 * write-read ordering to different memory locations, as the
+	 * CPU makes no implied guarantees about their ordering.
+	 */
+	mb();
 
 	if (unlikely(xl->spinners))
 		xen_spin_unlock_slow(xl);
drivers/acpi/pci_slot.c +2 -2
index 12158e0..da9d6d2 100644
@@ -57,7 +57,7 @@ ACPI_MODULE_NAME("pci_slot");
 				MY_NAME , ## arg);		\
 	} while (0)
 
-#define SLOT_NAME_SIZE 20		/* Inspired by #define in acpiphp.h */
+#define SLOT_NAME_SIZE 21		/* Inspired by #define in acpiphp.h */
 
 struct acpi_pci_slot {
 	acpi_handle root_handle;	/* handle of the root bridge */
@@ -149,7 +149,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
 		return AE_OK;
 	}
 
-	snprintf(name, sizeof(name), "%u", (u32)sun);
+	snprintf(name, sizeof(name), "%llu", sun);
 	pci_slot = pci_create_slot(pci_bus, device, name, NULL);
 	if (IS_ERR(pci_slot)) {
 		err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot));
drivers/ata/ahci.c +2 -2
index fe3eba5..289c4f8 100644
@@ -2861,8 +2861,8 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (ahci_asus_m2a_vm_32bit_only(pdev))
 		hpriv->flags |= AHCI_HFLAG_32BIT_ONLY;
 
-	if (!(hpriv->flags & AHCI_HFLAG_NO_MSI))
-		pci_enable_msi(pdev);
+	if ((hpriv->flags & AHCI_HFLAG_NO_MSI) || pci_enable_msi(pdev))
+		pci_intx(pdev, 1);
 
 	/* save initial config */
 	ahci_save_initial_config(pdev, hpriv);
drivers/ata/pata_amd.c +3 -0
index 33a74f1..567f3f7 100644
@@ -307,6 +307,9 @@ static unsigned long nv_mode_filter(struct ata_device *dev,
 		limit |= ATA_MASK_PIO;
 	if (!(limit & (ATA_MASK_MWDMA | ATA_MASK_UDMA)))
 		limit |= ATA_MASK_MWDMA | ATA_MASK_UDMA;
+	/* PIO4, MWDMA2, UDMA2 should always be supported regardless of
+	   cable detection result */
+	limit |= ata_pack_xfermask(ATA_PIO4, ATA_MWDMA2, ATA_UDMA2);
 
 	ata_port_printk(ap, KERN_DEBUG, "nv_mode_filter: 0x%lx&0x%lx->0x%lx, "
 			"BIOS=0x%lx (0x%x) ACPI=0x%lx%s\n",
drivers/base/base.h +1 -1
index b528145..1e52c12 100644
@@ -104,7 +104,7 @@ extern int system_bus_init(void);
 extern int cpu_dev_init(void);
 
 extern int bus_add_device(struct device *dev);
-extern void bus_attach_device(struct device *dev);
+extern void bus_probe_device(struct device *dev);
 extern void bus_remove_device(struct device *dev);
 
 extern int bus_add_driver(struct device_driver *drv);
drivers/base/bus.c +10 -13
index 4b04a15..973bf2a 100644
@@ -459,8 +459,9 @@ static inline void remove_deprecated_bus_links(struct device *dev) { }
  * bus_add_device - add device to bus
  * @dev: device being added
  *
+ * - Add device's bus attributes.
+ * - Create links to device's bus.
  * - Add the device to its bus's list of devices.
- * - Create link to device's bus.
  */
 int bus_add_device(struct device *dev)
 {
@@ -483,6 +484,7 @@ int bus_add_device(struct device *dev)
 		error = make_deprecated_bus_links(dev);
 		if (error)
 			goto out_deprecated;
+		klist_add_tail(&dev->p->knode_bus, &bus->p->klist_devices);
 	}
 	return 0;
 
@@ -498,24 +500,19 @@ out_put:
 }
 
 /**
- * bus_attach_device - add device to bus
- * @dev: device tried to attach to a driver
+ * bus_probe_device - probe drivers for a new device
+ * @dev: device to probe
  *
- * - Add device to bus's list of devices.
- * - Try to attach to driver.
+ * - Automatically probe for a driver if the bus allows it.
  */
-void bus_attach_device(struct device *dev)
+void bus_probe_device(struct device *dev)
 {
 	struct bus_type *bus = dev->bus;
-	int ret = 0;
+	int ret;
 
-	if (bus) {
-		if (bus->p->drivers_autoprobe)
-			ret = device_attach(dev);
+	if (bus && bus->p->drivers_autoprobe) {
+		ret = device_attach(dev);
 		WARN_ON(ret < 0);
-		if (ret >= 0)
-			klist_add_tail(&dev->p->knode_bus,
-				       &bus->p->klist_devices);
 	}
 }
 
drivers/base/core.c +1 -1
index 7ecb193..c34774d 100644
@@ -945,7 +945,7 @@ int device_add(struct device *dev)
 					     BUS_NOTIFY_ADD_DEVICE, dev);
 
 	kobject_uevent(&dev->kobj, KOBJ_ADD);
-	bus_attach_device(dev);
+	bus_probe_device(dev);
 	if (parent)
 		klist_add_tail(&dev->p->knode_parent,
 			       &parent->p->klist_children);
drivers/char/agp/intel-agp.c +23 -7
index dee0f1f..6cf88b6 100644
@@ -679,23 +679,39 @@ static void intel_i830_setup_flush(void)
 	if (!intel_private.i8xx_page)
 		return;
 
-	/* make page uncached */
-	map_page_into_agp(intel_private.i8xx_page);
-
 	intel_private.i8xx_flush_page = kmap(intel_private.i8xx_page);
 	if (!intel_private.i8xx_flush_page)
 		intel_i830_fini_flush();
 }
 
+static void
+do_wbinvd(void *null)
+{
+	wbinvd();
+}
+
+/* The chipset_flush interface needs to get data that has already been
+ * flushed out of the CPU all the way out to main memory, because the GPU
+ * doesn't snoop those buffers.
+ *
+ * The 8xx series doesn't have the same lovely interface for flushing the
+ * chipset write buffers that the later chips do. According to the 865
+ * specs, it's 64 octwords, or 1KB.  So, to get those previous things in
+ * that buffer out, we just fill 1KB and clflush it out, on the assumption
+ * that it'll push whatever was in there out.  It appears to work.
+ */
 static void intel_i830_chipset_flush(struct agp_bridge_data *bridge)
 {
 	unsigned int *pg = intel_private.i8xx_flush_page;
-	int i;
 
-	for (i = 0; i < 256; i += 2)
-		*(pg + i) = i;
+	memset(pg, 0, 1024);
 
-	wmb();
+	if (cpu_has_clflush) {
+		clflush_cache_range(pg, 1024);
+	} else {
+		if (on_each_cpu(do_wbinvd, NULL, 1) != 0)
+			printk(KERN_ERR "Timed out waiting for cache flush.\n");
+	}
 }
 
 /* The intel i830 automatically initializes the agp aperture during POST.
drivers/char/pty.c +4 -2
index b33d668..53761ce 100644
@@ -120,8 +120,10 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c)
 		/* Stuff the data into the input queue of the other end */
 		c = tty_insert_flip_string(to, buf, c);
 		/* And shovel */
-		tty_flip_buffer_push(to);
-		tty_wakeup(tty);
+		if (c) {
+			tty_flip_buffer_push(to);
+			tty_wakeup(tty);
+		}
 	}
 	return c;
 }
drivers/char/tty_io.c +1 -0
index a3afa0c..9fc9517 100644
@@ -1184,6 +1184,7 @@ int tty_init_termios(struct tty_struct *tty)
 	tty->termios->c_ospeed = tty_termios_baud_rate(tty->termios);
 	return 0;
 }
+EXPORT_SYMBOL_GPL(tty_init_termios);
 
 /**
  *	tty_driver_install_tty() - install a tty entry in the driver
drivers/char/tty_port.c +27 -2
index 9769b11..549bd0f 100644
@@ -96,6 +96,14 @@ void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty)
 }
 EXPORT_SYMBOL(tty_port_tty_set);
 
+static void tty_port_shutdown(struct tty_port *port)
+{
+	if (port->ops->shutdown &&
+		test_and_clear_bit(ASYNC_INITIALIZED, &port->flags))
+			port->ops->shutdown(port);
+
+}
+
 /**
  *	tty_port_hangup		-	hangup helper
  *	@port: tty port
@@ -116,6 +124,7 @@ void tty_port_hangup(struct tty_port *port)
 	port->tty = NULL;
 	spin_unlock_irqrestore(&port->lock, flags);
 	wake_up_interruptible(&port->open_wait);
+	tty_port_shutdown(port);
 }
 EXPORT_SYMBOL(tty_port_hangup);
 
@@ -296,15 +305,17 @@ int tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct f
 
 	if (port->count) {
 		spin_unlock_irqrestore(&port->lock, flags);
+		if (port->ops->drop)
+			port->ops->drop(port);
 		return 0;
 	}
-	port->flags |= ASYNC_CLOSING;
+	set_bit(ASYNC_CLOSING, &port->flags);
 	tty->closing = 1;
 	spin_unlock_irqrestore(&port->lock, flags);
 	/* Don't block on a stalled port, just pull the chain */
 	if (tty->flow_stopped)
 		tty_driver_flush_buffer(tty);
-	if (port->flags & ASYNC_INITIALIZED &&
+	if (test_bit(ASYNCB_INITIALIZED, &port->flags) &&
 			port->closing_wait != ASYNC_CLOSING_WAIT_NONE)
 		tty_wait_until_sent(tty, port->closing_wait);
 	if (port->drain_delay) {
@@ -318,6 +329,9 @@ int tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct f
 			timeout = 2 * HZ;
 		schedule_timeout_interruptible(timeout);
 	}
+	/* Don't call port->drop for the last reference. Callers will want
+	   to drop the last active reference in ->shutdown() or the tty
+	   shutdown path */
 	return 1;
 }
 EXPORT_SYMBOL(tty_port_close_start);
@@ -348,3 +362,14 @@ void tty_port_close_end(struct tty_port *port, struct tty_struct *tty)
 	spin_unlock_irqrestore(&port->lock, flags);
 }
 EXPORT_SYMBOL(tty_port_close_end);
+
+void tty_port_close(struct tty_port *port, struct tty_struct *tty,
+							struct file *filp)
+{
+	if (tty_port_close_start(port, tty, filp) == 0)
+		return;
+	tty_port_shutdown(port);
+	tty_port_close_end(port, tty);
+	tty_port_tty_set(port, NULL);
+}
+EXPORT_SYMBOL(tty_port_close);
drivers/gpu/drm/i915/i915_drv.c +0 -2
index fc4b68a..c078d99 100644
@@ -94,8 +94,6 @@ static int i915_resume(struct drm_device *dev)
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	int ret = 0;
 
-	pci_set_power_state(dev->pdev, PCI_D0);
-	pci_restore_state(dev->pdev);
 	if (pci_enable_device(dev->pdev))
 		return -1;
 	pci_set_master(dev->pdev);
drivers/gpu/drm/i915/i915_gem.c +25 -30

99 lines not on this page · raw message

drivers/gpu/drm/i915/i915_gem_tiling.c +7 -8
index a2d527b..e774a4a 100644
@@ -234,7 +234,13 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
 	uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
 	bool need_disable;
 
-	if (!IS_I9XX(dev)) {
+	if (IS_IGDNG(dev)) {
+		/* On IGDNG whatever DRAM config, GPU always do
+		 * same swizzling setup.
+		 */
+		swizzle_x = I915_BIT_6_SWIZZLE_9_10;
+		swizzle_y = I915_BIT_6_SWIZZLE_9;
+	} else if (!IS_I9XX(dev)) {
 		/* As far as we know, the 865 doesn't have these bit 6
 		 * swizzling issues.
 		 */
@@ -317,13 +323,6 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
 		}
 	}
 
-	/* FIXME: check with memory config on IGDNG */
-	if (IS_IGDNG(dev)) {
-		DRM_ERROR("disable tiling on IGDNG...\n");
-		swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN;
-		swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
-	}
-
 	dev_priv->mm.bit_6_swizzle_x = swizzle_x;
 	dev_priv->mm.bit_6_swizzle_y = swizzle_y;
 }
drivers/gpu/drm/i915/i915_reg.h +6 -0
index 2955083..106a1ae 100644
@@ -1733,6 +1733,7 @@
 #define   DISPPLANE_NO_LINE_DOUBLE		0
 #define   DISPPLANE_STEREO_POLARITY_FIRST	0
 #define   DISPPLANE_STEREO_POLARITY_SECOND	(1<<18)
+#define   DISPPLANE_TRICKLE_FEED_DISABLE	(1<<14) /* IGDNG */
 #define   DISPPLANE_TILED			(1<<10)
 #define DSPAADDR		0x70184
 #define DSPASTRIDE		0x70188
@@ -1867,6 +1868,8 @@
 #define  PF_ENABLE              (1<<31)
 #define PFA_WIN_SZ		0x68074
 #define PFB_WIN_SZ		0x68874
+#define PFA_WIN_POS		0x68070
+#define PFB_WIN_POS		0x68870
 
 /* legacy palette */
 #define LGC_PALETTE_A           0x4a000
@@ -1913,6 +1916,9 @@
 #define GTIIR   0x44018
 #define GTIER   0x4401c
 
+#define DISP_ARB_CTL	0x45000
+#define  DISP_TILE_SURFACE_SWIZZLING	(1<<13)
+
 /* PCH */
 
 /* south display engine interrupt */
drivers/gpu/drm/i915/intel_bios.c +3 -0
index f806fcc..698a0ed 100644
@@ -217,6 +217,9 @@ parse_general_features(struct drm_i915_private *dev_priv,
 			if (IS_I85X(dev_priv->dev))
 				dev_priv->lvds_ssc_freq =
 					general->ssc_freq ? 66 : 48;
+			else if (IS_IGDNG(dev_priv->dev))
+				dev_priv->lvds_ssc_freq =
+					general->ssc_freq ? 100 : 120;
 			else
 				dev_priv->lvds_ssc_freq =
 					general->ssc_freq ? 100 : 96;
drivers/gpu/drm/i915/intel_crt.c +2 -7
index 590f81c..5ae4c1a 100644
@@ -151,13 +151,10 @@ static bool intel_igdng_crt_detect_hotplug(struct drm_connector *connector)
 {
 	struct drm_device *dev = connector->dev;
 	struct drm_i915_private *dev_priv = dev->dev_private;
-	u32 adpa, temp;
+	u32 adpa;
 	bool ret;
 
-	temp = adpa = I915_READ(PCH_ADPA);
-
-	adpa &= ~ADPA_DAC_ENABLE;
-	I915_WRITE(PCH_ADPA, adpa);
+	adpa = I915_READ(PCH_ADPA);
 
 	adpa &= ~ADPA_CRT_HOTPLUG_MASK;
 
@@ -184,8 +181,6 @@ static bool intel_igdng_crt_detect_hotplug(struct drm_connector *connector)
 	else
 		ret = false;
 
-	/* restore origin register */
-	I915_WRITE(PCH_ADPA, temp);
 	return ret;
 }
 
drivers/gpu/drm/i915/intel_display.c +33 -2
index 748ed50..8b5af29 100644
@@ -818,7 +818,7 @@ intel_igdng_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
 					       refclk, best_clock);
 
 	if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) {
-		if ((I915_READ(LVDS) & LVDS_CLKB_POWER_MASK) ==
+		if ((I915_READ(PCH_LVDS) & LVDS_CLKB_POWER_MASK) ==
 		    LVDS_CLKB_POWER_UP)
 			clock.p2 = limit->p2.p2_fast;
 		else
@@ -1008,6 +1008,10 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
 			dspcntr &= ~DISPPLANE_TILED;
 	}
 
+	if (IS_IGDNG(dev))
+		/* must disable */
+		dspcntr |= DISPPLANE_TRICKLE_FEED_DISABLE;
+
 	I915_WRITE(dspcntr_reg, dspcntr);
 
 	Start = obj_priv->gtt_offset;
@@ -1154,6 +1158,7 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode)
 	int transconf_reg = (pipe == 0) ? TRANSACONF : TRANSBCONF;
 	int pf_ctl_reg = (pipe == 0) ? PFA_CTL_1 : PFB_CTL_1;
 	int pf_win_size = (pipe == 0) ? PFA_WIN_SZ : PFB_WIN_SZ;
+	int pf_win_pos = (pipe == 0) ? PFA_WIN_POS : PFB_WIN_POS;
 	int cpu_htot_reg = (pipe == 0) ? HTOTAL_A : HTOTAL_B;
 	int cpu_hblank_reg = (pipe == 0) ? HBLANK_A : HBLANK_B;
 	int cpu_hsync_reg = (pipe == 0) ? HSYNC_A : HSYNC_B;
@@ -1205,6 +1210,19 @@ static void igdng_crtc_dpms(struct drm_crtc *crtc, int mode)
 			}
 		}
 
+		/* Enable panel fitting for LVDS */
+		if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) {
+			temp = I915_READ(pf_ctl_reg);
+			I915_WRITE(pf_ctl_reg, temp | PF_ENABLE);
+
+			/* currently full aspect */
+			I915_WRITE(pf_win_pos, 0);
+
+			I915_WRITE(pf_win_size,
+				   (dev_priv->panel_fixed_mode->hdisplay << 16) |
+				   (dev_priv->panel_fixed_mode->vdisplay));
+		}
+
 		/* Enable CPU pipe */
 		temp = I915_READ(pipeconf_reg);
 		if ((temp & PIPEACONF_ENABLE) == 0) {
@@ -1858,7 +1876,14 @@ static unsigned long intel_calculate_wm(unsigned long clock_in_khz,
 {
 	long entries_required, wm_size;
 
-	entries_required = (clock_in_khz * pixel_size * latency_ns) / 1000000;
+	/*
+	 * Note: we need to make sure we don't overflow for various clock &
+	 * latency values.
+	 * clocks go from a few thousand to several hundred thousand.
+	 * latency is usually a few thousand
+	 */
+	entries_required = ((clock_in_khz / 1000) * pixel_size * latency_ns) /
+		1000;
 	entries_required /= wm->cacheline_size;
 
 	DRM_DEBUG("FIFO entries required for mode: %d\n", entries_required);
@@ -2616,6 +2641,12 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
 
 	intel_wait_for_vblank(dev);
 
+	if (IS_IGDNG(dev)) {
+		/* enable address swizzle for tiling buffer */
+		temp = I915_READ(DISP_ARB_CTL);
+		I915_WRITE(DISP_ARB_CTL, temp | DISP_TILE_SURFACE_SWIZZLING);
+	}
+
 	I915_WRITE(dspcntr_reg, dspcntr);
 
 	/* Flush the plane changes */
drivers/gpu/drm/i915/intel_lvds.c +8 -3
index 8df02ef..b7d091b 100644
@@ -305,6 +305,10 @@ static bool intel_lvds_mode_fixup(struct drm_encoder *encoder,
 		goto out;
 	}
 
+	/* full screen scale for now */
+	if (IS_IGDNG(dev))
+		goto out;
+
 	/* 965+ wants fuzzy fitting */
 	if (IS_I965G(dev))
 		pfit_control |= (intel_crtc->pipe << PFIT_PIPE_SHIFT) |
@@ -332,8 +336,10 @@ static bool intel_lvds_mode_fixup(struct drm_encoder *encoder,
 	 * to register description and PRM.
 	 * Change the value here to see the borders for debugging
 	 */
-	I915_WRITE(BCLRPAT_A, 0);
-	I915_WRITE(BCLRPAT_B, 0);
+	if (!IS_IGDNG(dev)) {
+		I915_WRITE(BCLRPAT_A, 0);
+		I915_WRITE(BCLRPAT_B, 0);
+	}
 
 	switch (lvds_priv->fitting_mode) {
 	case DRM_MODE_SCALE_NO_SCALE:
@@ -582,7 +588,6 @@ static void intel_lvds_mode_set(struct drm_encoder *encoder,
 	 * settings.
 	 */
 
-	/* No panel fitting yet, fixme */
 	if (IS_IGDNG(dev))
 		return;
 
drivers/gpu/drm/i915/intel_sdvo.c +74 -22

145 lines not on this page · raw message

drivers/hid/hid-core.c +0 -1
index 5eb10c2..047844d 100644
@@ -1319,7 +1319,6 @@ static const struct hid_device_id hid_blacklist[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0005) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0030) },
 
-	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, 0x030c) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_PRESENTER_8K_BT) },
 	{ }
 };
drivers/isdn/gigaset/interface.c +7 -12
index 8ff7e35..f33ac27 100644
@@ -408,33 +408,28 @@ static int if_write_room(struct tty_struct *tty)
 	return retval;
 }
 
-/* FIXME: This function does not have error returns */
-
 static int if_chars_in_buffer(struct tty_struct *tty)
 {
 	struct cardstate *cs;
-	int retval = -ENODEV;
+	int retval = 0;
 
 	cs = (struct cardstate *) tty->driver_data;
 	if (!cs) {
 		pr_err("%s: no cardstate\n", __func__);
-		return -ENODEV;
+		return 0;
 	}
 
 	gig_dbg(DEBUG_IF, "%u: %s()", cs->minor_index, __func__);
 
-	if (mutex_lock_interruptible(&cs->mutex))
-		return -ERESTARTSYS; // FIXME -EINTR?
+	mutex_lock(&cs->mutex);
 
-	if (!cs->connected) {
+	if (!cs->connected)
 		gig_dbg(DEBUG_IF, "not connected");
-		retval = -ENODEV;
-	} else if (!cs->open_count)
+	else if (!cs->open_count)
 		dev_warn(cs->dev, "%s: device not opened\n", __func__);
-	else if (cs->mstate != MS_LOCKED) {
+	else if (cs->mstate != MS_LOCKED)
 		dev_warn(cs->dev, "can't write to unlocked device\n");
-		retval = -EBUSY;
-	} else
+	else
 		retval = cs->ops->chars_in_buffer(cs);
 
 	mutex_unlock(&cs->mutex);
drivers/media/video/em28xx/em28xx-cards.c +15 -17
index 1c2e544..ffe9306 100644
@@ -2170,8 +2170,6 @@ static int em28xx_hint_board(struct em28xx *dev)
 /* ----------------------------------------------------------------------- */
 void em28xx_register_i2c_ir(struct em28xx *dev)
 {
-	struct i2c_board_info info;
-	struct IR_i2c_init_data init_data;
 	const unsigned short addr_list[] = {
 		 0x30, 0x47, I2C_CLIENT_END
 	};
@@ -2179,9 +2177,9 @@ void em28xx_register_i2c_ir(struct em28xx *dev)
 	if (disable_ir)
 		return;
 
-	memset(&info, 0, sizeof(struct i2c_board_info));
-	memset(&init_data, 0, sizeof(struct IR_i2c_init_data));
-	strlcpy(info.type, "ir_video", I2C_NAME_SIZE);
+	memset(&dev->info, 0, sizeof(&dev->info));
+	memset(&dev->init_data, 0, sizeof(dev->init_data));
+	strlcpy(dev->info.type, "ir_video", I2C_NAME_SIZE);
 
 	/* detect & configure */
 	switch (dev->model) {
@@ -2191,19 +2189,19 @@ void em28xx_register_i2c_ir(struct em28xx *dev)
 		break;
 	case (EM2800_BOARD_TERRATEC_CINERGY_200):
 	case (EM2820_BOARD_TERRATEC_CINERGY_250):
-		init_data.ir_codes = ir_codes_em_terratec;
-		init_data.get_key = em28xx_get_key_terratec;
-		init_data.name = "i2c IR (EM28XX Terratec)";
+		dev->init_data.ir_codes = ir_codes_em_terratec;
+		dev->init_data.get_key = em28xx_get_key_terratec;
+		dev->init_data.name = "i2c IR (EM28XX Terratec)";
 		break;
 	case (EM2820_BOARD_PINNACLE_USB_2):
-		init_data.ir_codes = ir_codes_pinnacle_grey;
-		init_data.get_key = em28xx_get_key_pinnacle_usb_grey;
-		init_data.name = "i2c IR (EM28XX Pinnacle PCTV)";
+		dev->init_data.ir_codes = ir_codes_pinnacle_grey;
+		dev->init_data.get_key = em28xx_get_key_pinnacle_usb_grey;
+		dev->init_data.name = "i2c IR (EM28XX Pinnacle PCTV)";
 		break;
 	case (EM2820_BOARD_HAUPPAUGE_WINTV_USB_2):
-		init_data.ir_codes = ir_codes_hauppauge_new;
-		init_data.get_key = em28xx_get_key_em_haup;
-		init_data.name = "i2c IR (EM2840 Hauppauge)";
+		dev->init_data.ir_codes = ir_codes_hauppauge_new;
+		dev->init_data.get_key = em28xx_get_key_em_haup;
+		dev->init_data.name = "i2c IR (EM2840 Hauppauge)";
 		break;
 	case (EM2820_BOARD_MSI_VOX_USB_2):
 		break;
@@ -2215,9 +2213,9 @@ void em28xx_register_i2c_ir(struct em28xx *dev)
 		break;
 	}
 
-	if (init_data.name)
-		info.platform_data = &init_data;
-	i2c_new_probed_device(&dev->i2c_adap, &info, addr_list);
+	if (dev->init_data.name)
+		dev->info.platform_data = &dev->init_data;
+	i2c_new_probed_device(&dev->i2c_adap, &dev->info, addr_list);
 }
 
 void em28xx_card_setup(struct em28xx *dev)
drivers/media/video/em28xx/em28xx.h +4 -0
index a2add61..cb2a70a 100644
@@ -595,6 +595,10 @@ struct em28xx {
 	struct delayed_work sbutton_query_work;
 
 	struct em28xx_dvb *dvb;
+
+	/* I2C keyboard data */
+	struct i2c_board_info info;
+	struct IR_i2c_init_data init_data;
 };
 
 struct em28xx_ops {
drivers/media/video/saa7134/saa7134-input.c +27 -29

102 lines not on this page · raw message

drivers/media/video/saa7134/saa7134.h +4 -0
index fb564f1..4d85f5c 100644
@@ -584,6 +584,10 @@ struct saa7134_dev {
 	int                        nosignal;
 	unsigned int               insuspend;
 
+	/* I2C keyboard data */
+	struct i2c_board_info      info;
+	struct IR_i2c_init_data    init_data;
+
 	/* SAA7134_MPEG_* */
 	struct saa7134_ts          ts;
 	struct saa7134_dmaqueue    ts_q;
drivers/message/fusion/mptbase.c +5 -5
index 5d0ba4f..9ad7bb4 100644
@@ -1015,9 +1015,9 @@ mpt_add_sge_64bit(void *pAddr, u32 flagslength, dma_addr_t dma_addr)
 {
 	SGESimple64_t *pSge = (SGESimple64_t *) pAddr;
 	pSge->Address.Low = cpu_to_le32
-			(lower_32_bits((unsigned long)(dma_addr)));
+			(lower_32_bits(dma_addr));
 	pSge->Address.High = cpu_to_le32
-			(upper_32_bits((unsigned long)dma_addr));
+			(upper_32_bits(dma_addr));
 	pSge->FlagsLength = cpu_to_le32
 			((flagslength | MPT_SGE_FLAGS_64_BIT_ADDRESSING));
 }
@@ -1038,8 +1038,8 @@ mpt_add_sge_64bit_1078(void *pAddr, u32 flagslength, dma_addr_t dma_addr)
 	u32 tmp;
 
 	pSge->Address.Low = cpu_to_le32
-			(lower_32_bits((unsigned long)(dma_addr)));
-	tmp = (u32)(upper_32_bits((unsigned long)dma_addr));
+			(lower_32_bits(dma_addr));
+	tmp = (u32)(upper_32_bits(dma_addr));
 
 	/*
 	 * 1078 errata workaround for the 36GB limitation
@@ -1101,7 +1101,7 @@ mpt_add_chain_64bit(void *pAddr, u8 next, u16 length, dma_addr_t dma_addr)
 		pChain->NextChainOffset = next;
 
 		pChain->Address.Low = cpu_to_le32(tmp);
-		tmp = (u32)(upper_32_bits((unsigned long)dma_addr));
+		tmp = (u32)(upper_32_bits(dma_addr));
 		pChain->Address.High = cpu_to_le32(tmp);
 }
 
drivers/mfd/ab3100-core.c +1 -1
index 13e7d7b..dd8b6b3 100644
@@ -643,7 +643,7 @@ struct ab3100_init_setting {
 	u8 setting;
 };
 
-static const struct ab3100_init_setting __initdata
+static const struct ab3100_init_setting __initconst
 ab3100_init_settings[] = {
 	{
 		.abreg = AB3100_MCA,
drivers/mmc/core/mmc.c +5 -5
index 06084db..72f2df1 100644
@@ -180,11 +180,11 @@ static int mmc_read_ext_csd(struct mmc_card *card)
 
 	err = mmc_send_ext_csd(card, ext_csd);
 	if (err) {
-		/*
-		 * We all hosts that cannot perform the command
-		 * to fail more gracefully
-		 */
-		if (err != -EINVAL)
+		/* If the host or the card can't do the switch,
+		 * fail more gracefully. */
+		if ((err != -EINVAL)
+		 && (err != -ENOSYS)
+		 && (err != -EFAULT))
 			goto out;
 
 		/*
drivers/mmc/core/sd.c +5 -5
index cd81c39..65c32bf 100644
@@ -210,11 +210,11 @@ static int mmc_read_switch(struct mmc_card *card)
 
 	err = mmc_sd_switch(card, 0, 0, 1, status);
 	if (err) {
-		/*
-		 * We all hosts that cannot perform the command
-		 * to fail more gracefully
-		 */
-		if (err != -EINVAL)
+		/* If the host or the card can't do the switch,
+		 * fail more gracefully. */
+		if ((err != -EINVAL)
+		 && (err != -ENOSYS)
+		 && (err != -EFAULT))
 			goto out;
 
 		printk(KERN_WARNING "%s: problem reading switch "
drivers/mtd/chips/cfi_cmdset_0002.c +0 -11
index 61ea833..94bb61e 100644
@@ -282,16 +282,6 @@ static void fixup_s29gl032n_sectors(struct mtd_info *mtd, void *param)
 	}
 }
 
-static void fixup_M29W128G_write_buffer(struct mtd_info *mtd, void *param)
-{
-	struct map_info *map = mtd->priv;
-	struct cfi_private *cfi = map->fldrv_priv;
-	if (cfi->cfiq->BufWriteTimeoutTyp) {
-		pr_warning("Don't use write buffer on ST flash M29W128G\n");
-		cfi->cfiq->BufWriteTimeoutTyp = 0;
-	}
-}
-
 static struct cfi_fixup cfi_fixup_table[] = {
 	{ CFI_MFR_ATMEL, CFI_ID_ANY, fixup_convert_atmel_pri, NULL },
 #ifdef AMD_BOOTLOC_BUG
@@ -308,7 +298,6 @@ static struct cfi_fixup cfi_fixup_table[] = {
 	{ CFI_MFR_AMD, 0x1301, fixup_s29gl064n_sectors, NULL, },
 	{ CFI_MFR_AMD, 0x1a00, fixup_s29gl032n_sectors, NULL, },
 	{ CFI_MFR_AMD, 0x1a01, fixup_s29gl032n_sectors, NULL, },
-	{ CFI_MFR_ST,  0x227E, fixup_M29W128G_write_buffer, NULL, },
 #if !FORCE_WORD_WRITE
 	{ CFI_MFR_ANY, CFI_ID_ANY, fixup_use_write_buffers, NULL, },
 #endif
drivers/mtd/chips/cfi_util.c +4 -0
index 34d40e2..c5a84fd 100644
@@ -81,6 +81,10 @@ void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map,
 {
 	cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
 	cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL);
+	/* M29W128G flashes require an additional reset command
+	   when exit qry mode */
+	if ((cfi->mfr == CFI_MFR_ST) && (cfi->id == 0x227E || cfi->id == 0x7E))
+		cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
 }
 EXPORT_SYMBOL_GPL(cfi_qry_mode_off);
 
drivers/mtd/nand/ndfc.c +2 -2
index 89bf85a..40b5658 100644
@@ -102,8 +102,8 @@ static int ndfc_calculate_ecc(struct mtd_info *mtd,
 	wmb();
 	ecc = in_be32(ndfc->ndfcbase + NDFC_ECC);
 	/* The NDFC uses Smart Media (SMC) bytes order */
-	ecc_code[0] = p[2];
-	ecc_code[1] = p[1];
+	ecc_code[0] = p[1];
+	ecc_code[1] = p[2];
 	ecc_code[2] = p[3];
 
 	return 0;
drivers/mtd/ofpart.c +10 -11
index 3e164f0..62d6a78 100644
@@ -46,21 +46,12 @@ int __devinit of_mtd_parse_partitions(struct device *dev,
 		const u32 *reg;
 		int len;
 
-		/* check if this is a partition node */
-		partname = of_get_property(pp, "name", &len);
-		if (strcmp(partname, "partition") != 0) {
+		reg = of_get_property(pp, "reg", &len);
+		if (!reg) {
 			nr_parts--;
 			continue;
 		}
 
-		reg = of_get_property(pp, "reg", &len);
-		if (!reg || (len != 2 * sizeof(u32))) {
-			of_node_put(pp);
-			dev_err(dev, "Invalid 'reg' on %s\n", node->full_name);
-			kfree(*pparts);
-			*pparts = NULL;
-			return -EINVAL;
-		}
 		(*pparts)[i].offset = reg[0];
 		(*pparts)[i].size = reg[1];
 
@@ -75,6 +66,14 @@ int __devinit of_mtd_parse_partitions(struct device *dev,
 		i++;
 	}
 
+	if (!i) {
+		of_node_put(pp);
+		dev_err(dev, "No valid partition found on %s\n", node->full_name);
+		kfree(*pparts);
+		*pparts = NULL;
+		return -EINVAL;
+	}
+
 	return nr_parts;
 }
 EXPORT_SYMBOL(of_mtd_parse_partitions);
drivers/net/can/vcan.c +1 -1
index a10c1d7..460bb88 100644
@@ -80,7 +80,7 @@ static void vcan_rx(struct sk_buff *skb, struct net_device *dev)
 	skb->dev       = dev;
 	skb->ip_summed = CHECKSUM_UNNECESSARY;
 
-	netif_rx(skb);
+	netif_rx_ni(skb);
 }
 
 static int vcan_tx(struct sk_buff *skb, struct net_device *dev)
drivers/net/usb/kaweth.c +11 -7
index 1f9ec29..65a43c8 100644
@@ -263,6 +263,7 @@ static int kaweth_control(struct kaweth_device *kaweth,
 			  int timeout)
 {
 	struct usb_ctrlrequest *dr;
+	int retval;
 
 	dbg("kaweth_control()");
 
@@ -278,18 +279,21 @@ static int kaweth_control(struct kaweth_device *kaweth,
 		return -ENOMEM;
 	}
 
-	dr->bRequestType= requesttype;
+	dr->bRequestType = requesttype;
 	dr->bRequest = request;
 	dr->wValue = cpu_to_le16(value);
 	dr->wIndex = cpu_to_le16(index);
 	dr->wLength = cpu_to_le16(size);
 
-	return kaweth_internal_control_msg(kaweth->dev,
-					pipe,
-					dr,
-					data,
-					size,
-					timeout);
+	retval = kaweth_internal_control_msg(kaweth->dev,
+					     pipe,
+					     dr,
+					     data,
+					     size,
+					     timeout);
+
+	kfree(dr);
+	return retval;
 }
 
 /****************************************************************
drivers/net/wireless/ath/ar9170/usb.c +2 -0
index 007eb85..1084ca6 100644
@@ -64,6 +64,8 @@ static struct usb_device_id ar9170_usb_ids[] = {
 	{ USB_DEVICE(0x0cf3, 0x9170) },
 	/* Atheros TG121N */
 	{ USB_DEVICE(0x0cf3, 0x1001) },
+	/* TP-Link TL-WN821N v2 */
+	{ USB_DEVICE(0x0cf3, 0x1002) },
 	/* Cace Airpcap NX */
 	{ USB_DEVICE(0xcace, 0x0300) },
 	/* D-Link DWA 160A */
drivers/net/wireless/ath/ath5k/ath5k.h +1 -0
index 6358233..778baf7 100644
@@ -1164,6 +1164,7 @@ extern void ath5k_unregister_leds(struct ath5k_softc *sc);
 
 /* Reset Functions */
 extern int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial);
+extern int ath5k_hw_on_hold(struct ath5k_hw *ah);
 extern int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, struct ieee80211_channel *channel, bool change_channel);
 /* Power management functions */
 extern int ath5k_hw_set_power(struct ath5k_hw *ah, enum ath5k_power_mode mode, bool set_chip, u16 sleep_duration);
drivers/net/wireless/ath/ath5k/attach.c +1 -1
index c41ef58..605b8f6 100644
@@ -145,7 +145,7 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version)
 		goto err_free;
 
 	/* Bring device out of sleep and reset it's units */
-	ret = ath5k_hw_nic_wakeup(ah, CHANNEL_B, true);
+	ret = ath5k_hw_nic_wakeup(ah, 0, true);
 	if (ret)
 		goto err_free;
 
drivers/net/wireless/ath/ath5k/base.c +23 -32

75 lines not on this page · raw message

drivers/net/wireless/ath/ath5k/reset.c +115 -40

195 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-1000.c +4 -2
index 7da52f1..d83d430 100644
@@ -46,7 +46,7 @@
 #include "iwl-5000-hw.h"
 
 /* Highest firmware API version supported */
-#define IWL1000_UCODE_API_MAX 2
+#define IWL1000_UCODE_API_MAX 3
 
 /* Lowest firmware API version supported */
 #define IWL1000_UCODE_API_MIN 1
@@ -62,12 +62,14 @@ struct iwl_cfg iwl1000_bgn_cfg = {
 	.ucode_api_min = IWL1000_UCODE_API_MIN,
 	.sku = IWL_SKU_G|IWL_SKU_N,
 	.ops = &iwl5000_ops,
-	.eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
+	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.eeprom_ver = EEPROM_5000_EEPROM_VERSION,
 	.eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
 	.mod_params = &iwl50_mod_params,
 	.valid_tx_ant = ANT_A,
 	.valid_rx_ant = ANT_AB,
 	.need_pll_cfg = true,
+	.max_ll_items = OTP_MAX_LL_ITEMS_1000,
+	.shadow_ram_support = false,
 };
 
drivers/net/wireless/iwlwifi/iwl-3945.c +40 -0
index 46288e7..b73ab6c 100644
@@ -2784,11 +2784,50 @@ static int iwl3945_load_bsm(struct iwl_priv *priv)
 	return 0;
 }
 
+#define IWL3945_UCODE_GET(item)						\
+static u32 iwl3945_ucode_get_##item(const struct iwl_ucode_header *ucode,\
+				    u32 api_ver)			\
+{									\
+	return le32_to_cpu(ucode->u.v1.item);				\
+}
+
+static u32 iwl3945_ucode_get_header_size(u32 api_ver)
+{
+	return UCODE_HEADER_SIZE(1);
+}
+static u32 iwl3945_ucode_get_build(const struct iwl_ucode_header *ucode,
+				   u32 api_ver)
+{
+	return 0;
+}
+static u8 *iwl3945_ucode_get_data(const struct iwl_ucode_header *ucode,
+				  u32 api_ver)
+{
+	return (u8 *) ucode->u.v1.data;
+}
+
+IWL3945_UCODE_GET(inst_size);
+IWL3945_UCODE_GET(data_size);
+IWL3945_UCODE_GET(init_size);
+IWL3945_UCODE_GET(init_data_size);
+IWL3945_UCODE_GET(boot_size);
+
 static struct iwl_hcmd_ops iwl3945_hcmd = {
 	.rxon_assoc = iwl3945_send_rxon_assoc,
 	.commit_rxon = iwl3945_commit_rxon,
 };
 
+static struct iwl_ucode_ops iwl3945_ucode = {
+	.get_header_size = iwl3945_ucode_get_header_size,
+	.get_build = iwl3945_ucode_get_build,
+	.get_inst_size = iwl3945_ucode_get_inst_size,
+	.get_data_size = iwl3945_ucode_get_data_size,
+	.get_init_size = iwl3945_ucode_get_init_size,
+	.get_init_data_size = iwl3945_ucode_get_init_data_size,
+	.get_boot_size = iwl3945_ucode_get_boot_size,
+	.get_data = iwl3945_ucode_get_data,
+};
+
 static struct iwl_lib_ops iwl3945_lib = {
 	.txq_attach_buf_to_tfd = iwl3945_hw_txq_attach_buf_to_tfd,
 	.txq_free_tfd = iwl3945_hw_txq_free_tfd,
@@ -2829,6 +2868,7 @@ static struct iwl_hcmd_utils_ops iwl3945_hcmd_utils = {
 };
 
 static struct iwl_ops iwl3945_ops = {
+	.ucode = &iwl3945_ucode,
 	.lib = &iwl3945_lib,
 	.hcmd = &iwl3945_hcmd,
 	.utils = &iwl3945_hcmd_utils,
drivers/net/wireless/iwlwifi/iwl-4965.c +39 -0
index 8f3d4bc..157ee15 100644
@@ -2221,12 +2221,50 @@ static void iwl4965_cancel_deferred_work(struct iwl_priv *priv)
 	cancel_work_sync(&priv->txpower_work);
 }
 
+#define IWL4965_UCODE_GET(item)						\
+static u32 iwl4965_ucode_get_##item(const struct iwl_ucode_header *ucode,\
+				    u32 api_ver)			\
+{									\
+	return le32_to_cpu(ucode->u.v1.item);				\
+}
+
+static u32 iwl4965_ucode_get_header_size(u32 api_ver)
+{
+	return UCODE_HEADER_SIZE(1);
+}
+static u32 iwl4965_ucode_get_build(const struct iwl_ucode_header *ucode,
+				   u32 api_ver)
+{
+	return 0;
+}
+static u8 *iwl4965_ucode_get_data(const struct iwl_ucode_header *ucode,
+				  u32 api_ver)
+{
+	return (u8 *) ucode->u.v1.data;
+}
+
+IWL4965_UCODE_GET(inst_size);
+IWL4965_UCODE_GET(data_size);
+IWL4965_UCODE_GET(init_size);
+IWL4965_UCODE_GET(init_data_size);
+IWL4965_UCODE_GET(boot_size);
+
 static struct iwl_hcmd_ops iwl4965_hcmd = {
 	.rxon_assoc = iwl4965_send_rxon_assoc,
 	.commit_rxon = iwl_commit_rxon,
 	.set_rxon_chain = iwl_set_rxon_chain,
 };
 
+static struct iwl_ucode_ops iwl4965_ucode = {
+	.get_header_size = iwl4965_ucode_get_header_size,
+	.get_build = iwl4965_ucode_get_build,
+	.get_inst_size = iwl4965_ucode_get_inst_size,
+	.get_data_size = iwl4965_ucode_get_data_size,
+	.get_init_size = iwl4965_ucode_get_init_size,
+	.get_init_data_size = iwl4965_ucode_get_init_data_size,
+	.get_boot_size = iwl4965_ucode_get_boot_size,
+	.get_data = iwl4965_ucode_get_data,
+};
 static struct iwl_hcmd_utils_ops iwl4965_hcmd_utils = {
 	.get_hcmd_size = iwl4965_get_hcmd_size,
 	.build_addsta_hcmd = iwl4965_build_addsta_hcmd,
@@ -2287,6 +2325,7 @@ static struct iwl_lib_ops iwl4965_lib = {
 };
 
 static struct iwl_ops iwl4965_ops = {
+	.ucode = &iwl4965_ucode,
 	.lib = &iwl4965_lib,
 	.hcmd = &iwl4965_hcmd,
 	.utils = &iwl4965_hcmd_utils,
drivers/net/wireless/iwlwifi/iwl-5000.c +58 -0

88 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-6000.c +18 -7
index bd438d8..e4a405f 100644
@@ -46,8 +46,8 @@
 #include "iwl-5000-hw.h"
 
 /* Highest firmware API version supported */
-#define IWL6000_UCODE_API_MAX 2
-#define IWL6050_UCODE_API_MAX 2
+#define IWL6000_UCODE_API_MAX 3
+#define IWL6050_UCODE_API_MAX 3
 
 /* Lowest firmware API version supported */
 #define IWL6000_UCODE_API_MIN 1
@@ -69,6 +69,7 @@ static struct iwl_hcmd_utils_ops iwl6000_hcmd_utils = {
 };
 
 static struct iwl_ops iwl6000_ops = {
+	.ucode = &iwl5000_ucode,
 	.lib = &iwl5000_lib,
 	.hcmd = &iwl5000_hcmd,
 	.utils = &iwl6000_hcmd_utils,
@@ -81,13 +82,15 @@ struct iwl_cfg iwl6000_2ag_cfg = {
 	.ucode_api_min = IWL6000_UCODE_API_MIN,
 	.sku = IWL_SKU_A|IWL_SKU_G,
 	.ops = &iwl6000_ops,
-	.eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
+	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.eeprom_ver = EEPROM_5000_EEPROM_VERSION,
 	.eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
 	.mod_params = &iwl50_mod_params,
 	.valid_tx_ant = ANT_BC,
 	.valid_rx_ant = ANT_BC,
 	.need_pll_cfg = false,
+	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
+	.shadow_ram_support = true,
 };
 
 struct iwl_cfg iwl6000_2agn_cfg = {
@@ -97,13 +100,15 @@ struct iwl_cfg iwl6000_2agn_cfg = {
 	.ucode_api_min = IWL6000_UCODE_API_MIN,
 	.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
 	.ops = &iwl6000_ops,
-	.eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
+	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.eeprom_ver = EEPROM_5000_EEPROM_VERSION,
 	.eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
 	.mod_params = &iwl50_mod_params,
 	.valid_tx_ant = ANT_AB,
 	.valid_rx_ant = ANT_AB,
 	.need_pll_cfg = false,
+	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
+	.shadow_ram_support = true,
 };
 
 struct iwl_cfg iwl6050_2agn_cfg = {
@@ -113,13 +118,15 @@ struct iwl_cfg iwl6050_2agn_cfg = {
 	.ucode_api_min = IWL6050_UCODE_API_MIN,
 	.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
 	.ops = &iwl6000_ops,
-	.eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
+	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.eeprom_ver = EEPROM_5000_EEPROM_VERSION,
 	.eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
 	.mod_params = &iwl50_mod_params,
 	.valid_tx_ant = ANT_AB,
 	.valid_rx_ant = ANT_AB,
 	.need_pll_cfg = false,
+	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
+	.shadow_ram_support = true,
 };
 
 struct iwl_cfg iwl6000_3agn_cfg = {
@@ -129,13 +136,15 @@ struct iwl_cfg iwl6000_3agn_cfg = {
 	.ucode_api_min = IWL6000_UCODE_API_MIN,
 	.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
 	.ops = &iwl6000_ops,
-	.eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
+	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.eeprom_ver = EEPROM_5000_EEPROM_VERSION,
 	.eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
 	.mod_params = &iwl50_mod_params,
 	.valid_tx_ant = ANT_ABC,
 	.valid_rx_ant = ANT_ABC,
 	.need_pll_cfg = false,
+	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
+	.shadow_ram_support = true,
 };
 
 struct iwl_cfg iwl6050_3agn_cfg = {
@@ -145,13 +154,15 @@ struct iwl_cfg iwl6050_3agn_cfg = {
 	.ucode_api_min = IWL6050_UCODE_API_MIN,
 	.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
 	.ops = &iwl6000_ops,
-	.eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
+	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.eeprom_ver = EEPROM_5000_EEPROM_VERSION,
 	.eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
 	.mod_params = &iwl50_mod_params,
 	.valid_tx_ant = ANT_ABC,
 	.valid_rx_ant = ANT_ABC,
 	.need_pll_cfg = false,
+	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
+	.shadow_ram_support = true,
 };
 
 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
drivers/net/wireless/iwlwifi/iwl-agn.c +33 -24

137 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-core.h +16 -0
index dabf663..1e51891 100644
@@ -116,6 +116,17 @@ struct iwl_temp_ops {
 	void (*set_ct_kill)(struct iwl_priv *priv);
 };
 
+struct iwl_ucode_ops {
+	u32 (*get_header_size)(u32);
+	u32 (*get_build)(const struct iwl_ucode_header *, u32);
+	u32 (*get_inst_size)(const struct iwl_ucode_header *, u32);
+	u32 (*get_data_size)(const struct iwl_ucode_header *, u32);
+	u32 (*get_init_size)(const struct iwl_ucode_header *, u32);
+	u32 (*get_init_data_size)(const struct iwl_ucode_header *, u32);
+	u32 (*get_boot_size)(const struct iwl_ucode_header *, u32);
+	u8 * (*get_data)(const struct iwl_ucode_header *, u32);
+};
+
 struct iwl_lib_ops {
 	/* set hw dependent parameters */
 	int (*set_hw_params)(struct iwl_priv *priv);
@@ -171,6 +182,7 @@ struct iwl_lib_ops {
 };
 
 struct iwl_ops {
+	const struct iwl_ucode_ops *ucode;
 	const struct iwl_lib_ops *lib;
 	const struct iwl_hcmd_ops *hcmd;
 	const struct iwl_hcmd_utils_ops *utils;
@@ -195,6 +207,8 @@ struct iwl_mod_params {
  * 	filename is constructed as fw_name_pre<api>.ucode.
  * @ucode_api_max: Highest version of uCode API supported by driver.
  * @ucode_api_min: Lowest version of uCode API supported by driver.
+ * @max_ll_items: max number of OTP blocks
+ * @shadow_ram_support: shadow support for OTP memory
  *
  * We enable the driver to be backward compatible wrt API version. The
  * driver specifies which APIs it supports (with @ucode_api_max being the
@@ -231,6 +245,8 @@ struct iwl_cfg {
 	u8   valid_rx_ant;
 	bool need_pll_cfg;
 	bool use_isr_legacy;
+	const u16 max_ll_items;
+	const bool shadow_ram_support;
 };
 
 /***************************
drivers/net/wireless/iwlwifi/iwl-dev.h +35 -8

62 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-eeprom.c +150 -35

222 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-eeprom.h +8 -2
index 195b4ef..7899885 100644
@@ -180,8 +180,14 @@ struct iwl_eeprom_channel {
 #define EEPROM_5050_EEPROM_VERSION	(0x21E)
 
 /* OTP */
-#define OTP_LOWER_BLOCKS_TOTAL		(3)
-#define OTP_BLOCK_SIZE			(0x400)
+/* lower blocks contain EEPROM image and calibration data */
+#define OTP_LOW_IMAGE_SIZE		(2 * 512 * sizeof(u16)) /* 2 KB */
+/* high blocks contain PAPD data */
+#define OTP_HIGH_IMAGE_SIZE_6x00        (6 * 512 * sizeof(u16)) /* 6 KB */
+#define OTP_HIGH_IMAGE_SIZE_1000        (0x200 * sizeof(u16)) /* 1024 bytes */
+#define OTP_MAX_LL_ITEMS_1000		(3)	/* OTP blocks for 1000 */
+#define OTP_MAX_LL_ITEMS_6x00		(4)	/* OTP blocks for 6x00 */
+#define OTP_MAX_LL_ITEMS_6x50		(7)	/* OTP blocks for 6x50 */
 
 /* 2.4 GHz */
 extern const u8 iwl_eeprom_band_1[14];
drivers/net/wireless/iwlwifi/iwl-prph.h +4 -1
index 3b9cac3..d393e8f 100644
@@ -80,6 +80,8 @@
 #define APMG_RFKILL_REG			(APMG_BASE + 0x0014)
 #define APMG_RTC_INT_STT_REG		(APMG_BASE + 0x001c)
 #define APMG_RTC_INT_MSK_REG		(APMG_BASE + 0x0020)
+#define APMG_DIGITAL_SVR_REG		(APMG_BASE + 0x0058)
+#define APMG_ANALOG_SVR_REG		(APMG_BASE + 0x006C)
 
 #define APMG_CLK_VAL_DMA_CLK_RQT	(0x00000200)
 #define APMG_CLK_VAL_BSM_CLK_RQT	(0x00000800)
@@ -91,7 +93,8 @@
 #define APMG_PS_CTRL_VAL_PWR_SRC_VMAIN		(0x00000000)
 #define APMG_PS_CTRL_VAL_PWR_SRC_MAX		(0x01000000) /* 3945 only */
 #define APMG_PS_CTRL_VAL_PWR_SRC_VAUX		(0x02000000)
-
+#define APMG_SVR_VOLTAGE_CONFIG_BIT_MSK	(0x000001E0) /* bit 8:5 */
+#define APMG_SVR_DIGITAL_VOLTAGE_1_32		(0x00000060)
 
 #define APMG_PCIDEV_STT_VAL_L1_ACT_DIS		(0x00000800)
 
drivers/net/wireless/iwlwifi/iwl-scan.c +2 -1
index e26875d..474fd49 100644
@@ -799,7 +799,8 @@ void iwl_bg_abort_scan(struct work_struct *work)
 {
 	struct iwl_priv *priv = container_of(work, struct iwl_priv, abort_scan);
 
-	if (!iwl_is_ready(priv))
+	if (!test_bit(STATUS_READY, &priv->status) ||
+	    !test_bit(STATUS_GEO_CONFIGURED, &priv->status))
 		return;
 
 	mutex_lock(&priv->mutex);
drivers/net/wireless/iwlwifi/iwl3945-base.c +24 -21

109 lines not on this page · raw message

drivers/net/wireless/p54/p54usb.c +1 -0
index 0e877a1..6e1b889 100644
@@ -66,6 +66,7 @@ static struct usb_device_id p54u_table[] __devinitdata = {
 	{USB_DEVICE(0x0bf8, 0x1009)},   /* FUJITSU E-5400 USB D1700*/
 	{USB_DEVICE(0x0cde, 0x0006)},   /* Medion MD40900 */
 	{USB_DEVICE(0x0cde, 0x0008)},	/* Sagem XG703A */
+	{USB_DEVICE(0x0cde, 0x0015)},	/* Zcomax XG-705A */
 	{USB_DEVICE(0x0d8e, 0x3762)},	/* DLink DWL-G120 Cohiba */
 	{USB_DEVICE(0x124a, 0x4025)},	/* IOGear GWU513 (GW3887IK chip) */
 	{USB_DEVICE(0x1260, 0xee22)},	/* SMC 2862W-G version 2 */
drivers/pcmcia/at91_cf.c +1 -1
index 9e1140f..e1dcced 100644
@@ -363,7 +363,7 @@ static int at91_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
 	struct at91_cf_socket	*cf = platform_get_drvdata(pdev);
 	struct at91_cf_data	*board = cf->board;
 
-	pcmcia_socket_dev_suspend(&pdev->dev, mesg);
+	pcmcia_socket_dev_suspend(&pdev->dev);
 	if (device_may_wakeup(&pdev->dev)) {
 		enable_irq_wake(board->det_pin);
 		if (board->irq_pin)
drivers/pcmcia/au1000_generic.c +1 -1
index 9001334..0208870 100644
@@ -515,7 +515,7 @@ static int au1x00_drv_pcmcia_probe(struct platform_device *dev)
 static int au1x00_drv_pcmcia_suspend(struct platform_device *dev,
 				     pm_message_t state)
 {
-	return pcmcia_socket_dev_suspend(&dev->dev, state);
+	return pcmcia_socket_dev_suspend(&dev->dev);
 }
 
 static int au1x00_drv_pcmcia_resume(struct platform_device *dev)
drivers/pcmcia/bfin_cf_pcmcia.c +1 -1
index b59d411..300b368 100644
@@ -302,7 +302,7 @@ static int __devexit bfin_cf_remove(struct platform_device *pdev)
 
 static int bfin_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
 {
-	return pcmcia_socket_dev_suspend(&pdev->dev, mesg);
+	return pcmcia_socket_dev_suspend(&pdev->dev);
 }
 
 static int bfin_cf_resume(struct platform_device *pdev)
drivers/pcmcia/cs.c +1 -1
index 0660ad1..934d4be 100644
@@ -101,7 +101,7 @@ EXPORT_SYMBOL(pcmcia_socket_list_rwsem);
 static int socket_resume(struct pcmcia_socket *skt);
 static int socket_suspend(struct pcmcia_socket *skt);
 
-int pcmcia_socket_dev_suspend(struct device *dev, pm_message_t state)
+int pcmcia_socket_dev_suspend(struct device *dev)
 {
 	struct pcmcia_socket *socket;
 
drivers/pcmcia/i82092.c +1 -1
index 46561fa..a04f21c 100644
@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(pci, i82092aa_pci_ids);
 #ifdef CONFIG_PM
 static int i82092aa_socket_suspend (struct pci_dev *dev, pm_message_t state)
 {
-	return pcmcia_socket_dev_suspend(&dev->dev, state);
+	return pcmcia_socket_dev_suspend(&dev->dev);
 }
 
 static int i82092aa_socket_resume (struct pci_dev *dev)
drivers/pcmcia/i82365.c +1 -1
index 40d4953..b906abe 100644
@@ -1241,7 +1241,7 @@ static int pcic_init(struct pcmcia_socket *s)
 static int i82365_drv_pcmcia_suspend(struct platform_device *dev,
 				     pm_message_t state)
 {
-	return pcmcia_socket_dev_suspend(&dev->dev, state);
+	return pcmcia_socket_dev_suspend(&dev->dev);
 }
 
 static int i82365_drv_pcmcia_resume(struct platform_device *dev)
drivers/pcmcia/m32r_cfc.c +1 -1
index 62b4ecc..d1d89c4 100644
@@ -699,7 +699,7 @@ static struct pccard_operations pcc_operations = {
 static int cfc_drv_pcmcia_suspend(struct platform_device *dev,
 				     pm_message_t state)
 {
-	return pcmcia_socket_dev_suspend(&dev->dev, state);
+	return pcmcia_socket_dev_suspend(&dev->dev);
 }
 
 static int cfc_drv_pcmcia_resume(struct platform_device *dev)
drivers/pcmcia/m32r_pcc.c +1 -1
index 12034b4..a065583 100644
@@ -675,7 +675,7 @@ static struct pccard_operations pcc_operations = {
 static int pcc_drv_pcmcia_suspend(struct platform_device *dev,
 				     pm_message_t state)
 {
-	return pcmcia_socket_dev_suspend(&dev->dev, state);
+	return pcmcia_socket_dev_suspend(&dev->dev);
 }
 
 static int pcc_drv_pcmcia_resume(struct platform_device *dev)
drivers/pcmcia/m8xx_pcmcia.c +1 -1
index d1ad096..c69f2c4 100644
@@ -1296,7 +1296,7 @@ static int m8xx_remove(struct of_device *ofdev)
 #ifdef CONFIG_PM
 static int m8xx_suspend(struct platform_device *pdev, pm_message_t state)
 {
-	return pcmcia_socket_dev_suspend(&pdev->dev, state);
+	return pcmcia_socket_dev_suspend(&pdev->dev);
 }
 
 static int m8xx_resume(struct platform_device *pdev)
drivers/pcmcia/omap_cf.c +1 -1
index f373639..68570bc 100644
@@ -334,7 +334,7 @@ static int __exit omap_cf_remove(struct platform_device *pdev)
 
 static int omap_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
 {
-	return pcmcia_socket_dev_suspend(&pdev->dev, mesg);
+	return pcmcia_socket_dev_suspend(&pdev->dev);
 }
 
 static int omap_cf_resume(struct platform_device *pdev)
drivers/pcmcia/pd6729.c +1 -1
index 8bed1da..1c39d34 100644
@@ -758,7 +758,7 @@ static void __devexit pd6729_pci_remove(struct pci_dev *dev)
 #ifdef CONFIG_PM
 static int pd6729_socket_suspend(struct pci_dev *dev, pm_message_t state)
 {
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/pcmcia/pxa2xx_base.c +1 -1
index c49a726..86ad876 100644

Lines of this file are not shown. View the raw message.

drivers/pcmcia/sa1100_generic.c +1 -1
index d8da5ac..2d0e997 100644

Lines of this file are not shown. View the raw message.

drivers/pcmcia/sa1111_generic.c +1 -1
index 401052a..4be4e17 100644

Lines of this file are not shown. View the raw message.

drivers/pcmcia/tcic.c +1 -1
index 8eb0423..582413f 100644

Lines of this file are not shown. View the raw message.

drivers/pcmcia/vrc4171_card.c +1 -1
index d4ad50d..c9fcbdc 100644

Lines of this file are not shown. View the raw message.

drivers/pcmcia/yenta_socket.c +48 -40

88 lines not on this page · raw message

drivers/platform/x86/sony-laptop.c +6 -0
index dafaa4a..a234a9d 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/thinkpad_acpi.c +4 -4
index e856008..d287283 100644

Lines of this file are not shown. View the raw message.

drivers/serial/bfin_5xx.c +4 -0
index b4a7650..4fff4e5 100644

Lines of this file are not shown. View the raw message.

drivers/serial/serial_cs.c +1 -0
index 79c9c5f..6ecb51b 100644

Lines of this file are not shown. View the raw message.

drivers/usb/class/cdc-acm.c +3 -4
index 2bfc41e..e3861b2 100644

Lines of this file are not shown. View the raw message.

drivers/usb/class/cdc-wdm.c +24 -6
index ba589d4..a9c3399 100644

Lines of this file are not shown. View the raw message.

drivers/usb/class/usbtmc.c +18 -4
index b09a527..21b3719 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/config.c +1 -1
index a16c538..0d3af6a 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/sl811-hcd.c +6 -2
index a949259..5b22a4d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-dbg.c +3 -2
index 705e343..33128d5 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-hcd.c +301 -69

370 lines not on this page · raw message

drivers/usb/host/xhci-mem.c +59 -5

64 lines not on this page · raw message

drivers/usb/host/xhci-pci.c +13 -0
index 592fe7e..8fb308d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-ring.c +208 -24

232 lines not on this page · raw message

drivers/usb/host/xhci.h +35 -6

41 lines not on this page · raw message

drivers/usb/serial/ark3116.c +11 -35

46 lines not on this page · raw message

drivers/usb/serial/console.c +19 -9
index 0e4f2e4..3e49b2e 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/cp210x.c +0 -6
index 985cbcf..b5275c4 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/cypress_m8.c +3 -9
index 59adfe1..27b5a27 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/empeg.c +3 -9
index 80cb347..3433f9d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ftdi_sio.c +7 -0
index 8fec5d4..0cc78f9 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ftdi_sio.h +10 -0
index 8c92b88..6f31e0d 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/iuu_phoenix.c +14 -17
index 96873a7..af6df6c 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/kobil_sct.c +11 -11
index 6db0e56..46d47d1 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/option.c +4 -0
index c784ddb..0101548 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/oti6858.c +10 -11
index 3cece27..ef34cff 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/pl2303.c +1 -0
index 3e86815..124d5ae 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/pl2303.h +4 -0
index ee9505e..d640dc9 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/spcp8x5.c +10 -11
index 3c249d8..993a6d5 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/usb-serial.c +173 -212

385 lines not on this page · raw message

drivers/usb/serial/whiteheat.c +3 -3
index 8d126dd..f7232b1 100644

Lines of this file are not shown. View the raw message.

drivers/usb/storage/initializers.c +1 -1
index ec17c96..105d900 100644

Lines of this file are not shown. View the raw message.

drivers/usb/storage/onetouch.c +1 -1
index 380233b..80e65f2 100644

Lines of this file are not shown. View the raw message.

drivers/video/console/fbcon.c +10 -0
index 3a44695..29ff5ea 100644

Lines of this file are not shown. View the raw message.

drivers/video/s3c-fb.c +1 -1
index 5a72083..adf9632 100644

Lines of this file are not shown. View the raw message.

drivers/video/sis/vstruct.h +1 -1
index 705c853..bef4aae 100644

Lines of this file are not shown. View the raw message.

drivers/xen/Makefile +3 -0
index ec2a39b..7c28434 100644

Lines of this file are not shown. View the raw message.

fs/cifs/cifsglob.h +2 -2
index 6084d63..3cfec69 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/crypto.c +3 -2
index b91851f..f0b53df 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/inode.c +2 -0
index 2f0945d..056fed6 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/keystore.c +22 -6
index 259525c..c77438f 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/kthread.c +8 -16
index c6d7a4d..e14cf7e 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/main.c +1 -2
index 9f0aa98..101fe4c 100644

Lines of this file are not shown. View the raw message.

fs/inode.c +8 -6
index ae7b67e..1a959c0 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4callback.c +2 -2
index 3fd23f7..bf9b470 100644

Lines of this file are not shown. View the raw message.

fs/nilfs2/btnode.c +1 -0
index c668bca..5be2c8b 100644

Lines of this file are not shown. View the raw message.

fs/proc/kcore.c +7 -1
index 59b43a0..5fd7d2b 100644

Lines of this file are not shown. View the raw message.

fs/proc/uptime.c +6 -1
index 0c10a0b..766b1d4 100644

Lines of this file are not shown. View the raw message.

include/linux/tty.h +7 -1
index e8c6c91..b982a17 100644

Lines of this file are not shown. View the raw message.

include/linux/usb/serial.h +3 -0
index 0ec50ba..73f121e 100644

Lines of this file are not shown. View the raw message.

include/pcmcia/ss.h +1 -1
index 9b4ac93..56677eb 100644

Lines of this file are not shown. View the raw message.

kernel/perf_counter.c +10 -10
index 3f49f53..b1dc468 100644

Lines of this file are not shown. View the raw message.

mm/hugetlb.c +1 -1
index cafdcee..cae0337 100644

Lines of this file are not shown. View the raw message.

mm/memory.c +2 -1
index aede2ce..753b2e6 100644

Lines of this file are not shown. View the raw message.

mm/mlock.c +40 -59

99 lines not on this page · raw message

mm/mmap.c +2 -2
index 8101de4..cbb7cb3 100644

Lines of this file are not shown. View the raw message.

mm/nommu.c +12 -22
index 66e81e7..82fedca 100644

Lines of this file are not shown. View the raw message.

mm/page_alloc.c +11 -1
index a0de15f..0b3c6cb 100644

Lines of this file are not shown. View the raw message.

net/ax25/af_ax25.c +1 -1
index da0f64f..f03529c 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_netfilter.c +1 -1
index d22f611..991fe40 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/ebt_ulog.c +1 -1
index 133eeae..ce50688 100644

Lines of this file are not shown. View the raw message.

net/can/af_can.c +3 -1
index e733725..264c968 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/nf_nat_core.c +1 -1
index 3229e0a..b6ddd56 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_core.c +3 -3
index b5869b9..b8614c6 100644

Lines of this file are not shown. View the raw message.

net/packet/af_packet.c +2 -2
index ebe5718..f9f7177 100644

Lines of this file are not shown. View the raw message.

scripts/Kbuild.include +2 -2
index c29be8f..43300b3 100644

Lines of this file are not shown. View the raw message.

scripts/kallsyms.c +1 -1
index 64343cc..86c3896 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-annotate.c +2 -2
index 5e17de9..5010952 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-report.c +2 -2
index 8b2ec88..b8a75f6 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/module.c +1 -1
index ddabe92..702083d 100644

Lines of this file are not shown. View the 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.