Linux 3.8.6
Greg KH
maintainerI'm announcing the release of the 3.8.6 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/arm/boot/dts/kirkwood-goflexnet.dts | 1 arch/arm/include/asm/signal.h | 1 arch/arm/mach-cns3xxx/core.c | 16 - arch/arm/mach-cns3xxx/include/mach/cns3xxx.h | 16 - arch/arm/mach-imx/common.h | 2 arch/arm/mach-imx/hotplug.c | 12 + arch/arm/mach-imx/src.c | 12 + arch/arm/mach-omap2/common.h | 3 arch/arm/mach-omap2/io.c | 18 + arch/arm/mach-omap2/timer.c | 4 arch/avr32/include/asm/signal.h | 1 arch/cris/include/asm/signal.h | 1 arch/h8300/include/asm/signal.h | 1 arch/m32r/include/asm/signal.h | 1 arch/m68k/include/asm/signal.h | 1 arch/mn10300/include/asm/signal.h | 1 arch/powerpc/include/asm/signal.h | 1 arch/s390/include/asm/signal.h | 1 arch/sparc/include/asm/signal.h | 2 arch/tile/kernel/setup.c | 25 +- arch/x86/include/asm/signal.h | 3 arch/x86/include/asm/xen/hypercall.h | 4 arch/xtensa/include/asm/signal.h | 1 drivers/block/aoe/aoecmd.c | 3 drivers/block/loop.c | 9 drivers/block/xen-blkback/blkback.c | 38 ++- drivers/block/xen-blkback/common.h | 25 ++ drivers/block/xen-blkfront.c | 41 +-- drivers/bluetooth/ath3k.c | 4 drivers/bluetooth/btusb.c | 2 drivers/char/virtio_console.c | 22 + drivers/crypto/caam/caamalg.c | 27 -- drivers/crypto/caam/compat.h | 1 drivers/crypto/talitos.c | 30 -- drivers/firmware/efivars.c | 87 +++++++ drivers/gpu/drm/i915/intel_display.c | 11 drivers/gpu/drm/i915/intel_dp.c | 12 - drivers/hid/hid-ids.h | 6 drivers/hid/usbhid/hid-quirks.c | 2 drivers/iommu/amd_iommu.c | 22 - drivers/media/pci/bt8xx/bttv-driver.c | 20 + drivers/net/bonding/bond_main.c | 3 drivers/net/bonding/bond_sysfs.c | 97 ++++---- drivers/net/can/sja1000/plx_pci.c | 4 drivers/net/can/sja1000/sja1000.c | 6 drivers/net/can/sja1000/sja1000.h | 2 drivers/net/ethernet/atheros/atl1e/atl1e.h | 1 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 19 - drivers/net/ethernet/broadcom/tg3.c | 7 drivers/net/ethernet/davicom/dm9000.c | 214 +++++++++---------- drivers/net/ethernet/davicom/dm9000.h | 11 drivers/net/ethernet/freescale/fec_ptp.c | 3 drivers/net/ethernet/marvell/sky2.c | 2 drivers/net/ethernet/marvell/sky2.h | 2 drivers/net/ethernet/micrel/ks8851.c | 2 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 4 drivers/net/ethernet/ti/cpsw.c | 4 drivers/net/ethernet/ti/davinci_emac.c | 2 drivers/net/usb/smsc75xx.c | 12 - drivers/net/wireless/ath/ath9k/ar9003_calib.c | 4 drivers/net/wireless/ath/ath9k/link.c | 29 +- drivers/net/wireless/b43/dma.c | 65 ++++- drivers/net/wireless/b43/phy_n.c | 8 drivers/net/wireless/iwlwifi/dvm/lib.c | 9 drivers/net/wireless/iwlwifi/dvm/ucode.c | 4 drivers/net/wireless/iwlwifi/pcie/tx.c | 2 drivers/net/wireless/mwifiex/cmdevt.c | 22 + drivers/net/wireless/mwifiex/init.c | 8 drivers/net/wireless/mwifiex/main.h | 4 drivers/net/wireless/mwifiex/scan.c | 8 drivers/net/wireless/mwifiex/sta_ioctl.c | 10 drivers/net/wireless/rtlwifi/usb.c | 1 drivers/regulator/core.c | 4 drivers/staging/comedi/drivers/s626.c | 2 drivers/target/target_core_transport.c | 4 drivers/tty/serial/atmel_serial.c | 11 drivers/tty/vt/vc_screen.c | 6 drivers/usb/gadget/udc-core.c | 2 drivers/usb/host/ehci-sched.c | 2 drivers/usb/host/xhci-ring.c | 24 +- drivers/usb/host/xhci.h | 4 drivers/usb/serial/ark3116.c | 10 drivers/usb/serial/ch341.c | 11 drivers/usb/serial/cypress_m8.c | 14 - drivers/usb/serial/f81232.c | 9 drivers/usb/serial/ftdi_sio.c | 20 - drivers/usb/serial/ftdi_sio_ids.h | 7 drivers/usb/serial/io_edgeport.c | 12 - drivers/usb/serial/io_ti.c | 12 - drivers/usb/serial/mct_u232.c | 13 - drivers/usb/serial/mos7840.c | 16 - drivers/usb/serial/oti6858.c | 10 drivers/usb/serial/pl2303.c | 11 drivers/usb/serial/quatech2.c | 12 - drivers/usb/serial/spcp8x5.c | 9 drivers/usb/serial/ssu100.c | 12 - drivers/usb/serial/ti_usb_3410_5052.c | 10 drivers/usb/serial/usb-serial.c | 1 drivers/xen/events.c | 20 + drivers/xen/fallback.c | 3 drivers/xen/xen-pciback/pci_stub.c | 59 +++-- fs/block_dev.c | 1 fs/btrfs/ctree.c | 30 +- fs/btrfs/extent-tree.c | 49 +++- fs/btrfs/extent_io.c | 33 ++ fs/btrfs/extent_io.h | 2 fs/btrfs/inode.c | 14 + fs/btrfs/scrub.c | 3 fs/btrfs/tree-log.c | 5 fs/dcache.c | 16 - fs/namespace.c | 54 ++++ fs/nfs/blocklayout/blocklayoutdm.c | 4 fs/nfs/idmap.c | 13 - fs/nfs/nfs4filelayout.c | 1 fs/nfs/nfs4proc.c | 14 - fs/nfs/pnfs.c | 54 +++- fs/nfsd/nfs4xdr.c | 2 fs/pnode.c | 6 fs/pnode.h | 1 fs/proc/root.c | 4 fs/sysfs/dir.c | 17 + fs/sysfs/mount.c | 4 include/linux/fs_struct.h | 2 include/linux/mount.h | 2 include/linux/thermal.h | 2 include/linux/usb/serial.h | 2 include/linux/user_namespace.h | 4 include/uapi/asm-generic/signal.h | 4 include/uapi/linux/packet_diag.h | 4 include/uapi/linux/unix_diag.h | 4 include/xen/interface/io/blkif.h | 10 include/xen/interface/physdev.h | 6 ipc/mqueue.c | 12 - kernel/pid_namespace.c | 3 kernel/signal.c | 2 kernel/trace/trace.c | 38 ++- kernel/trace/trace.h | 6 kernel/trace/trace_irqsoff.c | 19 + kernel/trace/trace_sched_wakeup.c | 18 + kernel/user.c | 2 kernel/user_namespace.c | 11 net/8021q/vlan.c | 14 - net/bluetooth/sco.c | 1 net/core/dev.c | 7 net/core/flow.c | 2 net/core/scm.c | 4 net/ipv4/tcp_input.c | 7 net/ipv4/tcp_output.c | 7 net/ipv6/addrconf.c | 26 -- net/ipv6/ip6_input.c | 21 + net/irda/af_irda.c | 6 net/mac80211/mlme.c | 4 net/mac80211/sta_info.c | 12 - net/netlink/genetlink.c | 1 net/sched/sch_fq_codel.c | 2 net/sunrpc/sched.c | 9 net/unix/af_unix.c | 7 158 files changed, 1341 insertions(+), 658 deletions(-)
Al Viro (2):
vt: synchronize_rcu() under spinlock is not nice... Nest rename_lock inside vfsmount_lock
Alan Stern (1):
usb: gadget: udc-core: fix a regression during gadget driver unbinding
Amit Shah (2):
virtio: console: rename cvq_lock to c_ivq_lock
virtio: console: add locking around c_ovq operations
Amitkumar Karwar (1):
mwifiex: fix race when queuing commands
Anatol Pomozov (1):
loop: prevent bdev freeing while device in use
Andrew Morton (1):
kernel/signal.c: use __ARCH_HAS_SA_RESTORER instead of SA_RESTORER
Andrey Vagin (1):
net: fix *_DIAG_MAX constants
Ben Hutchings (1):
signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer
Bing Zhao (2):
mwifiex: skip pending commands after function shutdown
mwifiex: cancel cmd timer and free curr_cmd in shutdown process
Chris Mason (1):
Btrfs: fix race between mmap writes and compression
Chris Metcalf (1):
tile: expect new initramfs name from hypervisor file system
Cong Wang (1):
8021q: fix a potential use-after-free
David Vrabel (2):
xen/blkback: correctly respond to unknown, non-native requests xen/events: avoid race with raising an event in unmask_evtchn()
Emmanuel Grumbach (2):
iwlwifi: fix length check in multi-TB HCMD
iwlwifi: dvm: don't send HCMD in restart flow
Eric Dumazet (4):
net: remove a WARN_ON() in net_enable_timestamp()
tcp: preserve ACK clocking in TSO
aoe: reserve enough headroom on skbs
net: add a synchronize_net() in netdev_rx_handler_unregister()
Eric Hutter (1):
ARM: kirkwood: Fix chip-delay for GoFlex Net
Eric W. Biederman (7):
scm: Require CAP_SYS_ADMIN over the current pidns to spoof pids.
pid: Handle the exit of a multi-threaded init.
userns: Don't allow creation if the user is chrooted
vfs: Add a mount flag to lock read only bind mounts
vfs: Carefully propogate mounts across user namespaces
ipc: Restrict mounting the mqueue filesystem
userns: Restrict when proc and sysfs can be mounted
Fabio Estevam (1):
fec: Fix the build as module
Felix Fietkau (2):
ath9k_hw: revert chainmask to user configuration after calibration
ath9k: limit tx path hang check to normal data queues
Greg Kroah-Hartman (1):
Linux 3.8.6
Hannes Frederic Sowa (3):
atl1e: drop pci-msi support because of packet corruption
ipv6: don't accept multicast traffic with scope 0
ipv6: don't accept node local multicast traffic from the wire
Hans de Goede (1):
media: [REGRESSION] bt8xx: Fix too large height in cropcap
Hong Zhiguo (1):
ipv6: fix bad free of addrconf_init_net
Horia Geanta (2):
Revert "crypto: talitos - add IPsec ESN support" Revert "crypto: caam - add IPsec ESN support"
Ian Abbott (1):
staging: comedi: s626: fix continuous acquisition
Iestyn C. Elfick (1):
b43: A fix for DMA transmission sequence errors
J. Bruce Fields (1):
nfsd4: reject "negative" acl lengths
Jan Beulich (2):
xen-pciback: notify hypervisor about devices intended to be assigned to guests
xen-blkback: fix dispatch_rw_block_io() error path
Jan Schmidt (1):
Btrfs: fix locking on ROOT_REPLACE operations in tree mod log
Jiri Kosina (1):
HID: usbhid: fix build problem
Joerg Roedel (1):
iommu/amd: Make sure dma_ops are set for hotplug devices
Johan Hovold (17):
USB: serial: add modem-status-change wait queue
USB: quatech2: fix use-after-free in TIOCMIWAIT
USB: mos7840: fix broken TIOCMIWAIT
USB: io_ti: fix use-after-free in TIOCMIWAIT
USB: oti6858: fix use-after-free in TIOCMIWAIT
USB: ftdi_sio: fix use-after-free in TIOCMIWAIT
USB: pl2303: fix use-after-free in TIOCMIWAIT
USB: mos7840: fix use-after-free in TIOCMIWAIT
USB: spcp8x5: fix use-after-free in TIOCMIWAIT
USB: ssu100: fix use-after-free in TIOCMIWAIT
USB: ch341: fix use-after-free in TIOCMIWAIT
USB: io_edgeport: fix use-after-free in TIOCMIWAIT
USB: f81232: fix use-after-free in TIOCMIWAIT
USB: ark3116: fix use-after-free in TIOCMIWAIT
USB: mct_u232: fix use-after-free in TIOCMIWAIT
USB: cypress_m8: fix use-after-free in TIOCMIWAIT
USB: ti_usb_3410_5052: fix use-after-free in TIOCMIWAIT
Johannes Berg (2):
mac80211: always synchronize_net() during station removal
mac80211: prevent spurious HT/VHT downgrade message
Josef Bacik (4):
Btrfs: use set_nlink if our i_nlink is 0
Btrfs: limit the global reserve to 512mb
Btrfs: don't drop path when printing out tree errors in scrub
Btrfs: fix space leak when we fail to reserve metadata space
Joseph CHANG (1):
DM9000B: driver initialization upgrade
Josh Boyer (2):
HID: usbhid: quirk for Realtek Multi-card reader
HID: usbhid: quirk for MSI GX680R led panel
Jussi Kivilinna (1):
rtlwifi: usb: add missing freeing of skbuff
Kees Cook (2):
tg3: fix length overflow in VPD firmware parsing net/irda: add missing error path release_sock call
Konstantin Holoborodko (1):
usb: ftdi_sio: Add support for Mitsubishi FX-USB-AW/-BD
Li RongQing (1):
net: fix the use of this_cpu_ptr
Lothar Waßmann (1):
net: ethernet: cpsw: fix erroneous condition in error check
Luis R. Rodriguez (1):
ath9k: avoid queueing hw check work when suspended
Mac Lin (1):
ARM: cns3xxx: fix mapping of private memory region
Marc Kleine-Budde (1):
can: sja1000: fix define conflict on SH
Masatake YAMATO (1):
thermal: shorten too long mcast group name
Matt Fleming (2):
efivars: explicitly calculate length of VariableName
efivars: Handle duplicate names from get_next_variable()
[email protected] (1):
ks8851: Fix interpretation of rxlen field.
Ming Lei (5):
Bluetooth: Add support for Dell[QCA 0cf3:0036]
Bluetooth: Add support for Dell[QCA 0cf3:817a]
sysfs: fix race between readdir and lseek
sysfs: handle failure path correctly for readdir()
USB: serial: fix hang when opening port
Mirko Lindner (2):
sky2: Receive Overflows not counted
sky2: Threshold for Pause Packet is set wrong
Mugunthan V N (2):
drivers: net: ethernet: davinci_emac: use netif_wake_queue() while restarting tx queue
drivers: net: ethernet: cpsw: use netif_wake_queue() while restarting tx queue
Nicholas Bellinger (1):
target: Fix RESERVATION_CONFLICT status regression for iscsi-target special case
Paul Moore (1):
unix: fix a race condition in unix_release()
Pawel Wieczorkiewicz (1):
tty: atmel_serial_probe(): index of atmel_ports[] fix
Rafał Miłecki (2):
b43: N-PHY: increase initial value of "mind" in RSSI calibration
b43: N-PHY: use more bits for offset in RSSI calibration
Rajendra Nayak (1):
ARM: OMAP: clocks: Delay clk inits atleast until slab is initialized
Roger Pau Monne (1):
xen-blkfront: switch from llist to list
Russ Dill (1):
regulator: Fix memory garbage dev_err printout.
Shawn Guo (1):
ARM: imx: fix sync issue between imx_cpu_die and imx_cpu_kill
Soeren Moch (1):
USB: EHCI: fix bug in iTD/siTD DMA pool allocation
Steve Glendinning (1):
smsc75xx: fix jumbo frame support
Steven Rostedt (Red Hat) (1):
tracing: Prevent buffer overwrite disabled for latency tracers
Takashi Iwai (1):
drm/i915: Use the fixed pixel clock for eDP in intel_dp_set_m_n()
Trond Myklebust (4):
SUNRPC: Add barriers to ensure read ordering in rpc_wake_up_task_queue_locked
NFSv4: Fix the string length returned by the idmapper
NFSv4.1: Fix a race in pNFS layoutcommit
NFSv4.1: Always clear the NFS_INO_LAYOUTCOMMIT in layoutreturn
Veaceslav Falico (3):
bonding: remove already created master sysfs link on failure
pch_gbe: fix ip_summed checksum reporting on rx
bonding: get netdev_rx_handler_unregister out of locks
Vijay Subramanian (1):
net: fq_codel: Fix off-by-one error
Ville Syrjälä (1):
drm/i915: Don't clobber crtc->fb when queue_flip fails
Vinicius Costa Gomes (1):
Bluetooth: Fix not closing SCO sockets in the BT_CONNECT2 state
Vivek Gautam (1):
usb: xhci: Fix TRB transfer length macro used for Event TRB.
Yuchung Cheng (1):
tcp: undo spurious timeout after SACK reneging
fanchaoting (1):
pnfs-block: removing DM device maybe cause oops when call dev_remove
[email protected] (1):
bonding: fix disabling of arp_interval and miimon
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 8 -SUBLEVEL = 5 +SUBLEVEL = 6 EXTRAVERSION = NAME = Displaced Humerus Anterior
arch/arm/boot/dts/kirkwood-goflexnet.dts +1 -0
@@ -77,6 +77,7 @@ }; nand@3000000 { + chip-delay = <40>; status = "okay"; partition@0 {
arch/arm/include/asm/signal.h +1 -0
@@ -29,6 +29,7 @@ struct sigaction {__sigrestore_t sa_restorer;sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/arm/mach-cns3xxx/core.c +3 -13
@@ -22,19 +22,9 @@static struct map_desc cns3xxx_io_desc[]__initdata = { { - .virtual =CNS3XXX_TC11MP_TWD_BASE_VIRT , - .pfn =__phys_to_pfn (CNS3XXX_TC11MP_TWD_BASE ), - .length =SZ_4K , - .type =MT_DEVICE , - }, { - .virtual =CNS3XXX_TC11MP_GIC_CPU_BASE_VIRT , - .pfn =__phys_to_pfn (CNS3XXX_TC11MP_GIC_CPU_BASE ), - .length =SZ_4K , - .type =MT_DEVICE , - }, { - .virtual =CNS3XXX_TC11MP_GIC_DIST_BASE_VIRT , - .pfn =__phys_to_pfn (CNS3XXX_TC11MP_GIC_DIST_BASE ), - .length =SZ_4K , + .virtual =CNS3XXX_TC11MP_SCU_BASE_VIRT , + .pfn =__phys_to_pfn (CNS3XXX_TC11MP_SCU_BASE ), + .length =SZ_8K , .type =MT_DEVICE , }, { .virtual =CNS3XXX_TIMER1_2_3_BASE_VIRT ,
arch/arm/mach-cns3xxx/include/mach/cns3xxx.h +8 -8
@@ -94,10 +94,10 @@#define RTC_INTR_STS_OFFSET 0x34#define CNS3XXX_MISC_BASE 0x76000000/* Misc Control */ -#define CNS3XXX_MISC_BASE_VIRT 0xFFF07000/* Misc Control */ +#define CNS3XXX_MISC_BASE_VIRT 0xFB000000/* Misc Control */ #define CNS3XXX_PM_BASE 0x77000000/* Power Management Control */ -#define CNS3XXX_PM_BASE_VIRT 0xFFF08000 +#define CNS3XXX_PM_BASE_VIRT 0xFB001000#define PM_CLK_GATE_OFFSET 0x00#define PM_SOFT_RST_OFFSET 0x04
@@ -109,7 +109,7 @@#define PM_PLL_HM_PD_OFFSET 0x1C#define CNS3XXX_UART0_BASE 0x78000000/* UART 0 */ -#define CNS3XXX_UART0_BASE_VIRT 0xFFF09000 +#define CNS3XXX_UART0_BASE_VIRT 0xFB002000#define CNS3XXX_UART1_BASE 0x78400000/* UART 1 */ #define CNS3XXX_UART1_BASE_VIRT 0xFFF0A000
@@ -130,7 +130,7 @@#define CNS3XXX_I2S_BASE_VIRT 0xFFF10000#define CNS3XXX_TIMER1_2_3_BASE 0x7C800000/* Timer */ -#define CNS3XXX_TIMER1_2_3_BASE_VIRT 0xFFF10800 +#define CNS3XXX_TIMER1_2_3_BASE_VIRT 0xFB003000#define TIMER1_COUNTER_OFFSET 0x00#define TIMER1_AUTO_RELOAD_OFFSET 0x04
@@ -227,16 +227,16 @@* Testchip peripheral and fpga gic regions */ #define CNS3XXX_TC11MP_SCU_BASE 0x90000000/* IRQ, Test chip */ -#define CNS3XXX_TC11MP_SCU_BASE_VIRT 0xFF000000 +#define CNS3XXX_TC11MP_SCU_BASE_VIRT 0xFB004000#define CNS3XXX_TC11MP_GIC_CPU_BASE 0x90000100/* Test chip interrupt controller CPU interface */ -#define CNS3XXX_TC11MP_GIC_CPU_BASE_VIRT 0xFF000100 +#define CNS3XXX_TC11MP_GIC_CPU_BASE_VIRT (CNS3XXX_TC11MP_SCU_BASE_VIRT + 0x100)#define CNS3XXX_TC11MP_TWD_BASE 0x90000600 -#define CNS3XXX_TC11MP_TWD_BASE_VIRT 0xFF000600 +#define CNS3XXX_TC11MP_TWD_BASE_VIRT (CNS3XXX_TC11MP_SCU_BASE_VIRT + 0x600)#define CNS3XXX_TC11MP_GIC_DIST_BASE 0x90001000/* Test chip interrupt controller distributor */ -#define CNS3XXX_TC11MP_GIC_DIST_BASE_VIRT 0xFF001000 +#define CNS3XXX_TC11MP_GIC_DIST_BASE_VIRT (CNS3XXX_TC11MP_SCU_BASE_VIRT + 0x1000)#define CNS3XXX_TC11MP_L220_BASE 0x92002000/* L220 registers */ #define CNS3XXX_TC11MP_L220_BASE_VIRT 0xFF002000
arch/arm/mach-imx/common.h +2 -0
@@ -116,6 +116,8 @@ void tzic_handle_irq(struct pt_regs *);extern void imx_enable_cpu (int cpu,bool enable);extern void imx_set_cpu_jump (int cpu,void *jump_addr); +extern u32 imx_get_cpu_arg (int cpu); +extern void imx_set_cpu_arg (int cpu,u32 arg);#ifdef CONFIG_DEBUG_LL extern void imx_lluart_map_io (void );#else
arch/arm/mach-imx/hotplug.c +12 -0
@@ -46,11 +46,23 @@ static inline void cpu_enter_lowpower(void)void imx_cpu_die (unsigned int cpu) {cpu_enter_lowpower (); +/* +* We use the cpu jumping argument register to sync with +* imx_cpu_kill() which is running on cpu0 and waiting for +* the register being cleared to kill the cpu. +*/ +imx_set_cpu_arg (cpu, ~0 );cpu_do_idle (); }int imx_cpu_kill (unsigned int cpu) { +unsigned long timeout = jiffies +msecs_to_jiffies (50 ); + +while (imx_get_cpu_arg (cpu) ==0 ) +if (time_after (jiffies, timeout)) +return 0 ;imx_enable_cpu (cpu, false); +imx_set_cpu_arg (cpu,0 );return 1 ; }
arch/arm/mach-imx/src.c +12 -0
@@ -43,6 +43,18 @@ void imx_set_cpu_jump(int cpu, void *jump_addr) src_base + SRC_GPR1 + cpu * 8); } +u32 imx_get_cpu_arg (int cpu) +{ + cpu =cpu_logical_map (cpu); +return readl_relaxed (src_base +SRC_GPR1 + cpu *8 +4 ); +} + +void imx_set_cpu_arg (int cpu,u32 arg) +{ + cpu =cpu_logical_map (cpu); +writel_relaxed (arg, src_base +SRC_GPR1 + cpu *8 +4 ); +} +void imx_src_prepare_restart (void ) {u32 val;
arch/arm/mach-omap2/common.h +3 -0
@@ -286,5 +286,8 @@ extern void omap_reserve(void);struct omap_hwmod ;extern int omap_dss_reset (struct omap_hwmod *); +/* SoC specific clock initializer */ +extern int (*omap_clk_init)(void ); +#endif /* __ASSEMBLER__ */ #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */
arch/arm/mach-omap2/io.c +12 -6
@@ -55,6 +55,12 @@#include "prm44xx.h" /* +* omap_clk_init: points to a function that does the SoC-specific +* clock initializations +*/ +int (*omap_clk_init)(void ); + +/* * The machine specific code may provide the extra mapping besides the * default mapping provided here. */
@@ -397,7 +403,7 @@ void __init omap2420_init_early(void)omap242x_clockdomains_init ();omap2420_hwmod_init ();omap_hwmod_init_postsetup (); -omap2420_clk_init (); + omap_clk_init = omap2420_clk_init; }void __init omap2420_init_late (void )
@@ -427,7 +433,7 @@ void __init omap2430_init_early(void)omap243x_clockdomains_init ();omap2430_hwmod_init ();omap_hwmod_init_postsetup (); -omap2430_clk_init (); + omap_clk_init = omap2430_clk_init; }void __init omap2430_init_late (void )
@@ -462,7 +468,7 @@ void __init omap3_init_early(void)omap3xxx_clockdomains_init ();omap3xxx_hwmod_init ();omap_hwmod_init_postsetup (); -omap3xxx_clk_init (); + omap_clk_init = omap3xxx_clk_init; }void __init omap3430_init_early (void )
@@ -500,7 +506,7 @@ void __init ti81xx_init_early(void)omap3xxx_clockdomains_init ();omap3xxx_hwmod_init ();omap_hwmod_init_postsetup (); -omap3xxx_clk_init (); + omap_clk_init = omap3xxx_clk_init; }void __init omap3_init_late (void )
@@ -568,7 +574,7 @@ void __init am33xx_init_early(void)am33xx_clockdomains_init ();am33xx_hwmod_init ();omap_hwmod_init_postsetup (); - am33xx_clk_init(); + omap_clk_init = am33xx_clk_init; }#endif
@@ -593,7 +599,7 @@ void __init omap4430_init_early(void)omap44xx_clockdomains_init ();omap44xx_hwmod_init ();omap_hwmod_init_postsetup (); -omap4xxx_clk_init (); + omap_clk_init = omap4xxx_clk_init; }void __init omap4430_init_late (void )
arch/arm/mach-omap2/timer.c +4 -0
@@ -554,6 +554,8 @@ static inline void __init realtime_counter_init(void) clksrc_nr, clksrc_src) \ static void __init omap##name##_gptimer_timer_init(void) \ { \ + if (omap_clk_init) \ + omap_clk_init(); \ omap_dmtimer_init(); \ omap2_gp_clockevent_init((clkev_nr), clkev_src, clkev_prop); \ omap2_gptimer_clocksource_init((clksrc_nr), clksrc_src); \
@@ -563,6 +565,8 @@ static void __init omap##name##_gptimer_timer_init(void) \ clksrc_nr, clksrc_src) \ static void __init omap##name##_sync32k_timer_init(void) \ { \ + if (omap_clk_init) \ + omap_clk_init(); \ omap_dmtimer_init(); \ omap2_gp_clockevent_init((clkev_nr), clkev_src, clkev_prop); \ /* Enable the use of clocksource="gp_timer" kernel parameter */ \
arch/avr32/include/asm/signal.h +1 -0
@@ -29,6 +29,7 @@ struct sigaction {__sigrestore_t sa_restorer;sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/cris/include/asm/signal.h +1 -0
@@ -29,6 +29,7 @@ struct sigaction {void (*sa_restorer)(void );sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/h8300/include/asm/signal.h +1 -0
@@ -29,6 +29,7 @@ struct sigaction {void (*sa_restorer)(void );sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/m32r/include/asm/signal.h +1 -0
@@ -22,6 +22,7 @@ struct sigaction {__sigrestore_t sa_restorer;sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/m68k/include/asm/signal.h +1 -0
@@ -29,6 +29,7 @@ struct sigaction {__sigrestore_t sa_restorer;sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/mn10300/include/asm/signal.h +1 -0
@@ -39,6 +39,7 @@ struct sigaction {__sigrestore_t sa_restorer;sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/powerpc/include/asm/signal.h +1 -0
@@ -1,6 +1,7 @@#ifndef _ASM_POWERPC_SIGNAL_H#define _ASM_POWERPC_SIGNAL_H +#define __ARCH_HAS_SA_RESTORER#include <uapi/asm/signal.h> #endif /* _ASM_POWERPC_SIGNAL_H */
arch/s390/include/asm/signal.h +1 -0
@@ -34,6 +34,7 @@ struct sigaction {void (*sa_restorer)(void );sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
arch/sparc/include/asm/signal.h +2 -0
@@ -26,5 +26,7 @@ struct k_sigaction {void __user *ka_restorer; }; +#define __ARCH_HAS_SA_RESTORER +#endif /* !(__ASSEMBLY__) */ #endif /* !(__SPARC_SIGNAL_H) */
arch/tile/kernel/setup.c +12 -13
@@ -1004,15 +1004,8 @@ void __cpuinit setup_cpu(int boot)#ifdef CONFIG_BLK_DEV_INITRD -/* -* Note that the kernel can potentially support other compression -* techniques than gz, though we don't do so by default. If we ever -* decide to do so we can either look for other filename extensions, -* or just allow a file with this name to be compressed with an -* arbitrary compressor (somewhat counterintuitively). -*/ static int __initdata set_initramfs_file; -static char __initdata initramfs_file[128 ] ="initramfs.cpio.gz" ; +static char __initdata initramfs_file[128 ] ="initramfs" ;static int __init setup_initramfs_file (char *str) {
@@ -1026,9 +1019,9 @@ static int __init setup_initramfs_file(char *str)early_param ("initramfs_file" , setup_initramfs_file);/* -* We look for an "initramfs.cpio.gz" file in the hvfs. -* If there is one, we allocate some memory for it and it will be -* unpacked to the initramfs. +* We look for a file called "initramfs" in the hvfs. If there is one, we +* allocate some memory for it and it will be unpacked to the initramfs. +* If it's compressed, the initd code will uncompress it first. */ static void __init load_hv_initrd (void ) {
@@ -1038,10 +1031,16 @@ static void __init load_hv_initrd(void) fd =hv_fs_findfile ((HV_VirtAddr ) initramfs_file);if (fd ==HV_ENOENT ) { -if (set_initramfs_file) +if (set_initramfs_file) {pr_warning ("No such hvfs initramfs file '%s'\n" , initramfs_file); -return ; +return ; + }else { +/* Try old backwards-compatible name. */ + fd =hv_fs_findfile ((HV_VirtAddr )"initramfs.cpio.gz" ); +if (fd ==HV_ENOENT ) +return ; + } }BUG_ON (fd <0 ); stat =hv_fs_fstat (fd);
arch/x86/include/asm/signal.h +3 -0
@@ -31,6 +31,9 @@ typedef sigset_t compat_sigset_t;#include <uapi/asm/signal.h> #ifndef __ASSEMBLY__ extern void do_notify_resume(struct pt_regs *, void *, __u32); + +#define __ARCH_HAS_SA_RESTORER + #ifdef __i386__ struct old_sigaction { __sighandler_t sa_handler;
arch/x86/include/asm/xen/hypercall.h +2 -2
@@ -382,14 +382,14 @@ HYPERVISOR_console_io(int cmd, int count, char *str)return _hypercall3 (int, console_io, cmd, count, str); } -extern int __must_check HYPERVISOR_physdev_op_compat (int ,void *); +extern int __must_check xen_physdev_op_compat (int ,void *);static inline int HYPERVISOR_physdev_op (int cmd,void *arg) {int rc =_hypercall2 (int, physdev_op, cmd, arg);if (unlikely (rc == -ENOSYS )) - rc =HYPERVISOR_physdev_op_compat (cmd, arg); + rc =xen_physdev_op_compat (cmd, arg);return rc; }
arch/xtensa/include/asm/signal.h +1 -0
@@ -21,6 +21,7 @@ struct sigaction {void (*sa_restorer)(void );sigset_t sa_mask;/* mask last for extensibility */ }; +#define __ARCH_HAS_SA_RESTORERstruct k_sigaction {struct sigaction sa;
drivers/block/aoe/aoecmd.c +2 -1
@@ -51,8 +51,9 @@ new_skb(ulong len) {struct sk_buff *skb; - skb =alloc_skb (len,GFP_ATOMIC ); + skb =alloc_skb (len +MAX_HEADER ,GFP_ATOMIC );if (skb) { +skb_reserve (skb,MAX_HEADER );skb_reset_mac_header (skb);skb_reset_network_header (skb); skb->protocol =__constant_htons (ETH_P_AOE );
drivers/block/loop.c +8 -1
@@ -917,6 +917,11 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode, lo->lo_flags |=LO_FLAGS_PARTSCAN ;if (lo->lo_flags &LO_FLAGS_PARTSCAN )ioctl_by_bdev (bdev,BLKRRPART ,0 ); + +/* Grab the block_device to prevent its destruction after we +* put /dev/loopXX inode. Later in loop_clr_fd() we bdput(bdev). +*/ +bdgrab (bdev);return 0 ; out_clr:
@@ -1026,8 +1031,10 @@ static int loop_clr_fd(struct loop_device *lo)memset (lo->lo_encrypt_key,0 ,LO_KEY_SIZE );memset (lo->lo_crypt_name,0 ,LO_NAME_SIZE );memset (lo->lo_file_name,0 ,LO_NAME_SIZE ); -if (bdev) +if (bdev) { +bdput (bdev);invalidate_bdev (bdev); + }set_capacity (lo->lo_disk,0 );loop_sysfs_exit (lo);if (bdev) {
drivers/block/xen-blkback/blkback.c +28 -10
@@ -679,6 +679,16 @@ static int dispatch_discard_io(struct xen_blkif *blkif,return err; } +static int dispatch_other_io (struct xen_blkif *blkif, +struct blkif_request *req, +struct pending_req *pending_req) +{ +free_req (pending_req); +make_response (blkif, req->u.other.id, req->operation, +BLKIF_RSP_EOPNOTSUPP ); +return -EIO ; +} +static void xen_blk_drain_io (struct xen_blkif *blkif) {atomic_set (&blkif->drain,1 );
@@ -800,17 +810,30 @@ __do_block_io_op(struct xen_blkif *blkif)/* Apply all sanity checks to /private copy/ of request. */ barrier (); -if (unlikely (req.operation ==BLKIF_OP_DISCARD )) { + +switch (req.operation) { +case BLKIF_OP_READ : +case BLKIF_OP_WRITE : +case BLKIF_OP_WRITE_BARRIER : +case BLKIF_OP_FLUSH_DISKCACHE : +if (dispatch_rw_block_io (blkif, &req, pending_req)) + goto done; +break ; +case BLKIF_OP_DISCARD :free_req (pending_req);if (dispatch_discard_io (blkif, &req)) -break ; - }else if (dispatch_rw_block_io (blkif, &req, pending_req)) + goto done;break ; +default : +if (dispatch_other_io (blkif, &req, pending_req)) + goto done; +break ; + }/* Yield point for this unbounded loop. */ cond_resched (); } - +done:return more_to_do; }
@@ -978,13 +1001,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif, bio->bi_end_io = end_block_io_op; } -/* -* We set it one so that the last submit_bio does not have to call -* atomic_inc. -*/ atomic_set (&pending_req->pendcnt, nbio); - -/* Get a reference count for the disk queue and start sending I/O */ blk_start_plug (&plug);for (i =0 ; i < nbio; i++)
@@ -1012,6 +1029,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif, fail_put_bio:for (i =0 ; i < nbio; i++)bio_put (biolist[i]); +atomic_set (&pending_req->pendcnt,1 );__end_block_io_op (pending_req, -EINVAL );msleep (1 );/* back off a bit */ return -EIO ;
drivers/block/xen-blkback/common.h +25 -0
@@ -77,11 +77,18 @@ struct blkif_x86_32_request_discard {uint64_t nr_sectors; } __attribute__((__packed__)); +struct blkif_x86_32_request_other { +uint8_t _pad1; +blkif_vdev_t _pad2; +uint64_t id;/* private guest value, echoed in resp */ +} __attribute__((__packed__ )); +struct blkif_x86_32_request {uint8_t operation;/* BLKIF_OP_??? */ union {struct blkif_x86_32_request_rw rw;struct blkif_x86_32_request_discard discard; +struct blkif_x86_32_request_other other; } u; } __attribute__((__packed__ ));
@@ -113,11 +120,19 @@ struct blkif_x86_64_request_discard {uint64_t nr_sectors; } __attribute__((__packed__)); +struct blkif_x86_64_request_other { +uint8_t _pad1; +blkif_vdev_t _pad2; +uint32_t _pad3;/* offsetof(blkif_..,u.discard.id)==8 */ +uint64_t id;/* private guest value, echoed in resp */ +} __attribute__((__packed__ )); +struct blkif_x86_64_request {uint8_t operation;/* BLKIF_OP_??? */ union {struct blkif_x86_64_request_rw rw;struct blkif_x86_64_request_discard discard; +struct blkif_x86_64_request_other other; } u; } __attribute__((__packed__ ));
@@ -278,6 +293,11 @@ static inline void blkif_get_x86_32_req(struct blkif_request *dst, dst->u.discard.nr_sectors = src->u.discard.nr_sectors;break ;default : +/* +* Don't know how to translate this op. Only get the +* ID so failure can be reported to the frontend. +*/ + dst->u.other.id = src->u.other.id;break ; } }
@@ -309,6 +329,11 @@ static inline void blkif_get_x86_64_req(struct blkif_request *dst, dst->u.discard.nr_sectors = src->u.discard.nr_sectors;break ;default : +/* +* Don't know how to translate this op. Only get the +* ID so failure can be reported to the frontend. +*/ + dst->u.other.id = src->u.other.id;break ; } }
drivers/block/xen-blkfront.c +18 -23
92 lines not on this page · raw message
drivers/bluetooth/ath3k.c +4 -0
@@ -73,8 +73,10 @@ static struct usb_device_id ath3k_table[] = { { USB_DEVICE(0x03F0, 0x311D) },/* Atheros AR3012 with sflash firmware*/ + { USB_DEVICE(0x0CF3, 0x0036) }, { USB_DEVICE(0x0CF3, 0x3004) }, { USB_DEVICE(0x0CF3, 0x311D) }, + { USB_DEVICE(0x0CF3, 0x817a) }, { USB_DEVICE(0x13d3, 0x3375) }, { USB_DEVICE(0x04CA, 0x3005) }, { USB_DEVICE(0x04CA, 0x3006) },
@@ -105,8 +107,10 @@ MODULE_DEVICE_TABLE(usb, ath3k_table);static struct usb_device_id ath3k_blist_tbl[] = {/* Atheros AR3012 with sflash firmware*/ + {USB_DEVICE (0x0CF3 ,0x0036 ), .driver_info =BTUSB_ATH3012 }, {USB_DEVICE (0x0cf3 ,0x3004 ), .driver_info =BTUSB_ATH3012 }, {USB_DEVICE (0x0cf3 ,0x311D ), .driver_info =BTUSB_ATH3012 }, + {USB_DEVICE (0x0CF3 ,0x817a ), .driver_info =BTUSB_ATH3012 }, {USB_DEVICE (0x13d3 ,0x3375 ), .driver_info =BTUSB_ATH3012 }, {USB_DEVICE (0x04ca ,0x3005 ), .driver_info =BTUSB_ATH3012 }, {USB_DEVICE (0x04ca ,0x3006 ), .driver_info =BTUSB_ATH3012 },
drivers/bluetooth/btusb.c +2 -0
@@ -131,8 +131,10 @@ static struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x03f0, 0x311d), .driver_info = BTUSB_IGNORE }, /* Atheros 3012 with sflash firmware */ + { USB_DEVICE(0x0cf3, 0x0036), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x311d), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x817a), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3375), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3005), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3006), .driver_info = BTUSB_ATH3012 },
drivers/char/virtio_console.c +14 -8
@@ -152,7 +152,8 @@ struct ports_device {spinlock_t ports_lock;/* To protect the vq operations for the control channel */ -spinlock_t cvq_lock; +spinlock_t c_ivq_lock; +spinlock_t c_ovq_lock;/* The current config space is stored here */ struct virtio_console_config config;
@@ -575,11 +576,14 @@ static ssize_t __send_control_msg(struct ports_device *portdev, u32 port_id, vq = portdev->c_ovq;sg_init_one (sg, &cpkt,sizeof (cpkt)); + +spin_lock (&portdev->c_ovq_lock);if (virtqueue_add_buf (vq, sg,1 ,0 , &cpkt,GFP_ATOMIC ) ==0 ) {virtqueue_kick (vq);while (!virtqueue_get_buf (vq, &len))cpu_relax (); } +spin_unlock (&portdev->c_ovq_lock);return 0 ; }
@@ -1715,23 +1719,23 @@ static void control_work_handler(struct work_struct *work) portdev = container_of(work, struct ports_device, control_work); vq = portdev->c_ivq; -spin_lock (&portdev->cvq_lock); +spin_lock (&portdev->c_ivq_lock);while ((buf =virtqueue_get_buf (vq, &len))) { -spin_unlock (&portdev->cvq_lock); +spin_unlock (&portdev->c_ivq_lock); buf->len = len; buf->offset =0 ;handle_control_message (portdev, buf); -spin_lock (&portdev->cvq_lock); +spin_lock (&portdev->c_ivq_lock);if (add_inbuf (portdev->c_ivq, buf) <0 ) {dev_warn (&portdev->vdev->dev,"Error adding buffer to queue\n" );free_buf (buf, false); } } -spin_unlock (&portdev->cvq_lock); +spin_unlock (&portdev->c_ivq_lock); }static void out_intr (struct virtqueue *vq)
@@ -1996,10 +2000,12 @@ static int virtcons_probe(struct virtio_device *vdev)if (multiport) {unsigned int nr_added_bufs; -spin_lock_init (&portdev->cvq_lock); +spin_lock_init (&portdev->c_ivq_lock); +spin_lock_init (&portdev->c_ovq_lock);INIT_WORK (&portdev->control_work, &control_work_handler); - nr_added_bufs =fill_queue (portdev->c_ivq, &portdev->cvq_lock); + nr_added_bufs =fill_queue (portdev->c_ivq, + &portdev->c_ivq_lock);if (!nr_added_bufs) {dev_err (&vdev->dev,"Error allocating buffers for control queue\n" );
@@ -2150,7 +2156,7 @@ static int virtcons_restore(struct virtio_device *vdev)return ret;if (use_multiport (portdev)) -fill_queue (portdev->c_ivq, &portdev->cvq_lock); +fill_queue (portdev->c_ivq, &portdev->c_ivq_lock);list_for_each_entry (port, &portdev->ports, list) { port->in_vq = portdev->in_vqs[port->id];
drivers/crypto/caam/caamalg.c +2 -25
@@ -1650,11 +1650,7 @@ struct caam_alg_template { };static struct caam_alg_template driver_algs[] = { -/* -* single-pass ipsec_esp descriptor -* authencesn(*,*) is also registered, although not present -* explicitly here. -*/ +/* single-pass ipsec_esp descriptor */ { .name ="authenc(hmac(md5),cbc(aes))" , .driver_name ="authenc-hmac-md5-cbc-aes-caam" ,
@@ -2217,9 +2213,7 @@ static int __init caam_algapi_init(void)for (i =0 ; i <ARRAY_SIZE (driver_algs); i++) {/* TODO: check if h/w supports alg */ struct caam_crypto_alg *t_alg; -bool done = false; -authencesn: t_alg =caam_alg_alloc (ctrldev, &driver_algs[i]);if (IS_ERR (t_alg)) { err =PTR_ERR (t_alg);
@@ -2233,25 +2227,8 @@ authencesn:dev_warn (ctrldev,"%s alg registration failed\n" , t_alg->crypto_alg.cra_driver_name);kfree (t_alg); - }else { + }else list_add_tail (&t_alg->entry, &priv->alg_list); -if (driver_algs[i].type ==CRYPTO_ALG_TYPE_AEAD && - !memcmp (driver_algs[i].name,"authenc" ,7 ) && - !done) { -char *name; - - name = driver_algs[i].name; -memmove (name +10 , name +7 ,strlen (name) -7 ); -memcpy (name +7 ,"esn" ,3 ); - - name = driver_algs[i].driver_name; -memmove (name +10 , name +7 ,strlen (name) -7 ); -memcpy (name +7 ,"esn" ,3 ); - - done = true; - goto authencesn; - } - } }if (!list_empty (&priv->alg_list)) dev_info(ctrldev, "%s algorithms registered in /proc/crypto\n",
drivers/crypto/caam/compat.h +0 -1
@@ -23,7 +23,6 @@#include <linux/types.h> #include <linux/debugfs.h> #include <linux/circ_buf.h> -#include <linux/string.h> #include <net/xfrm.h> #include <crypto/algapi.h>
drivers/crypto/talitos.c +2 -28
@@ -38,7 +38,6 @@#include <linux/spinlock.h> #include <linux/rtnetlink.h> #include <linux/slab.h> -#include <linux/string.h> #include <crypto/algapi.h> #include <crypto/aes.h>
@@ -1974,11 +1973,7 @@ struct talitos_alg_template { };static struct talitos_alg_template driver_algs[] = { -/* -* AEAD algorithms. These use a single-pass ipsec_esp descriptor. -* authencesn(*,*) is also registered, although not present -* explicitly here. -*/ +/* AEAD algorithms. These use a single-pass ipsec_esp descriptor */ { .type =CRYPTO_ALG_TYPE_AEAD , .alg.crypto = { .cra_name ="authenc(hmac(sha1),cbc(aes))" ,
@@ -2820,9 +2815,7 @@ static int talitos_probe(struct platform_device *ofdev)if (hw_supports (dev, driver_algs[i].desc_hdr_template)) {struct talitos_crypto_alg *t_alg;char *name =NULL ; -bool authenc = false; -authencesn: t_alg =talitos_alg_alloc (dev, &driver_algs[i]);if (IS_ERR (t_alg)) { err =PTR_ERR (t_alg);
@@ -2837,8 +2830,6 @@ authencesn: err =crypto_register_alg ( &t_alg->algt.alg.crypto); name = t_alg->algt.alg.crypto.cra_driver_name; - authenc = authenc ? !authenc : - !(bool )memcmp (name,"authenc" ,7 );break ;case CRYPTO_ALG_TYPE_AHASH : err = crypto_register_ahash(
@@ -2851,25 +2842,8 @@ authencesn:dev_err (dev,"%s alg registration failed\n" , name);kfree (t_alg); - }else { + }else list_add_tail (&t_alg->entry, &priv->alg_list); -if (authenc) { -struct crypto_alg *alg = - &driver_algs[i].alg.crypto; - - name = alg->cra_name; -memmove (name +10 , name +7 , -strlen (name) -7 ); -memcpy (name +7 ,"esn" ,3 ); - - name = alg->cra_driver_name; -memmove (name +10 , name +7 , -strlen (name) -7 ); -memcpy (name +7 ,"esn" ,3 ); - - goto authencesn; - } - } } }if (!list_empty (&priv->alg_list))
drivers/firmware/efivars.c +87 -0
105 lines not on this page · raw message
drivers/gpu/drm/i915/intel_display.c +4 -7
@@ -7420,8 +7420,8 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, {struct drm_device *dev = crtc->dev;struct drm_i915_private *dev_priv = dev->dev_private; -struct intel_framebuffer *intel_fb; -struct drm_i915_gem_object *obj; +struct drm_framebuffer *old_fb = crtc->fb; +struct drm_i915_gem_object *obj =to_intel_framebuffer (fb)->obj;struct intel_crtc *intel_crtc =to_intel_crtc (crtc);struct intel_unpin_work *work;unsigned long flags;
@@ -7446,8 +7446,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, work->event = event; work->crtc = crtc; - intel_fb =to_intel_framebuffer (crtc->fb); - work->old_fb_obj = intel_fb->obj; + work->old_fb_obj =to_intel_framebuffer (old_fb)->obj;INIT_WORK (&work->work, intel_unpin_work_fn); ret =drm_vblank_get (dev, intel_crtc->pipe);
@@ -7467,9 +7466,6 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, intel_crtc->unpin_work = work;spin_unlock_irqrestore (&dev->event_lock, flags); - intel_fb =to_intel_framebuffer (fb); - obj = intel_fb->obj; -if (atomic_read (&intel_crtc->unpin_work_count) >=2 )flush_workqueue (dev_priv->wq);
@@ -7507,6 +7503,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc, cleanup_pending:atomic_dec (&intel_crtc->unpin_work_count); + crtc->fb = old_fb;atomic_sub (1 << intel_crtc->plane, &work->old_fb_obj->pending_flip);drm_gem_object_unreference (&work->old_fb_obj->base);drm_gem_object_unreference (&obj->base);
drivers/gpu/drm/i915/intel_dp.c +11 -1
@@ -788,6 +788,7 @@ intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode,struct intel_dp_m_n m_n;int pipe = intel_crtc->pipe;enum transcoder cpu_transcoder = intel_crtc->cpu_transcoder; +int target_clock;/* * Find the lane count in the intel_encoder private
@@ -803,13 +804,22 @@ intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode, } } + target_clock = mode->clock; +for_each_encoder_on_crtc (dev, crtc, intel_encoder) { +if (intel_encoder->type ==INTEL_OUTPUT_EDP ) { + target_clock =intel_edp_target_clock (intel_encoder, + mode); +break ; + } + } +/* * Compute the GMCH and Link ratios. The '3' here is * the number of bytes_per_pixel post-LUT, which we always * set up for 8-bits of R/G/B, or 3 bytes total. */ intel_dp_compute_m_n (intel_crtc->bpp, lane_count, - mode->clock, adjusted_mode->clock, &m_n); + target_clock, adjusted_mode->clock, &m_n);if (IS_HASWELL (dev)) { I915_WRITE(PIPE_DATA_M1(cpu_transcoder),
drivers/hid/hid-ids.h +6 -0
@@ -587,6 +587,9 @@#define USB_VENDOR_ID_MONTEREY 0x0566#define USB_DEVICE_ID_GENIUS_KB29E 0x3004 +#define USB_VENDOR_ID_MSI 0x1770 +#define USB_DEVICE_ID_MSI_GX680R_LED_PANEL 0xff00 +#define USB_VENDOR_ID_NATIONAL_SEMICONDUCTOR 0x0400#define USB_DEVICE_ID_N_S_HARMONY 0xc359
@@ -678,6 +681,9 @@#define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001 0x3001#define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008 0x3008 +#define USB_VENDOR_ID_REALTEK 0x0bda +#define USB_DEVICE_ID_REALTEK_READER 0x0152 +#define USB_VENDOR_ID_ROCCAT 0x1e7d#define USB_DEVICE_ID_ROCCAT_ARVO 0x30d4#define USB_DEVICE_ID_ROCCAT_ISKU 0x319c
drivers/hid/usbhid/hid-quirks.c +2 -0
@@ -73,6 +73,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_FORMOSA, USB_DEVICE_ID_FORMOSA_IR_RECEIVER, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_FREESCALE, USB_DEVICE_ID_FREESCALE_MX28, HID_QUIRK_NOGET }, { USB_VENDOR_ID_MGE, USB_DEVICE_ID_MGE_UPS, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_MSI, USB_DEVICE_ID_MSI_GX680R_LED_PANEL, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_NOVATEK, USB_DEVICE_ID_NOVATEK_MOUSE, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_PIXART, USB_DEVICE_ID_PIXART_OPTICAL_TOUCH_SCREEN1, HID_QUIRK_NO_INIT_REPORTS },
@@ -80,6 +81,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_PRODIGE, USB_DEVICE_ID_PRODIGE_CORDLESS, HID_QUIRK_NOGET }, { USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001, HID_QUIRK_NOGET }, { USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_REALTEK, USB_DEVICE_ID_REALTEK_READER, HID_QUIRK_NO_INIT_REPORTS }, { USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB, HID_QUIRK_NOGET }, { USB_VENDOR_ID_SIGMATEL, USB_DEVICE_ID_SIGMATEL_STMP3780, HID_QUIRK_NOGET }, { USB_VENDOR_ID_SUN, USB_DEVICE_ID_RARITAN_KVM_DONGLE, HID_QUIRK_NOGET },
drivers/iommu/amd_iommu.c +10 -12
@@ -2466,18 +2466,16 @@ static int device_change_notifier(struct notifier_block *nb,/* allocate a protection domain if a device is added */ dma_domain =find_protection_domain (devid); -if (dma_domain) - goto out; - dma_domain =dma_ops_domain_alloc (); -if (!dma_domain) - goto out; - dma_domain->target_dev = devid; - -spin_lock_irqsave (&iommu_pd_list_lock, flags); -list_add_tail (&dma_domain->list, &iommu_pd_list); -spin_unlock_irqrestore (&iommu_pd_list_lock, flags); - - dev_data =get_dev_data (dev); +if (!dma_domain) { + dma_domain =dma_ops_domain_alloc (); +if (!dma_domain) + goto out; + dma_domain->target_dev = devid; + +spin_lock_irqsave (&iommu_pd_list_lock, flags); +list_add_tail (&dma_domain->list, &iommu_pd_list); +spin_unlock_irqrestore (&iommu_pd_list_lock, flags); + } dev->archdata.dma_ops = &amd_iommu_dma_ops;
drivers/media/pci/bt8xx/bttv-driver.c +15 -5
@@ -250,17 +250,19 @@ static u8 SRAM_Table[][60] =vdelay start of active video in 2 * field lines relative to trailing edge of /VRESET pulse (VDELAY register). sheight height of active video in 2 * field lines. +extraheight Added to sheight for cropcap.bounds.height only videostart0 ITU-R frame line number of the line corresponding to vdelay in the first field. */ #define CROPCAP(minhdelayx1, hdelayx1, swidth, totalwidth, sqwidth, \ - vdelay, sheight, videostart0) \ + vdelay, sheight, extraheight, videostart0) \ .cropcap.bounds.left = minhdelayx1, \ /* * 2 because vertically we count field lines times two, */ \ /* e.g. 23 * 2 to 23 * 2 + 576 in PAL-BGHI defrect. */ \ .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \ /* 4 is a safety margin at the end of the line. */ \ .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \ - .cropcap.bounds.height = (sheight) + (vdelay) - MIN_VDELAY, \ + .cropcap.bounds.height = (sheight) + (extraheight) + (vdelay) - \ + MIN_VDELAY, \ .cropcap.defrect.left = hdelayx1, \ .cropcap.defrect.top = (videostart0) * 2, \ .cropcap.defrect.width = swidth, \
@@ -301,9 +303,10 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* totalwidth */ 1135, /* sqwidth */ 944, /* vdelay */ 0x20, -/* bt878 (and bt848?) can capture another -line below active video. */ - /* sheight */ (576 + 2) + 0x20 - 2, + /* sheight */ 576, +/* bt878 (and bt848?) can capture another +line below active video. */ + /* extraheight */ 2, /* videostart0 */ 23) },{ .v4l2_id = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_KR,
@@ -330,6 +333,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* sqwidth */ 780, /* vdelay */ 0x1a, /* sheight */ 480, + /* extraheight */ 0, /* videostart0 */ 23) },{ .v4l2_id = V4L2_STD_SECAM,
@@ -355,6 +359,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* sqwidth */ 944, /* vdelay */ 0x20, /* sheight */ 576, + /* extraheight */ 0, /* videostart0 */ 23) },{ .v4l2_id = V4L2_STD_PAL_Nc,
@@ -380,6 +385,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* sqwidth */ 780, /* vdelay */ 0x1a, /* sheight */ 576, + /* extraheight */ 0, /* videostart0 */ 23) },{ .v4l2_id = V4L2_STD_PAL_M,
@@ -405,6 +411,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* sqwidth */ 780, /* vdelay */ 0x1a, /* sheight */ 480, + /* extraheight */ 0, /* videostart0 */ 23) },{ .v4l2_id = V4L2_STD_PAL_N,
@@ -430,6 +437,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* sqwidth */ 944, /* vdelay */ 0x20, /* sheight */ 576, + /* extraheight */ 0, /* videostart0 */ 23) },{ .v4l2_id = V4L2_STD_NTSC_M_JP,
@@ -455,6 +463,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = {/* sqwidth */ 780 ,/* vdelay */ 0x16 ,/* sheight */ 480 , +/* extraheight */ 0 , /* videostart0 */ 23) },{/* that one hopefully works with the strange timing
@@ -484,6 +493,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { /* sqwidth */ 944, /* vdelay */ 0x1a, /* sheight */ 480, + /* extraheight */ 0, /* videostart0 */ 23) } };
drivers/net/bonding/bond_main.c +1 -2
@@ -1955,12 +1955,11 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)return -EINVAL ; } +write_unlock_bh (&bond->lock);/* unregister rx_handler early so bond_handle_frame wouldn't be called * for this slave anymore. */ netdev_rx_handler_unregister (slave_dev); -write_unlock_bh (&bond->lock); -synchronize_net ();write_lock_bh (&bond->lock);if (!bond->params.fail_over_mac) {
drivers/net/bonding/bond_sysfs.c +53 -44
142 lines not on this page · raw message
drivers/net/can/sja1000/plx_pci.c +2 -2
@@ -348,7 +348,7 @@ static inline int plx_pci_check_sja1000(const struct sja1000_priv *priv)*/ if ((priv->read_reg (priv,REG_CR ) ®_CR_BASICCAN_INITIAL_MASK ) ==REG_CR_BASICCAN_INITIAL && - (priv->read_reg (priv,REG_SR ) ==REG_SR_BASICCAN_INITIAL ) && + (priv->read_reg (priv,SJA1000_REG_SR ) ==REG_SR_BASICCAN_INITIAL ) && (priv->read_reg (priv,REG_IR ) ==REG_IR_BASICCAN_INITIAL )) flag =1 ;
@@ -360,7 +360,7 @@ static inline int plx_pci_check_sja1000(const struct sja1000_priv *priv)* See states on p. 23 of the Datasheet. */ if (priv->read_reg (priv,REG_MOD ) ==REG_MOD_PELICAN_INITIAL && - priv->read_reg (priv,REG_SR ) ==REG_SR_PELICAN_INITIAL && + priv->read_reg (priv,SJA1000_REG_SR ) ==REG_SR_PELICAN_INITIAL && priv->read_reg (priv,REG_IR ) ==REG_IR_PELICAN_INITIAL )return flag;
drivers/net/can/sja1000/sja1000.c +3 -3
@@ -91,7 +91,7 @@ static void sja1000_write_cmdreg(struct sja1000_priv *priv, u8 val)*/ spin_lock_irqsave (&priv->cmdreg_lock, flags); priv->write_reg (priv,REG_CMR , val); - priv->read_reg (priv,REG_SR ); + priv->read_reg (priv,SJA1000_REG_SR );spin_unlock_irqrestore (&priv->cmdreg_lock, flags); }
@@ -499,7 +499,7 @@ irqreturn_t sja1000_interrupt(int irq, void *dev_id)while ((isrc = priv->read_reg (priv,REG_IR )) && (n <SJA1000_MAX_IRQ )) { n++; - status = priv->read_reg (priv,REG_SR ); + status = priv->read_reg (priv,SJA1000_REG_SR );/* check for absent controller due to hw unplug */ if (status ==0xFF &&sja1000_is_absent (priv))return IRQ_NONE ;
@@ -526,7 +526,7 @@ irqreturn_t sja1000_interrupt(int irq, void *dev_id)/* receive interrupt */ while (status &SR_RBS ) {sja1000_rx (dev); - status = priv->read_reg (priv,REG_SR ); + status = priv->read_reg (priv,SJA1000_REG_SR );/* check for absent controller */ if (status ==0xFF &&sja1000_is_absent (priv))return IRQ_NONE ;
drivers/net/can/sja1000/sja1000.h +1 -1
@@ -56,7 +56,7 @@/* SJA1000 registers - manual section 6.4 (Pelican Mode) */ #define REG_MOD 0x00#define REG_CMR 0x01 -#define REG_SR 0x02 +#define SJA1000_REG_SR 0x02#define REG_IR 0x03#define REG_IER 0x04#define REG_ALC 0x0B
drivers/net/ethernet/atheros/atl1e/atl1e.h +0 -1
@@ -438,7 +438,6 @@ struct atl1e_adapter {struct atl1e_hw hw;struct atl1e_hw_stats hw_stats; -bool have_msi;u32 wol;u16 link_speed;u16 link_duplex;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +2 -17
@@ -1851,34 +1851,19 @@ static void atl1e_free_irq(struct atl1e_adapter *adapter)struct net_device *netdev = adapter->netdev;free_irq (adapter->pdev->irq, netdev); - -if (adapter->have_msi) -pci_disable_msi (adapter->pdev); }static int atl1e_request_irq (struct atl1e_adapter *adapter) {struct pci_dev *pdev = adapter->pdev;struct net_device *netdev = adapter->netdev; -int flags =0 ;int err =0 ; - adapter->have_msi = true; - err =pci_enable_msi (pdev); -if (err) { -netdev_dbg (netdev, -"Unable to allocate MSI interrupt Error: %d\n" , err); - adapter->have_msi = false; - } - -if (!adapter->have_msi) - flags |=IRQF_SHARED ; - err =request_irq (pdev->irq, atl1e_intr, flags, netdev->name, netdev); + err =request_irq (pdev->irq, atl1e_intr,IRQF_SHARED , netdev->name, + netdev);if (err) {netdev_dbg (adapter->netdev,"Unable to allocate interrupt Error: %d\n" , err); -if (adapter->have_msi) -pci_disable_msi (pdev);return err; }netdev_dbg (netdev,"atl1e_request_irq OK\n" );
drivers/net/ethernet/broadcom/tg3.c +5 -2
@@ -14403,8 +14403,11 @@ static void tg3_read_vpd(struct tg3 *tp)if (j + len > block_end) goto partno; -memcpy (tp->fw_ver, &vpd_data[j], len); -strncat (tp->fw_ver," bc " , vpdlen - len -1 ); +if (len >=sizeof (tp->fw_ver)) + len =sizeof (tp->fw_ver) -1 ; +memset (tp->fw_ver,0 ,sizeof (tp->fw_ver)); +snprintf (tp->fw_ver,sizeof (tp->fw_ver),"%.*s bc " , len, + &vpd_data[j]); } partno:
drivers/net/ethernet/davicom/dm9000.c +110 -104
238 lines not on this page · raw message
drivers/net/ethernet/davicom/dm9000.h +10 -1
@@ -69,7 +69,9 @@#define NCR_WAKEEN (1<<6)#define NCR_FCOL (1<<4)#define NCR_FDX (1<<3) -#define NCR_LBK (3<<1) + +#define NCR_RESERVED (3<<1) +#define NCR_MAC_LBK (1<<1)#define NCR_RST (1<<0)#define NSR_SPEED (1<<7)
@@ -167,5 +169,12 @@#define ISR_LNKCHNG (1<<5)#define ISR_UNDERRUN (1<<4) +/* Davicom MII registers. +*/ + +#define MII_DM_DSPCR 0x1b/* DSP Control Register */ + +#define DSPCR_INIT_PARAM 0xE100/* DSP init parameter */ +#endif /* _DM9000X_H_ */
drivers/net/ethernet/freescale/fec_ptp.c +3 -0
@@ -128,6 +128,7 @@ void fec_ptp_start_cyclecounter(struct net_device *ndev)spin_unlock_irqrestore (&fep->tmreg_lock, flags); } +EXPORT_SYMBOL (fec_ptp_start_cyclecounter);/** * fec_ptp_adjfreq - adjust ptp cycle frequency
@@ -318,6 +319,7 @@ int fec_ptp_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd)return copy_to_user (ifr->ifr_data, &config,sizeof (config)) ? -EFAULT :0 ; } +EXPORT_SYMBOL (fec_ptp_ioctl);/** * fec_time_keep - call timecounter_read every second to avoid timer overrun
@@ -381,3 +383,4 @@ void fec_ptp_init(struct net_device *ndev, struct platform_device *pdev)pr_info ("registered PHC device on %s\n" , ndev->name); } } +EXPORT_SYMBOL (fec_ptp_init);
drivers/net/ethernet/marvell/sky2.c +1 -1
@@ -1067,7 +1067,7 @@ static void sky2_ramset(struct sky2_hw *hw, u16 q, u32 start, u32 space)sky2_write32 (hw,RB_ADDR (q,RB_RX_UTHP ), tp);sky2_write32 (hw,RB_ADDR (q,RB_RX_LTHP ), space/2 ); - tp = space -2048 /8 ; + tp = space -8192 /8 ;sky2_write32 (hw,RB_ADDR (q,RB_RX_UTPP ), tp);sky2_write32 (hw,RB_ADDR (q,RB_RX_LTPP ), space/4 ); }else {
drivers/net/ethernet/marvell/sky2.h +1 -1
@@ -2074,7 +2074,7 @@ enum {GM_IS_RX_FF_OR =1 <<1 ,/* Receive FIFO Overrun */ GM_IS_RX_COMPL =1 <<0 ,/* Frame Reception Complete */ -#define GMAC_DEF_MSK GM_IS_TX_FF_UR +#define GMAC_DEF_MSK (GM_IS_TX_FF_UR | GM_IS_RX_FF_OR) };/* GMAC_LINK_CTRL 16 bit GMAC Link Control Reg (YUKON only) */
drivers/net/ethernet/micrel/ks8851.c +1 -1
@@ -547,7 +547,7 @@ static void ks8851_rx_pkts(struct ks8851_net *ks)for (; rxfc !=0 ; rxfc--) { rxh =ks8851_rdreg32 (ks,KS_RXFHSR ); rxstat = rxh &0xffff ; - rxlen = rxh >>16 ; + rxlen = (rxh >>16 ) &0xfff ;netif_dbg (ks, rx_status, ks->netdev,"rx: stat 0x%04x, len 0x%04x\n" , rxstat, rxlen);
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +2 -2
@@ -1726,9 +1726,9 @@ pch_gbe_clean_rx(struct pch_gbe_adapter *adapter, skb->protocol =eth_type_trans (skb, netdev);if (tcp_ip_status &PCH_GBE_RXD_ACC_STAT_TCPIPOK ) - skb->ip_summed =CHECKSUM_NONE ; -else skb->ip_summed =CHECKSUM_UNNECESSARY ; +else + skb->ip_summed =CHECKSUM_NONE ;napi_gro_receive (&adapter->napi, skb); (*work_done)++;
drivers/net/ethernet/ti/cpsw.c +2 -2
@@ -375,7 +375,7 @@ void cpsw_tx_handler(void *token, int len, int status)struct cpsw_priv *priv =netdev_priv (ndev);if (unlikely (netif_queue_stopped (ndev))) -netif_start_queue (ndev); +netif_wake_queue (ndev);cpts_tx_timestamp (&priv->cpts, skb); priv->stats.tx_packets++; priv->stats.tx_bytes += len;
@@ -1111,7 +1111,7 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,struct platform_device *mdio; parp =of_get_property (slave_node,"phy_id" , &lenp); -if ((parp ==NULL ) && (lenp != (sizeof (void *) *2 ))) { +if ((parp ==NULL ) || (lenp != (sizeof (void *) *2 ))) {pr_err ("Missing slave[%d] phy_id property\n" , i); ret = -EINVAL ; goto error_ret;
drivers/net/ethernet/ti/davinci_emac.c +1 -1
@@ -1055,7 +1055,7 @@ static void emac_tx_handler(void *token, int len, int status)atomic_dec (&priv->cur_tx);if (unlikely (netif_queue_stopped (ndev))) -netif_start_queue (ndev); +netif_wake_queue (ndev); ndev->stats.tx_packets++; ndev->stats.tx_bytes += len;dev_kfree_skb_any (skb);
drivers/net/usb/smsc75xx.c +8 -4
@@ -914,8 +914,12 @@ static int smsc75xx_set_rx_max_frame_length(struct usbnet *dev, int size)static int smsc75xx_change_mtu (struct net_device *netdev,int new_mtu) {struct usbnet *dev =netdev_priv (netdev); +int ret; + +if (new_mtu >MAX_SINGLE_PACKET_SIZE ) +return -EINVAL ; -int ret =smsc75xx_set_rx_max_frame_length (dev, new_mtu); + ret =smsc75xx_set_rx_max_frame_length (dev, new_mtu +ETH_HLEN );if (ret <0 ) {netdev_warn (dev->net,"Failed to set mac rx frame length\n" );return ret;
@@ -1324,7 +1328,7 @@ static int smsc75xx_reset(struct usbnet *dev)netif_dbg (dev, ifup, dev->net,"FCT_TX_CTL set to 0x%08x\n" , buf); - ret =smsc75xx_set_rx_max_frame_length (dev,1514 ); + ret =smsc75xx_set_rx_max_frame_length (dev, dev->net->mtu +ETH_HLEN );if (ret <0 ) {netdev_warn (dev->net,"Failed to set max rx frame length\n" );return ret;
@@ -2136,8 +2140,8 @@ static int smsc75xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb)else if (rx_cmd_a & (RX_CMD_A_LONG |RX_CMD_A_RUNT )) dev->net->stats.rx_frame_errors++; }else { -/* ETH_FRAME_LEN + 4(CRC) + 2(COE) + 4(Vlan) */ -if (unlikely (size > (ETH_FRAME_LEN +12 ))) { +/* MAX_SINGLE_PACKET_SIZE + 4(CRC) + 2(COE) + 4(Vlan) */ +if (unlikely (size > (MAX_SINGLE_PACKET_SIZE +ETH_HLEN +12 ))) {netif_dbg (dev, rx_err, dev->net,"size err rx_cmd_a=0x%08x\n" , rx_cmd_a);
drivers/net/wireless/ath/ath9k/ar9003_calib.c +4 -0
@@ -976,6 +976,7 @@ static bool ar9003_hw_init_cal(struct ath_hw *ah,AR_PHY_CL_TAB_1 , AR_PHY_CL_TAB_2 }; +/* Use chip chainmask only for calibration */ ar9003_hw_set_chain_masks (ah, ah->caps.rx_chainmask, ah->caps.tx_chainmask);if (rtt) {
@@ -1131,6 +1132,9 @@ skip_tx_iqcal:ar9003_hw_rtt_disable (ah); } +/* Revert chainmask to runtime parameters */ +ar9003_hw_set_chain_masks (ah, ah->rxchainmask, ah->txchainmask); +/* Initialize list pointers */ ah->cal_list = ah->cal_list_last = ah->cal_list_curr =NULL ; ah->supp_cals =IQ_MISMATCH_CAL ;
drivers/net/wireless/ath/ath9k/link.c +15 -14
@@ -28,21 +28,21 @@ void ath_tx_complete_poll_work(struct work_struct *work)int i;bool needreset = false; -for (i =0 ; i <ATH9K_NUM_TX_QUEUES ; i++) -if (ATH_TXQ_SETUP (sc, i)) { - txq = &sc->tx.txq[i]; -ath_txq_lock (sc, txq); -if (txq->axq_depth) { -if (txq->axq_tx_inprogress) { - needreset = true; -ath_txq_unlock (sc, txq); -break ; - }else { - txq->axq_tx_inprogress = true; - } +for (i =0 ; i <IEEE80211_NUM_ACS ; i++) { + txq = sc->tx.txq_map[i]; + +ath_txq_lock (sc, txq); +if (txq->axq_depth) { +if (txq->axq_tx_inprogress) { + needreset = true; +ath_txq_unlock (sc, txq); +break ; + }else { + txq->axq_tx_inprogress = true; } -ath_txq_unlock_complete (sc, txq); } +ath_txq_unlock_complete (sc, txq); + }if (needreset) { ath_dbg(ath9k_hw_common(sc->sc_ah), RESET,
@@ -170,7 +170,8 @@ void ath_rx_poll(unsigned long data) {struct ath_softc *sc = (struct ath_softc *)data; -ieee80211_queue_work (sc->hw, &sc->hw_check_work); +if (!test_bit (SC_OP_INVALID , &sc->sc_flags)) +ieee80211_queue_work (sc->hw, &sc->hw_check_work); }/*
drivers/net/wireless/b43/dma.c +53 -12
114 lines not on this page · raw message
drivers/net/wireless/b43/phy_n.c +4 -4
@@ -1564,7 +1564,7 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev)u16 clip_off[2 ] = {0xFFFF ,0xFFFF };u8 vcm_final =0 ; -s8 offset[4 ]; +s32 offset[4 ];s32 results[8 ][4 ] = { };s32 results_min[4 ] = { };s32 poll_results[4 ] = { };
@@ -1615,7 +1615,7 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev) }for (i =0 ; i <4 ; i +=2 ) {s32 curr; -s32 mind =40 ; +s32 mind =0x100000 ;s32 minpoll =249 ;u8 minvcm =0 ;if (2 * core != i)
@@ -1732,7 +1732,7 @@ static void b43_nphy_rev2_rssi_cal(struct b43_wldev *dev, u8 type)u8 regs_save_radio[2 ];u16 regs_save_phy[2 ]; -s8 offset[4 ]; +s32 offset[4 ];u8 core;u8 rail;
@@ -1799,7 +1799,7 @@ static void b43_nphy_rev2_rssi_cal(struct b43_wldev *dev, u8 type) }for (i =0 ; i <4 ; i++) { -s32 mind =40 ; +s32 mind =0x100000 ;u8 minvcm =0 ;s32 minpoll =249 ;s32 curr;
drivers/net/wireless/iwlwifi/dvm/lib.c +9 -0
@@ -1262,6 +1262,15 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) }/* +* This can happen upon FW ASSERT: we clear the STATUS_FW_ERROR flag +* in iwl_down but cancel the workers only later. +*/ +if (!priv->ucode_loaded) { +IWL_ERR (priv,"Fw not loaded - dropping CMD: %x\n" , cmd->id); +return -EIO ; + } + +/* * Synchronous commands from this op-mode must hold * the mutex, this ensures we don't try to send two * (or more) synchronous commands at a time.
drivers/net/wireless/iwlwifi/dvm/ucode.c +2 -2
@@ -450,6 +450,8 @@ int iwl_load_ucode_wait_alive(struct iwl_priv *priv,return -EIO ; } + priv->ucode_loaded = true; +/* * This step takes a long time (60-80ms!!) and * WoWLAN image should be loaded quickly, so
@@ -474,8 +476,6 @@ int iwl_load_ucode_wait_alive(struct iwl_priv *priv,return ret; } - priv->ucode_loaded = true; -return 0 ; }
drivers/net/wireless/iwlwifi/pcie/tx.c +1 -1
@@ -1242,7 +1242,7 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,for (i =0 ; i <IWL_MAX_CMD_TFDS ; i++) {int copy =0 ; -if (!cmd->len) +if (!cmd->len[i])continue ;/* need at least IWL_HCMD_MIN_COPY_SIZE copied */
drivers/net/wireless/mwifiex/cmdevt.c +16 -6
@@ -156,6 +156,20 @@ static int mwifiex_dnld_cmd_to_fw(struct mwifiex_private *priv,return -1 ; } + cmd_code =le16_to_cpu (host_cmd->command); + cmd_size =le16_to_cpu (host_cmd->size); + +if (adapter->hw_status ==MWIFIEX_HW_STATUS_RESET && + cmd_code != HostCmd_CMD_FUNC_SHUTDOWN && + cmd_code != HostCmd_CMD_FUNC_INIT) { +dev_err (adapter->dev, +"DNLD_CMD: FW in reset state, ignore cmd %#x\n" , + cmd_code); +mwifiex_complete_cmd (adapter, cmd_node); +mwifiex_insert_cmd_to_free_q (adapter, cmd_node); +return -1 ; + } +/* Set command sequence number */ adapter->seq_num++; host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO
@@ -167,9 +181,6 @@ static int mwifiex_dnld_cmd_to_fw(struct mwifiex_private *priv, adapter->curr_cmd = cmd_node;spin_unlock_irqrestore (&adapter->mwifiex_cmd_lock, flags); - cmd_code =le16_to_cpu (host_cmd->command); - cmd_size =le16_to_cpu (host_cmd->size); -/* Adjust skb length */ if (cmd_node->cmd_skb->len > cmd_size)/*
@@ -488,8 +499,6 @@ int mwifiex_send_cmd_sync(struct mwifiex_private *priv, uint16_t cmd_no, ret =mwifiex_send_cmd_async (priv, cmd_no, cmd_action, cmd_oid, data_buf); -if (!ret) - ret =mwifiex_wait_queue_complete (adapter);return ret; }
@@ -592,9 +601,10 @@ int mwifiex_send_cmd_async(struct mwifiex_private *priv, uint16_t cmd_no,if (cmd_no == HostCmd_CMD_802_11_SCAN) {mwifiex_queue_scan_cmd (priv, cmd_node); }else { - adapter->cmd_queued = cmd_node;mwifiex_insert_cmd_to_pending_q (adapter, cmd_node, true);queue_work (adapter->workqueue, &adapter->main_work); +if (cmd_node->wait_q_enabled) + ret =mwifiex_wait_queue_complete (adapter, cmd_node); }return ret;
drivers/net/wireless/mwifiex/init.c +8 -0
@@ -707,6 +707,14 @@ mwifiex_shutdown_drv(struct mwifiex_adapter *adapter)return ret; } +/* cancel current command */ +if (adapter->curr_cmd) { +dev_warn (adapter->dev,"curr_cmd is still in processing\n" ); +del_timer (&adapter->cmd_timer); +mwifiex_insert_cmd_to_free_q (adapter, adapter->curr_cmd); + adapter->curr_cmd =NULL ; + } +/* shut down mwifiex */ dev_dbg (adapter->dev,"info: shutdown mwifiex...\n" );
drivers/net/wireless/mwifiex/main.h +2 -2
@@ -714,7 +714,6 @@ struct mwifiex_adapter {u16 cmd_wait_q_required;struct mwifiex_wait_queue cmd_wait_q;u8 scan_wait_q_woken; -struct cmd_ctrl_node *cmd_queued;spinlock_t queue_lock;/* lock for tx queues */ struct completion fw_load;u8 country_code[IEEE80211_COUNTRY_STRING_LEN ];
@@ -994,7 +993,8 @@ int mwifiex_request_set_multicast_list(struct mwifiex_private *priv, struct mwifiex_multicast_list *mcast_list);int mwifiex_copy_mcast_addr (struct mwifiex_multicast_list *mlist,struct net_device *dev); -int mwifiex_wait_queue_complete (struct mwifiex_adapter *adapter); +int mwifiex_wait_queue_complete (struct mwifiex_adapter *adapter, +struct cmd_ctrl_node *cmd_queued);int mwifiex_bss_start (struct mwifiex_private *priv,struct cfg80211_bss *bss,struct cfg80211_ssid *req_ssid);int mwifiex_cancel_hs (struct mwifiex_private *priv,int cmd_type);
drivers/net/wireless/mwifiex/scan.c +4 -4
@@ -1366,10 +1366,13 @@ int mwifiex_scan_networks(struct mwifiex_private *priv,list_del (&cmd_node->list);spin_unlock_irqrestore (&adapter->scan_pending_q_lock, flags); - adapter->cmd_queued = cmd_node;mwifiex_insert_cmd_to_pending_q (adapter, cmd_node, true);queue_work (adapter->workqueue, &adapter->main_work); + +/* Perform internal scan synchronously */ +if (!priv->scan_request) +mwifiex_wait_queue_complete (adapter, cmd_node); }else {spin_unlock_irqrestore (&adapter->scan_pending_q_lock, flags);
@@ -1923,9 +1926,6 @@ int mwifiex_request_scan(struct mwifiex_private *priv,/* Normal scan */ ret =mwifiex_scan_networks (priv,NULL ); -if (!ret) - ret =mwifiex_wait_queue_complete (priv->adapter); -up (&priv->async_sem);return ret;
drivers/net/wireless/mwifiex/sta_ioctl.c +2 -8
@@ -54,16 +54,10 @@ int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,* This function waits on a cmd wait queue. It also cancels the pending * request after waking up, in case of errors. */ -int mwifiex_wait_queue_complete (struct mwifiex_adapter *adapter) +int mwifiex_wait_queue_complete (struct mwifiex_adapter *adapter, +struct cmd_ctrl_node *cmd_queued) {int status; -struct cmd_ctrl_node *cmd_queued; - -if (!adapter->cmd_queued) -return 0 ; - - cmd_queued = adapter->cmd_queued; - adapter->cmd_queued =NULL ;dev_dbg (adapter->dev,"cmd pending\n" );atomic_inc (&adapter->cmd_pending);
drivers/net/wireless/rtlwifi/usb.c +1 -0
@@ -854,6 +854,7 @@ static void _rtl_usb_transmit(struct ieee80211_hw *hw, struct sk_buff *skb,if (unlikely (!_urb)) {RT_TRACE (rtlpriv,COMP_ERR ,DBG_EMERG ,"Can't allocate urb. Drop skb!\n" ); +kfree_skb (skb);return ; } urb_list = &rtlusb->tx_pending[ep_num];
drivers/regulator/core.c +2 -2
@@ -200,8 +200,8 @@ static int regulator_check_consumers(struct regulator_dev *rdev, }if (*min_uV > *max_uV) { -dev_err (regulator->dev,"Restricting voltage, %u-%uuV\n" , - regulator->min_uV, regulator->max_uV); +rdev_err (rdev,"Restricting voltage, %u-%uuV\n" , + *min_uV, *max_uV);return -EINVAL ; }
drivers/staging/comedi/drivers/s626.c +1 -1
@@ -1482,7 +1482,7 @@ static int s626_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)case TRIG_NONE :/* continous acquisition */ devpriv->ai_continous =1 ; - devpriv->ai_sample_count =0 ; + devpriv->ai_sample_count =1 ;break ; }
drivers/target/target_core_transport.c +3 -1
@@ -1136,8 +1136,10 @@ target_setup_cmd_from_cdb(struct se_cmd *cmd, unsigned char *cdb)return ret; ret =target_check_reservation (cmd); -if (ret) +if (ret) { + cmd->scsi_status =SAM_STAT_RESERVATION_CONFLICT ;return ret; + } ret = dev->transport->parse_cdb (cmd);if (ret)
drivers/tty/serial/atmel_serial.c +5 -6
@@ -158,7 +158,7 @@ struct atmel_uart_port { };static struct atmel_uart_port atmel_ports[ATMEL_MAX_UART ]; -static unsigned long atmel_ports_in_use; +static DECLARE_BITMAP(atmel_ports_in_use, ATMEL_MAX_UART);#ifdef SUPPORT_SYSRQ static struct console atmel_console;
@@ -1768,15 +1768,14 @@ static int atmel_serial_probe(struct platform_device *pdev)if (ret <0 )/* port id not found in platform data nor device-tree aliases: * auto-enumerate it */ - ret =find_first_zero_bit (&atmel_ports_in_use, -sizeof (atmel_ports_in_use)); + ret =find_first_zero_bit (atmel_ports_in_use,ATMEL_MAX_UART ); -if (ret >ATMEL_MAX_UART ) { +if (ret >=ATMEL_MAX_UART ) { ret = -ENODEV ; goto err; } -if (test_and_set_bit (ret, &atmel_ports_in_use)) { +if (test_and_set_bit (ret, atmel_ports_in_use)) {/* port already in use */ ret = -EBUSY ; goto err;
@@ -1856,7 +1855,7 @@ static int atmel_serial_remove(struct platform_device *pdev)/* "port" is allocated statically, so we shouldn't free it */ -clear_bit (port->line, &atmel_ports_in_use); +clear_bit (port->line, atmel_ports_in_use);clk_put (atmel_port->clk);
drivers/tty/vt/vc_screen.c +4 -2
@@ -93,7 +93,7 @@ vcs_poll_data_free(struct vcs_poll_data *poll)static struct vcs_poll_data *vcs_poll_data_get (struct file *file) { -struct vcs_poll_data *poll = file->private_data; +struct vcs_poll_data *poll = file->private_data, *kill =NULL ;if (poll)return poll;
@@ -122,10 +122,12 @@ vcs_poll_data_get(struct file *file) file->private_data = poll; }else {/* someone else raced ahead of us */ -vcs_poll_data_free (poll); + kill = poll; poll = file->private_data; }spin_unlock (&file->f_lock); +if (kill) +vcs_poll_data_free (kill);return poll; }
drivers/usb/gadget/udc-core.c +1 -1
@@ -265,7 +265,7 @@ static void usb_gadget_remove_driver(struct usb_udc *udc)usb_gadget_disconnect (udc->gadget); udc->driver->disconnect (udc->gadget); udc->driver->unbind (udc->gadget); -usb_gadget_udc_stop (udc->gadget, udc->driver); +usb_gadget_udc_stop (udc->gadget,NULL ); }else {usb_gadget_stop (udc->gadget, udc->driver); }
drivers/usb/host/ehci-sched.c +2 -0
@@ -1214,6 +1214,7 @@ itd_urb_transaction (memset (itd,0 ,sizeof *itd); itd->itd_dma = itd_dma; + itd->frame =9999 ;/* an invalid value */ list_add (&itd->itd_list, &sched->td_list); }spin_unlock_irqrestore (&ehci->lock, flags);
@@ -1915,6 +1916,7 @@ sitd_urb_transaction (memset (sitd,0 ,sizeof *sitd); sitd->sitd_dma = sitd_dma; + sitd->frame =9999 ;/* an invalid value */ list_add (&sitd->sitd_list, &iso_sched->td_list); }
drivers/usb/host/xhci-ring.c +12 -12
@@ -2027,8 +2027,8 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td,if (event_trb != ep_ring->dequeue && event_trb != td->last_trb) td->urb->actual_length = - td->urb->transfer_buffer_length - -TRB_LEN (le32_to_cpu (event->transfer_len)); + td->urb->transfer_buffer_length - +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len));else td->urb->actual_length =0 ;
@@ -2060,7 +2060,7 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td,/* Maybe the event was for the data stage? */ td->urb->actual_length = td->urb->transfer_buffer_length - -TRB_LEN (le32_to_cpu (event->transfer_len)); +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len));xhci_dbg (xhci,"Waiting for status " "stage event\n" );return 0 ;
@@ -2096,7 +2096,7 @@ static int process_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td,/* handle completion code */ switch (trb_comp_code) {case COMP_SUCCESS : -if (TRB_LEN (le32_to_cpu (event->transfer_len)) ==0 ) { +if (EVENT_TRB_LEN (le32_to_cpu (event->transfer_len)) ==0 ) { frame->status =0 ;break ; }
@@ -2141,7 +2141,7 @@ static int process_isoc_td(struct xhci_hcd *xhci, struct xhci_td *td, len +=TRB_LEN (le32_to_cpu (cur_trb->generic.field[2 ])); } len +=TRB_LEN (le32_to_cpu (cur_trb->generic.field[2 ])) - -TRB_LEN (le32_to_cpu (event->transfer_len)); +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len));if (trb_comp_code !=COMP_STOP_INVAL ) { frame->actual_length = len;
@@ -2199,7 +2199,7 @@ static int process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_td *td,case COMP_SUCCESS :/* Double check that the HW transferred everything. */ if (event_trb != td->last_trb || -TRB_LEN (le32_to_cpu (event->transfer_len)) !=0 ) { +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len)) !=0 ) {xhci_warn (xhci,"WARN Successful completion " "on short TX\n" );if (td->urb->transfer_flags &URB_SHORT_NOT_OK )
@@ -2227,18 +2227,18 @@ static int process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_td *td,"%d bytes untransferred\n" , td->urb->ep->desc.bEndpointAddress, td->urb->transfer_buffer_length, - TRB_LEN(le32_to_cpu(event->transfer_len))); + EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)));/* Fast path - was this the last TRB in the TD for this URB? */ if (event_trb == td->last_trb) { -if (TRB_LEN (le32_to_cpu (event->transfer_len)) !=0 ) { +if (EVENT_TRB_LEN (le32_to_cpu (event->transfer_len)) !=0 ) { td->urb->actual_length = td->urb->transfer_buffer_length - -TRB_LEN (le32_to_cpu (event->transfer_len)); +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len));if (td->urb->transfer_buffer_length < td->urb->actual_length) {xhci_warn (xhci,"HC gave bad length " "of %d bytes left\n" , -TRB_LEN (le32_to_cpu (event->transfer_len))); +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len))); td->urb->actual_length =0 ;if (td->urb->transfer_flags &URB_SHORT_NOT_OK ) *status = -EREMOTEIO ;
@@ -2280,7 +2280,7 @@ static int process_bulk_intr_td(struct xhci_hcd *xhci, struct xhci_td *td,if (trb_comp_code !=COMP_STOP_INVAL ) td->urb->actual_length +=TRB_LEN (le32_to_cpu (cur_trb->generic.field[2 ])) - -TRB_LEN (le32_to_cpu (event->transfer_len)); +EVENT_TRB_LEN (le32_to_cpu (event->transfer_len)); }return finish_td (xhci, td, event_trb, event, ep, status, false);
@@ -2368,7 +2368,7 @@ static int handle_tx_event(struct xhci_hcd *xhci,* transfer type */ case COMP_SUCCESS : -if (TRB_LEN (le32_to_cpu (event->transfer_len)) ==0 ) +if (EVENT_TRB_LEN (le32_to_cpu (event->transfer_len)) ==0 )break ;if (xhci->quirks &XHCI_TRUST_TX_LENGTH ) trb_comp_code =COMP_SHORT_TX ;
drivers/usb/host/xhci.h +4 -0
@@ -972,6 +972,10 @@ struct xhci_transfer_event {__le32 flags; }; +/* Transfer event TRB length bit mask */ +/* bits 0:23 */ +#define EVENT_TRB_LEN (p) ((p) & 0xffffff) +/** Transfer Event bit fields **/ #define TRB_TO_EP_ID (p) (((p) >> 16) & 0x1f)
drivers/usb/serial/ark3116.c +6 -4
@@ -62,7 +62,6 @@ static int is_irda(struct usb_serial *serial) }struct ark3116_private { -wait_queue_head_t delta_msr_wait;struct async_icount icount;int irda;/* 1 for irda device */
@@ -146,7 +145,6 @@ static int ark3116_port_probe(struct usb_serial_port *port)if (!priv)return -ENOMEM ; -init_waitqueue_head (&priv->delta_msr_wait);mutex_init (&priv->hw_lock);spin_lock_init (&priv->status_lock);
@@ -456,10 +454,14 @@ static int ark3116_ioctl(struct tty_struct *tty,case TIOCMIWAIT :for (;;) {struct async_icount prev = priv->icount; -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + if ((prev.rng == priv->icount.rng) && (prev.dsr == priv->icount.dsr) && (prev.dcd == priv->icount.dcd) &&
@@ -580,7 +582,7 @@ static void ark3116_update_msr(struct usb_serial_port *port, __u8 msr) priv->icount.dcd++;if (msr &UART_MSR_TERI ) priv->icount.rng++; -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); } }
drivers/usb/serial/ch341.c +6 -5
@@ -80,7 +80,6 @@ MODULE_DEVICE_TABLE(usb, id_table);struct ch341_private {spinlock_t lock;/* access lock */ -wait_queue_head_t delta_msr_wait;/* wait queue for modem status */ unsigned baud_rate;/* set baud rate */ u8 line_control;/* set line control value RTS/DTR */ u8 line_status;/* active status of modem control inputs */
@@ -252,7 +251,6 @@ static int ch341_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->delta_msr_wait); priv->baud_rate =DEFAULT_BAUD_RATE ; priv->line_control =CH341_BIT_RTS |CH341_BIT_DTR ;
@@ -298,7 +296,7 @@ static void ch341_dtr_rts(struct usb_serial_port *port, int on) priv->line_control &= ~(CH341_BIT_RTS |CH341_BIT_DTR );spin_unlock_irqrestore (&priv->lock, flags);ch341_set_handshake (port->serial->dev, priv->line_control); -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); }static void ch341_close (struct usb_serial_port *port)
@@ -491,7 +489,7 @@ static void ch341_read_int_callback(struct urb *urb)tty_kref_put (tty); } -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); } exit:
@@ -517,11 +515,14 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (!multi_change) { -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->line_status; multi_change = priv->multi_status_change;
drivers/usb/serial/cypress_m8.c +8 -6
@@ -111,7 +111,6 @@ struct cypress_private {int baud_rate;/* stores current baud rate in integer form */ int isthrottled;/* if throttled, discard reads */ -wait_queue_head_t delta_msr_wait;/* used for TIOCMIWAIT */ char prev_status, diff_status;/* used for TIOCMIWAIT */ /* we pass a pointer to this as the argument sent to cypress_set_termios old_termios */
@@ -449,7 +448,6 @@ static int cypress_generic_port_probe(struct usb_serial_port *port)kfree (priv);return -ENOMEM ; } -init_waitqueue_head (&priv->delta_msr_wait);usb_reset_configuration (serial->dev);
@@ -868,12 +866,16 @@ static int cypress_ioctl(struct tty_struct *tty,switch (cmd) {/* This code comes from drivers/char/serial.c and ftdi_sio.c */ case TIOCMIWAIT : -while (priv !=NULL ) { -interruptible_sleep_on (&priv->delta_msr_wait); +for (;;) { +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; -else { + +if (port->serial->disconnected) +return -EIO ; + + {char diff = priv->diff_status;if (diff ==0 )return -EIO ;/* no change => error */
@@ -1187,7 +1189,7 @@ static void cypress_read_int_callback(struct urb *urb)if (priv->current_status != priv->prev_status) { priv->diff_status |= priv->current_status ^ priv->prev_status; -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); priv->prev_status = priv->current_status; }spin_unlock_irqrestore (&priv->lock, flags);
drivers/usb/serial/f81232.c +5 -4
@@ -47,7 +47,6 @@ MODULE_DEVICE_TABLE(usb, id_table);struct f81232_private {spinlock_t lock; -wait_queue_head_t delta_msr_wait;u8 line_control;u8 line_status; };
@@ -112,7 +111,7 @@ static void f81232_process_read_urb(struct urb *urb) line_status = priv->line_status; priv->line_status &= ~UART_STATE_TRANSIENT_MASK ;spin_unlock_irqrestore (&priv->lock, flags); -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait);if (!urb->actual_length)return ;
@@ -261,11 +260,14 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (1 ) { -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->line_status;spin_unlock_irqrestore (&priv->lock, flags);
@@ -327,7 +329,6 @@ static int f81232_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->delta_msr_wait);usb_set_serial_port_data (port, priv);
drivers/usb/serial/ftdi_sio.c +9 -11
@@ -69,9 +69,7 @@ struct ftdi_private {int flags;/* some ASYNC_xxxx flags are supported */ unsigned long last_dtr_rts;/* saved modem control outputs */ struct async_icount icount; -wait_queue_head_t delta_msr_wait;/* Used for TIOCMIWAIT */ char prev_status;/* Used for TIOCMIWAIT */ -bool dev_gone;/* Used to abort TIOCMIWAIT */ char transmit_empty;/* If transmitter is empty or not */ __u16 interface;/* FT2232C, FT2232H or FT4232H port interface (0 for FT232/245) */
@@ -642,6 +640,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_RM_CANVIEW_PID) }, { USB_DEVICE(ACTON_VID, ACTON_SPECTRAPRO_PID) }, { USB_DEVICE(CONTEC_VID, CONTEC_COM1USBH_PID) }, + { USB_DEVICE(MITSUBISHI_VID, MITSUBISHI_FXUSB_PID) }, { USB_DEVICE(BANDB_VID, BANDB_USOTL4_PID) }, { USB_DEVICE(BANDB_VID, BANDB_USTL4_PID) }, { USB_DEVICE(BANDB_VID, BANDB_USO9ML2_PID) },
@@ -1691,10 +1690,8 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)kref_init (&priv->kref);mutex_init (&priv->cfg_lock); -init_waitqueue_head (&priv->delta_msr_wait); priv->flags =ASYNC_LOW_LATENCY ; - priv->dev_gone = false;if (quirk && quirk->port_probe) quirk->port_probe (priv);
@@ -1840,8 +1837,7 @@ static int ftdi_sio_port_remove(struct usb_serial_port *port) {struct ftdi_private *priv =usb_get_serial_port_data (port); - priv->dev_gone = true; -wake_up_interruptible_all (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait);remove_sysfs_attrs (port);
@@ -1990,7 +1986,7 @@ static int ftdi_process_packet(struct tty_struct *tty,if (diff_status &FTDI_RS0_RLSD ) priv->icount.dcd++; -wake_up_interruptible_all (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); priv->prev_status = status; }
@@ -2447,11 +2443,15 @@ static int ftdi_ioctl(struct tty_struct *tty,*/ case TIOCMIWAIT : cprev = priv->icount; -while (!priv->dev_gone) { -interruptible_sleep_on (&priv->delta_msr_wait); +for (;;) { +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = priv->icount; if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) ||
@@ -2461,8 +2461,6 @@ static int ftdi_ioctl(struct tty_struct *tty, } cprev = cnow; } -return -EIO ; -break ;case TIOCSERGETLSR :return get_lsr_info (port, (struct serial_struct __user *)arg);break ;
drivers/usb/serial/ftdi_sio_ids.h +7 -0
@@ -584,6 +584,13 @@#define CONTEC_COM1USBH_PID 0x8311/* COM-1(USB)H */ /* +* Mitsubishi Electric Corp. (http://www.meau.com) +* Submitted by Konstantin Holoborodko +*/ +#define MITSUBISHI_VID 0x06D3 +#define MITSUBISHI_FXUSB_PID 0x0284/* USB/RS422 converters: FX-USB-AW/-BD */ + +/* * Definitions for B&B Electronics products. */ #define BANDB_VID 0x0856/* B&B Electronics Vendor ID */
drivers/usb/serial/io_edgeport.c +7 -5
@@ -110,7 +110,6 @@ struct edgeport_port {wait_queue_head_t wait_chase;/* for handling sleeping while waiting for chase to finish */ wait_queue_head_t wait_open;/* for handling sleeping while waiting for open to finish */ wait_queue_head_t wait_command;/* for handling sleeping while waiting for command to finish */ -wait_queue_head_t delta_msr_wait;/* for handling sleeping while waiting for msr change to happen */ struct async_icount icount;struct usb_serial_port *port;/* loop back to the owner of this object */
@@ -884,7 +883,6 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port)/* initialize our wait queues */ init_waitqueue_head (&edge_port->wait_open);init_waitqueue_head (&edge_port->wait_chase); -init_waitqueue_head (&edge_port->delta_msr_wait);init_waitqueue_head (&edge_port->wait_command);/* initialize our icount structure */
@@ -1669,13 +1667,17 @@ static int edge_ioctl(struct tty_struct *tty,dev_dbg (&port->dev,"%s (%d) TIOCMIWAIT\n" , __func__, port->number); cprev = edge_port->icount;while (1 ) { -prepare_to_wait (&edge_port->delta_msr_wait, +prepare_to_wait (&port->delta_msr_wait, &wait,TASK_INTERRUPTIBLE );schedule (); -finish_wait (&edge_port->delta_msr_wait, &wait); +finish_wait (&port->delta_msr_wait, &wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = edge_port->icount;if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && cnow.dcd == cprev.dcd && cnow.cts == cprev.cts)
@@ -2055,7 +2057,7 @@ static void handle_new_msr(struct edgeport_port *edge_port, __u8 newMsr) icount->dcd++;if (newMsr &EDGEPORT_MSR_DELTA_RI ) icount->rng++; -wake_up_interruptible (&edge_port->delta_msr_wait); +wake_up_interruptible (&edge_port->port->delta_msr_wait); }/* Save the new modem status */
drivers/usb/serial/io_ti.c +6 -6
@@ -87,9 +87,6 @@ struct edgeport_port {int close_pending;int lsr_event;struct async_icount icount; -wait_queue_head_t delta_msr_wait;/* for handling sleeping while -waiting for msr change to -happen */ struct edgeport_serial *edge_serial;struct usb_serial_port *port;__u8 bUartMode;/* Port type, 0: RS232, etc. */
@@ -1518,7 +1515,7 @@ static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) icount->dcd++;if (msr &EDGEPORT_MSR_DELTA_RI ) icount->rng++; -wake_up_interruptible (&edge_port->delta_msr_wait); +wake_up_interruptible (&edge_port->port->delta_msr_wait); }/* Save the new modem status */
@@ -1821,7 +1818,6 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) dev = port->serial->dev;memset (&(edge_port->icount),0x00 ,sizeof (edge_port->icount)); -init_waitqueue_head (&edge_port->delta_msr_wait);/* turn off loopback */ status =ti_do_config (edge_port,UMPC_SET_CLR_LOOPBACK ,0 );
@@ -2488,10 +2484,14 @@ static int edge_ioctl(struct tty_struct *tty,dev_dbg (&port->dev,"%s - TIOCMIWAIT\n" , __func__); cprev = edge_port->icount;while (1 ) { -interruptible_sleep_on (&edge_port->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = edge_port->icount;if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && cnow.dcd == cprev.dcd && cnow.cts == cprev.cts)
drivers/usb/serial/mct_u232.c +7 -6
@@ -114,8 +114,6 @@ struct mct_u232_private {unsigned char last_msr;/* Modem Status Register */ unsigned int rx_flags;/* Throttling flags */ struct async_icount icount; -wait_queue_head_t msr_wait;/* for handling sleeping while waiting -for msr change to happen */ };#define THROTTLED 0x01
@@ -409,7 +407,6 @@ static int mct_u232_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->msr_wait);usb_set_serial_port_data (port, priv);
@@ -606,7 +603,7 @@ static void mct_u232_read_int_callback(struct urb *urb) tty_kref_put(tty); }#endif -wake_up_interruptible (&priv->msr_wait); +wake_up_interruptible (&port->delta_msr_wait);spin_unlock_irqrestore (&priv->lock, flags); exit: retval =usb_submit_urb (urb,GFP_ATOMIC );
@@ -815,13 +812,17 @@ static int mct_u232_ioctl(struct tty_struct *tty, cprev = mct_u232_port->icount;spin_unlock_irqrestore (&mct_u232_port->lock, flags);for ( ; ; ) { -prepare_to_wait (&mct_u232_port->msr_wait, +prepare_to_wait (&port->delta_msr_wait, &wait,TASK_INTERRUPTIBLE );schedule (); -finish_wait (&mct_u232_port->msr_wait, &wait); +finish_wait (&port->delta_msr_wait, &wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&mct_u232_port->lock, flags); cnow = mct_u232_port->icount;spin_unlock_irqrestore (&mct_u232_port->lock, flags);
drivers/usb/serial/mos7840.c +10 -6
@@ -219,7 +219,6 @@ struct moschip_port {char open;char open_ports;wait_queue_head_t wait_chase;/* for handling sleeping while waiting for chase to finish */ -wait_queue_head_t delta_msr_wait;/* for handling sleeping while waiting for msr change to happen */ int delta_msr_cond;struct async_icount icount;struct usb_serial_port *port;/* loop back to the owner of this object */
@@ -423,6 +422,9 @@ static void mos7840_handle_new_msr(struct moschip_port *port, __u8 new_msr) icount->rng++;smp_wmb (); } + + mos7840_port->delta_msr_cond =1 ; +wake_up_interruptible (&port->port->delta_msr_wait); } }
@@ -1131,7 +1133,6 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port)/* initialize our wait queues */ init_waitqueue_head (&mos7840_port->wait_chase); -init_waitqueue_head (&mos7840_port->delta_msr_wait);/* initialize our icount structure */ memset (&(mos7840_port->icount),0x00 ,sizeof (mos7840_port->icount));
@@ -2021,8 +2022,6 @@ static void mos7840_change_port_settings(struct tty_struct *tty, mos7840_port->read_urb_busy = false; } } -wake_up (&mos7840_port->delta_msr_wait); - mos7840_port->delta_msr_cond =1 ;dev_dbg (&port->dev,"%s - mos7840_port->shadowLCR is End %x\n" , __func__, mos7840_port->shadowLCR); }
@@ -2223,13 +2222,18 @@ static int mos7840_ioctl(struct tty_struct *tty,while (1 ) {/* interruptible_sleep_on(&mos7840_port->delta_msr_wait); */ mos7840_port->delta_msr_cond =0 ; -wait_event_interruptible (mos7840_port->delta_msr_wait, - (mos7840_port-> +wait_event_interruptible (port->delta_msr_wait, + (port->serial->disconnected || + mos7840_port-> delta_msr_cond ==1 ));/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = mos7840_port->icount;smp_rmb (); if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr &&
drivers/usb/serial/oti6858.c +6 -4
@@ -188,7 +188,6 @@ struct oti6858_private {u8 setup_done;struct delayed_work delayed_setup_work; -wait_queue_head_t intr_wait;struct usb_serial_port *port;/* USB port with which associated */ };
@@ -339,7 +338,6 @@ static int oti6858_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->intr_wait); priv->port = port;INIT_DELAYED_WORK (&priv->delayed_setup_work, setup_line);INIT_DELAYED_WORK (&priv->delayed_write_work, send_data);
@@ -664,11 +662,15 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (1 ) { -wait_event_interruptible (priv->intr_wait, +wait_event_interruptible (port->delta_msr_wait, + port->serial->disconnected || priv->status.pin_state != prev);if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->status.pin_state &PIN_MASK ;spin_unlock_irqrestore (&priv->lock, flags);
@@ -763,7 +765,7 @@ static void oti6858_read_int_callback(struct urb *urb)if (!priv->transient) {if (xs->pin_state != priv->status.pin_state) -wake_up_interruptible (&priv->intr_wait); +wake_up_interruptible (&port->delta_msr_wait);memcpy (&priv->status, xs,OTI6858_CTRL_PKT_SIZE ); }
drivers/usb/serial/pl2303.c +6 -5
@@ -139,7 +139,6 @@ struct pl2303_serial_private {struct pl2303_private {spinlock_t lock; -wait_queue_head_t delta_msr_wait;u8 line_control;u8 line_status; };
@@ -233,7 +232,6 @@ static int pl2303_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->delta_msr_wait);usb_set_serial_port_data (port, priv);
@@ -607,11 +605,14 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (1 ) { -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->line_status;spin_unlock_irqrestore (&priv->lock, flags);
@@ -719,7 +720,7 @@ static void pl2303_update_line_status(struct usb_serial_port *port,spin_unlock_irqrestore (&priv->lock, flags);if (priv->line_status &UART_BREAK_ERROR )usb_serial_handle_break (port); -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); tty =tty_port_tty_get (&port->port);if (!tty)
@@ -784,7 +785,7 @@ static void pl2303_process_read_urb(struct urb *urb) line_status = priv->line_status; priv->line_status &= ~UART_STATE_TRANSIENT_MASK ;spin_unlock_irqrestore (&priv->lock, flags); -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait);if (!urb->actual_length)return ;
drivers/usb/serial/quatech2.c +7 -5
@@ -128,7 +128,6 @@ struct qt2_port_private {u8 shadowLSR;u8 shadowMSR; -wait_queue_head_t delta_msr_wait;/* Used for TIOCMIWAIT */ struct async_icount icount;struct usb_serial_port *port;
@@ -506,8 +505,9 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->lock, flags);while (1 ) { -wait_event_interruptible (priv->delta_msr_wait, - ((priv->icount.rng != prev.rng) || +wait_event_interruptible (port->delta_msr_wait, + (port->serial->disconnected || + (priv->icount.rng != prev.rng) || (priv->icount.dsr != prev.dsr) || (priv->icount.dcd != prev.dcd) || (priv->icount.cts != prev.cts)));
@@ -515,6 +515,9 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); cur = priv->icount;spin_unlock_irqrestore (&priv->lock, flags);
@@ -841,7 +844,6 @@ static int qt2_port_probe(struct usb_serial_port *port)spin_lock_init (&port_priv->lock);spin_lock_init (&port_priv->urb_lock); -init_waitqueue_head (&port_priv->delta_msr_wait); port_priv->port = port; port_priv->write_urb =usb_alloc_urb (0 ,GFP_KERNEL );
@@ -984,7 +986,7 @@ static void qt2_update_msr(struct usb_serial_port *port, unsigned char *ch)if (newMSR &UART_MSR_TERI ) port_priv->icount.rng++; -wake_up_interruptible (&port_priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); } }
drivers/usb/serial/spcp8x5.c +5 -4
@@ -149,7 +149,6 @@ enum spcp8x5_type {struct spcp8x5_private {spinlock_t lock;enum spcp8x5_type type; -wait_queue_head_t delta_msr_wait;u8 line_control;u8 line_status; };
@@ -179,7 +178,6 @@ static int spcp8x5_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->lock); -init_waitqueue_head (&priv->delta_msr_wait); priv->type = type;usb_set_serial_port_data (port , priv);
@@ -476,7 +474,7 @@ static void spcp8x5_process_read_urb(struct urb *urb) priv->line_status &= ~UART_STATE_TRANSIENT_MASK ;spin_unlock_irqrestore (&priv->lock, flags);/* wake up the wait for termios */ -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait);if (!urb->actual_length)return ;
@@ -526,12 +524,15 @@ static int spcp8x5_wait_modem_info(struct usb_serial_port *port,while (1 ) {/* wake up in bulk read */ -interruptible_sleep_on (&priv->delta_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);/* see if a signal did it */ if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->lock, flags); status = priv->line_status;spin_unlock_irqrestore (&priv->lock, flags);
drivers/usb/serial/ssu100.c +7 -5
@@ -61,7 +61,6 @@ struct ssu100_port_private {spinlock_t status_lock;u8 shadowLSR;u8 shadowMSR; -wait_queue_head_t delta_msr_wait;/* Used for TIOCMIWAIT */ struct async_icount icount; };
@@ -355,8 +354,9 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)spin_unlock_irqrestore (&priv->status_lock, flags);while (1 ) { -wait_event_interruptible (priv->delta_msr_wait, - ((priv->icount.rng != prev.rng) || +wait_event_interruptible (port->delta_msr_wait, + (port->serial->disconnected || + (priv->icount.rng != prev.rng) || (priv->icount.dsr != prev.dsr) || (priv->icount.dcd != prev.dcd) || (priv->icount.cts != prev.cts)));
@@ -364,6 +364,9 @@ static int wait_modem_info(struct usb_serial_port *port, unsigned int arg)if (signal_pending (current))return -ERESTARTSYS ; +if (port->serial->disconnected) +return -EIO ; +spin_lock_irqsave (&priv->status_lock, flags); cur = priv->icount;spin_unlock_irqrestore (&priv->status_lock, flags);
@@ -445,7 +448,6 @@ static int ssu100_port_probe(struct usb_serial_port *port)return -ENOMEM ;spin_lock_init (&priv->status_lock); -init_waitqueue_head (&priv->delta_msr_wait);usb_set_serial_port_data (port, priv);
@@ -537,7 +539,7 @@ static void ssu100_update_msr(struct usb_serial_port *port, u8 msr) priv->icount.dcd++;if (msr &UART_MSR_TERI ) priv->icount.rng++; -wake_up_interruptible (&priv->delta_msr_wait); +wake_up_interruptible (&port->delta_msr_wait); } }
drivers/usb/serial/ti_usb_3410_5052.c +6 -4
@@ -74,7 +74,6 @@ struct ti_port {int tp_flags;int tp_closing_wait;/* in .01 secs */ struct async_icount tp_icount; -wait_queue_head_t tp_msr_wait;/* wait for msr change */ wait_queue_head_t tp_write_wait;struct ti_device *tp_tdev;struct usb_serial_port *tp_port;
@@ -432,7 +431,6 @@ static int ti_port_probe(struct usb_serial_port *port)else tport->tp_uart_base_addr =TI_UART2_BASE_ADDR ; tport->tp_closing_wait = closing_wait; -init_waitqueue_head (&tport->tp_msr_wait);init_waitqueue_head (&tport->tp_write_wait);if (kfifo_alloc (&tport->write_fifo,TI_WRITE_BUF_SIZE ,GFP_KERNEL )) {kfree (tport);
@@ -784,9 +782,13 @@ static int ti_ioctl(struct tty_struct *tty,dev_dbg (&port->dev,"%s - TIOCMIWAIT\n" , __func__); cprev = tport->tp_icount;while (1 ) { -interruptible_sleep_on (&tport->tp_msr_wait); +interruptible_sleep_on (&port->delta_msr_wait);if (signal_pending (current))return -ERESTARTSYS ; + +if (port->serial->disconnected) +return -EIO ; + cnow = tport->tp_icount;if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && cnow.dcd == cprev.dcd && cnow.cts == cprev.cts)
@@ -1400,7 +1402,7 @@ static void ti_handle_new_msr(struct ti_port *tport, __u8 msr) icount->dcd++;if (msr &TI_MSR_DELTA_RI ) icount->rng++; -wake_up_interruptible (&tport->tp_msr_wait); +wake_up_interruptible (&tport->tp_port->delta_msr_wait);spin_unlock_irqrestore (&tport->tp_lock, flags); }
drivers/usb/serial/usb-serial.c +1 -0
@@ -897,6 +897,7 @@ static int usb_serial_probe(struct usb_interface *interface, port->port.ops = &serial_port_ops; port->serial = serial;spin_lock_init (&port->lock);
Lines of this file are not shown. View the raw message.
drivers/xen/xen-pciback/pci_stub.c +44 -15
59 lines not on this page · raw message
fs/btrfs/extent-tree.c +42 -7
49 lines not on this page · raw message
fs/namespace.c +53 -1
54 lines not on this page · raw message
fs/nfs/pnfs.c +45 -9
54 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Quoted 4 lines · Greg KH
I'm announcing the release of the 3.8.6 kernel.
All users of the 3.8 kernel series must upgrade.
Quoted 9 lines
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-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=summarythanks,
greg k-h
Hi Greg, I have an issue with a Lenovo T60's Notebook, which has an Intel VGA card.
[lucas@tux ~]$ lspci | grep "VGA"
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
The screen turns black whenever X is executed, due to the following bug:
https://bugs.freedesktop.org/show_bug.cgi?id=57365
https://bugs.archlinux.org/task/33062
Those sites havethe error output that is generated from X attempts to start. Nonetheless, the causes of this issue have already been figured:
According to comment #32 in the freedesktop site ( https://bugs.freedesktop.org/show_bug.cgi?id=57365#c32 ), the fix has been introduced in the 3.9 series.
Believe it or not, the last stable release in which X is able to start is 3.6.11. The whole 3.7 and 3.8 series together were unable to tackle this issue down. Seems that Intel is not doing its homework here :(
My question is:
Knowing that the following patches solve the issue, can they be backported and included in the next release of 3.8 ?
Thank you very much,
Lucas
commit 24a1f16de97c4cf0029d9acd04be06db32208726
Author: Mika Kuoppala <[email protected]> Date: Fri Feb 8 16:35:37 2013 +0200
drm/i915: disable shared panel fitter for pipe
commit 9d6d9f19e8146fa24903cb561e204a22232740e3
Author: Mika Kuoppala <[email protected]> Date: Fri Feb 8 16:35:38 2013 +0200
drm/i915: clean up panel fitter handling in lvds
Greg KH
maintainerQuoted 55 lines · Lucas
Quoted 4 lines · Greg KH
I'm announcing the release of the 3.8.6 kernel.
All users of the 3.8 kernel series must upgrade.
Quoted 9 lines
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-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=summarythanks,
greg k-h
Hi Greg, I have an issue with a Lenovo T60's Notebook, which has an Intel VGA card.
[lucas@tux ~]$ lspci | grep "VGA"
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev
03)The screen turns black whenever X is executed, due to the following bug:
https://bugs.freedesktop.org/show_bug.cgi?id=57365
https://bugs.archlinux.org/task/33062
Those sites havethe error output that is generated from X attempts to start. Nonetheless, the causes of this issue have already been figured:
According to comment #32 in the freedesktop site (
https://bugs.freedesktop.org/show_bug.cgi?id=57365#c32 ), the fix has been introduced in the 3.9 series.Believe it or not, the last stable release in which X is able to start is 3.6.11. The whole 3.7 and 3.8 series together were unable to tackle this issue down. Seems that Intel is not doing its homework here :(
My question is:
Knowing that the following patches solve the issue, can they be backported and included in the next release of 3.8 ?
Thank you very much,
Lucascommit
24a1f16de97c4cf0029d9acd04be06db32208726Author: Mika Kuoppala <[email protected]> Date: Fri Feb 8 16:35:37 2013 +0200
Quoted 8 lines
drm/i915: disable shared panel fitter for pipe
commit
9d6d9f19e8146fa24903cb561e204a22232740e3Author: Mika Kuoppala <[email protected]> Date: Fri Feb 8 16:35:38 2013 +0200drm/i915: clean up panel fitter handling in lvds
Sure, can you cc: the authors of those patches, and anyone who signed-off on them in order to get their approval as well?
thanks,
greg k-h
Alright, CC'ing the mantainers as well.
Thanks again,
Lucas
Quoted 8 lines · Greg KH
Sure, can you cc: the authors of those patches, and anyone who signed-off on them in order to get their approval as well?
thanks,
greg k-h
Maintainer reporting in. But can we please drag the context in again? -Daniel
Quoted 16 lines · Lucas
Alright, CC'ing the mantainers as well.
Thanks again,
LucasQuoted 9 lines · Greg KH
Sure, can you cc: the authors of those patches, and anyone who signed-off on them in order to get their approval as well?
thanks,
greg k-h
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 23 lines · Daniel Vetter
Maintainer reporting in. But can we please drag the context in again? -Daniel
Quoted 16 lines · Lucas
Alright, CC'ing the mantainers as well.
Thanks again,
LucasQuoted 9 lines · Greg KH
Sure, can you cc: the authors of those patches, and anyone who signed-off on them in order to get their approval as well?
thanks,
greg k-h
Quoted 5 lines
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Thanks for reporting in.
Somehow the thread got all messed up in LKML. It didn't parse correctly there, but it seems that Gmane did. Here is the link:
http://comments.gmane.org/gmane.linux.kernel.stable/48872
Good luck,
Lucas
Quoted 6 lines · Lucas
Thanks for reporting in.
Somehow the thread got all messed up in LKML. It didn't parse correctly there, but it seems that Gmane did. Here is the link:
Those patches still have an unresolved regression against them. Unfortunately I can't reproduce it despite that I have a very similar system, and obviously a bunch of other people like you reported that the exact same patches which regressed actually fix the lvds panel fitter. So for now this stays in limbo :(
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 8 lines · Daniel Vetter
Quoted 6 lines · Lucas
Thanks for reporting in.
Somehow the thread got all messed up in LKML. It didn't parse correctly there, but it seems that Gmane did. Here is the link:
Quoted 11 lines
Those patches still have an unresolved regression against them. Unfortunately I can't reproduce it despite that I have a very similar system, and obviously a bunch of other people like you reported that the exact same patches which regressed actually fix the lvds panel fitter. So for now this stays in limbo :(
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Ok, if you need any help with testing or anything, just tell me.
For me every release candidate of 3.9 from rc1 onwards is able to boot X. Hope you can hunt this regresion down.
Thanks,
Lucas