Linux 3.4.93
Greg KH
maintainerI'm announcing the release of the 3.4.93 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/tty/serial/of-serial.txt | 3 Makefile | 2 arch/arm/include/asm/uaccess.h | 3 drivers/block/virtio_blk.c | 20 -- drivers/bluetooth/ath3k.c | 39 ++++ drivers/bluetooth/btusb.c | 28 ++ drivers/char/virtio_console.c | 22 +- drivers/md/md.c | 4 drivers/scsi/hpsa.c | 32 ++- drivers/scsi/isci/task.c | 9 drivers/scsi/mpt2sas/mpt2sas_base.c | 13 - drivers/scsi/mpt2sas/mpt2sas_base.h | 3 drivers/scsi/mpt2sas/mpt2sas_scsih.c | 126 ++++++++++++- drivers/staging/speakup/main.c | 1 drivers/staging/speakup/selection.c | 38 +++ drivers/staging/speakup/speakup.h | 1 drivers/target/iscsi/iscsi_target_login.c | 8 drivers/target/iscsi/iscsi_target_nego.c | 10 - drivers/target/target_core_alua.c | 6 drivers/target/target_core_file.c | 9 drivers/target/target_core_pscsi.c | 8 drivers/target/target_core_transport.c | 5 drivers/tty/serial/8250/8250.c | 36 +++ drivers/tty/serial/8250/8250.h | 1 drivers/tty/serial/8250/8250_pci.c | 55 ++++- drivers/tty/serial/of_serial.c | 6 drivers/tty/serial/pch_uart.c | 5 drivers/tty/tty_buffer.c | 11 - drivers/usb/core/driver.c | 9 drivers/usb/core/hub.c | 15 + drivers/usb/host/xhci-mem.c | 20 +- drivers/usb/serial/ftdi_sio.c | 2 drivers/usb/serial/ftdi_sio_ids.h | 5 drivers/usb/serial/io_ti.c | 2 drivers/usb/serial/io_usbvend.h | 2 drivers/usb/serial/option.c | 2 fs/nfsd/nfsctl.c | 62 ++++-- fs/nfsd/nfsd.h | 6 fs/nfsd/nfssvc.c | 41 ++-- include/linux/highmem.h | 7 include/linux/pci_ids.h | 1 include/linux/serial_core.h | 6 include/linux/sunrpc/svcsock.h | 1 include/linux/virtio_console.h | 2 kernel/cpu.c | 6 kernel/events/core.c | 61 ++++-- kernel/sched/core.c | 1 kernel/sched/cpupri.c | 3 mm/highmem.c | 13 + mm/memory-failure.c | 2 mm/rmap.c | 3 net/9p/trans_virtio.c | 3 net/bluetooth/l2cap_core.c | 94 +++++++-- net/sunrpc/svcsock.c | 16 + sound/pci/hda/patch_realtek.c | 10 - 55 files changed, 690 insertions(+), 209 deletions(-)
AceLan Kao (5):
Bluetooth: Add support for IMC Networks [13d3:3393]
Bluetooth: Add support for Foxconn / Hon Hai [0489:e04e]
Bluetooth: Add support for Foxconn / Hon Hai [0489:e056]
Bluetooth: Add support for Atheros [0cf3:3121]
Bluetooth: Add support for Atheros [0cf3:e003]
Alan Stern (1):
USB: Avoid runtime suspend loops for HCDs that can't handle suspend/resume
Alexander Graf (1):
virtio-blk: Don't free ida when disk is in use
Alexej Starschenko (1):
USB: serial: option: add support for Novatel E371 PCIe card
Amit Shah (2):
virtio: console: rename cvq_lock to c_ivq_lock
virtio: console: add locking around c_ovq operations
Andrey Ryabinin (2):
ARM: 8051/1: put_user: fix possible data corruption in put_user
mm: rmap: fix use-after-free in __put_anon_vma
Asias He (4):
virtio_blk: Drop unused request tracking list
virtio-blk: Fix hot-unplug race in remove method
virtio-blk: Call del_gendisk() before disable guest kick
virtio-blk: Reset device after blk_cleanup_queue()
Ben Hutchings (2):
Staging: speakup: Move pasting into a work item
mm: add kmap_to_page()
Cho, Yu-Chen (1):
Bluetooth: Add support for Mediatek Bluetooth device [0e8d:763f]
Daniel Schaal (1):
Bluetooth: Add support for GC-WB300D PCIe [04ca:3006] to ath3k.
George McCollister (1):
USB: ftdi_sio: add NovaTech OrionLXm product ID
Giancarlo Formicuccia (1):
Bluetooth: add support for atheros 0930:0219
Greg Kroah-Hartman (1):
Linux 3.4.93
Gustavo Padovan (1):
Bluetooth: Add USB_VENDOR_AND_INTERFACE_INFO() for Broadcom/Foxconn
Hannes Reinecke (1):
target: use correct sense code for LUN communication failure
Ilya Zykov (1):
tty: Correct tty buffer flush.
Jaganath Kanakkassery (1):
Bluetooth: Fix invalid length check in l2cap_information_rsp()
Jaroslav Resler (1):
Bluetooth: Add support for BCM20702A0 [04ca, 2003]
Jeff Cook (1):
Bluetooth: Add support for BCM20702A0 [0b05, 17b5]
Jeff Skirvin (1):
isci: Fix a race condition in the SSP task management path
Jiri Olsa (1):
perf: Prevent false warning in perf_swevent_add
Johan Hedberg (1):
Bluetooth: Fix missing length checks for L2CAP signalling PDUs
Johan Hovold (3):
USB: io_ti: fix firmware download on big-endian machines (part 2)
serial: pch_uart: fix tty-kref leak in dma-rx path
serial: pch_uart: fix tty-kref leak in rx-error path
Josh Boyer (1):
Bluetooth: Add support for atheros 04ca:3004 device to ath3k
Lai Jiangshan (1):
sched: Fix hotplug vs. set_cpus_allowed_ptr()
Ley Foon Tan (1):
tty/serial: Add support for Altera serial port
Marek Vasut (1):
Bluetooth: Support AR3011 in Acer Iconia Tab W500
Mathias Nyman (1):
xhci: delete endpoints from bandwidth list before freeing whole device
Michael Gruetzner (1):
Bluetooth: Add support for Foxconn/Hon Hai AR5BBU22 0489:E03C
Michael S. Tsirkin (1):
virtio_console: fix uapi header
Mike Miller (1):
hpsa: gen8plus Smart Array IDs
Naoya Horiguchi (1):
mm/memory-failure.c: fix memory leak by race between poison and unpoison
NeilBrown (1):
md: always set MD_RECOVERY_INTR when aborting a reshape or other "resync".
Nicholas Bellinger (1):
target: Fix MAINTENANCE_IN service action CDB checks to use lower 5 bits
Noguchi Kazutosi (1):
Bluetooth: Add support for Foxconn/Hon Hai [0489:e04d]
Peng Chen (2):
Bluetooth: add support for atheros 0489:e057
Bluetooth: Add a new PID/VID 0cf3/e005 for AR3012.
Peter Zijlstra (2):
perf: Limit perf_event_attr::sample_period to 63 bits
perf: Fix race in removing an event
Raphael Kubo da Costa (1):
Bluetooth: Add support for BCM20702A0 [0b05, 17cb]
Reddy, Sreekanth (1):
mpt2sas: Fix for issue Missing delay not getting set during system bootup
Roland Dreier (1):
iscsi-target: Always send a response before terminating iSCSI connection
Ronan Marquet (1):
ALSA: hda/realtek - Correction of fixup codes for PB V7900 laptop
Scott Ashcroft (1):
Fix 4 port and add support for 8 port 'Unknown' PCI serial port cards
Sebastian Andrzej Siewior (1):
target/file: Fix 32-bit highmem breakage for SGL -> iovec mapping
Sergio Cambra (1):
Bluetooth device 04ca:3008 should use ath3k
Sreekanth Reddy (1):
mpt2sas: Fix for device scan following host reset could get stuck in a infinite loop
Stanislav Kinsbursky (9):
nfsd: pass net to nfsd_init_socks()
nfsd: pass net to nfsd_startup() and nfsd_shutdown()
nfsd: pass net to nfsd_create_serv()
nfsd: pass net to nfsd_svc()
nfsd: pass net to nfsd_set_nrthreads()
nfsd: pass net to __write_ports() and down
nfsd: pass proper net to nfsd_destroy() from NFSd kthreads
nfsd: containerize NFSd filesystem
nfsd: check passed socket's net matches NFSd superblock's one
Stephen Hurd (1):
8250/16?50: Add support for Broadcom TruManage redirected serial port
Steven Rostedt (Red Hat) (1):
sched: Use CPUPRI_NR_PRIORITIES instead of MAX_RT_PRIO in cpupri check
Sujith Manoharan (1):
Bluetooth: ath3k: Add support for ID 0x13d3/0x3402
Sunguk Lee (1):
Bluetooth: Device 0cf3:3008 should map AR 3012
Takashi Iwai (1):
ALSA: hda/realtek - Fix COEF widget NID for ALC260 replacer fixup
Thomas Loo (1):
Bluetooth: ath3k: Add support for Fujitsu Lifebook UH5x2 [04c5:1330]
Wei Yongjun (1):
target/pscsi: fix return value check
Will Deacon (3):
mm: highmem: export kmap_to_page for modules
virtio: 9p: correctly pass physical address to userspace for high pages
mm: highmem: don't treat PKMAP_ADDR(LAST_PKMAP) as a highmem address
Yevgeniy Melnichuk (1):
Bluetooth: Add support for Sony Vaio T-Series
Greg KH
maintainerDocumentation/devicetree/bindings/tty/serial/of-serial.txt +3 -0
@@ -10,6 +10,9 @@ Required properties: - "ns16850" - "nvidia,tegra20-uart" - "ibm,qpace-nwp-serial" + - "altr,16550-FIFO32" + - "altr,16550-FIFO64" + - "altr,16550-FIFO128" - "serial" if the port type is unknown. - reg : offset and length of the register set for the device. - interrupts : should contain uart interrupt.
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 92 +SUBLEVEL = 93 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/include/asm/uaccess.h +2 -1
@@ -158,8 +158,9 @@ extern int __put_user_8(void *, unsigned long long);#define put_user (x,p) \ ({ \ unsigned long __limit = current_thread_info()->addr_limit - 1; \ + const typeof(*(p)) __user *__tmp_p = (p); \ register const typeof(*(p)) __r2 asm("r2") = (x); \ - register const typeof(*(p)) __user *__p asm("r0") = (p);\ + register const typeof(*(p)) __user *__p asm("r0") = __tmp_p; \ register unsigned long __l asm("r1") = __limit; \ register int __e asm("r0"); \ switch (sizeof(*(__p))) { \
drivers/block/virtio_blk.c +8 -12
@@ -27,9 +27,6 @@ struct virtio_blk/* The disk structure for the kernel. */ struct gendisk *disk; -/* Request tracking. */ -struct list_head reqs; -mempool_t *pool;/* Process context for config space updates */
@@ -53,7 +50,6 @@ struct virtio_blkstruct virtblk_req { -struct list_head list;struct request *req;struct virtio_blk_outhdr out_hdr;struct virtio_scsi_inhdr in_hdr;
@@ -97,7 +93,6 @@ static void blk_done(struct virtqueue *vq) }__blk_end_request_all (vbr->req, error); -list_del (&vbr->list);mempool_free (vbr, vblk->pool); }/* In case queue is stopped waiting for more buffers. */
@@ -182,7 +177,6 @@ static bool do_req(struct request_queue *q, struct virtio_blk *vblk,return false; } -list_add_tail (&vbr->list, &vblk->reqs);return true; }
@@ -435,7 +429,6 @@ static int __devinit virtblk_probe(struct virtio_device *vdev) goto out_free_index; } -INIT_LIST_HEAD (&vblk->reqs); vblk->vdev = vdev; vblk->sg_elems = sg_elems;sg_init_table (vblk->sg, vblk->sg_elems);
@@ -580,27 +573,30 @@ static void __devexit virtblk_remove(struct virtio_device *vdev) {struct virtio_blk *vblk = vdev->priv;int index = vblk->index; +int refc;/* Prevent config work handler from accessing the device. */ mutex_lock (&vblk->config_lock); vblk->config_enable = false;mutex_unlock (&vblk->config_lock); -/* Nothing should be pending. */ -BUG_ON (!list_empty (&vblk->reqs)); +del_gendisk (vblk->disk); +blk_cleanup_queue (vblk->disk->queue);/* Stop all the virtqueues. */ vdev->config->reset (vdev);flush_work (&vblk->config_work); -del_gendisk (vblk->disk); -blk_cleanup_queue (vblk->disk->queue); + refc =atomic_read (&disk_to_dev (vblk->disk)->kobj.kref.refcount);put_disk (vblk->disk);mempool_destroy (vblk->pool); vdev->config->del_vqs (vdev);kfree (vblk); -ida_simple_remove (&vd_index_ida, index); + +/* Only free device id if we don't have any users */ +if (refc ==1 ) +ida_simple_remove (&vd_index_ida, index); }#ifdef CONFIG_PM
drivers/bluetooth/ath3k.c +39 -0
@@ -63,6 +63,7 @@ static struct usb_device_id ath3k_table[] = {/* Atheros AR3011 with sflash firmware*/ { USB_DEVICE(0x0CF3, 0x3002) }, + { USB_DEVICE(0x0CF3, 0xE019) }, { USB_DEVICE(0x13d3, 0x3304) }, { USB_DEVICE(0x0930, 0x0215) }, { USB_DEVICE(0x0489, 0xE03D) },
@@ -74,16 +75,35 @@ static struct usb_device_id ath3k_table[] = {/* Atheros AR3012 with sflash firmware*/ { USB_DEVICE(0x0CF3, 0x0036) }, { USB_DEVICE(0x0CF3, 0x3004) }, + { USB_DEVICE(0x0CF3, 0x3008) }, { USB_DEVICE(0x0CF3, 0x311D) }, { USB_DEVICE(0x0CF3, 0x817a) }, { USB_DEVICE(0x13d3, 0x3375) }, + { USB_DEVICE(0x04CA, 0x3004) }, { USB_DEVICE(0x04CA, 0x3005) }, + { USB_DEVICE(0x04CA, 0x3006) }, + { USB_DEVICE(0x04CA, 0x3008) }, { USB_DEVICE(0x13d3, 0x3362) }, { USB_DEVICE(0x0CF3, 0xE004) }, + { USB_DEVICE(0x0CF3, 0xE005) }, + { USB_DEVICE(0x0930, 0x0219) }, + { USB_DEVICE(0x0489, 0xe057) }, + { USB_DEVICE(0x13d3, 0x3393) }, + { USB_DEVICE(0x0489, 0xe04e) }, + { USB_DEVICE(0x0489, 0xe056) }, + { USB_DEVICE(0x0489, 0xe04d) }, + { USB_DEVICE(0x04c5, 0x1330) }, + { USB_DEVICE(0x13d3, 0x3402) }, + { USB_DEVICE(0x0cf3, 0x3121) }, + { USB_DEVICE(0x0cf3, 0xe003) },/* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xE02C) }, +/* Atheros AR5BBU22 with sflash firmware */ + { USB_DEVICE(0x0489, 0xE03C) }, + { USB_DEVICE(0x0489, 0xE036) }, + { } /* Terminating entry */ };
@@ -97,12 +117,31 @@ 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, 0x3008), .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, 0x3004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3005), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04ca, 0x3006), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe04e), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe056), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe04d), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04c5, 0x1330), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3402), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x3121), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0xe003), .driver_info = BTUSB_ATH3012 }, + + /* Atheros AR5BBU22 with sflash firmware */ + { USB_DEVICE(0x0489, 0xE03C), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xE036), .driver_info = BTUSB_ATH3012 }, { } /* Terminating entry */ };
drivers/bluetooth/btusb.c +27 -1
@@ -63,6 +63,9 @@ static struct usb_device_id btusb_table[] = {/* Apple-specific (Broadcom) devices */ { USB_VENDOR_AND_INTERFACE_INFO(0x05ac, 0xff, 0x01, 0x01) }, +/* MediaTek MT76x0E */ + { USB_DEVICE(0x0e8d, 0x763f) }, +/* Broadcom SoftSailing reporting vendor specific */ { USB_DEVICE(0x0a5c, 0x21e1) },
@@ -104,11 +107,14 @@ static struct usb_device_id btusb_table[] = { { USB_DEVICE(0x0c10, 0x0000) },/* Broadcom BCM20702A0 */ + { USB_DEVICE(0x0b05, 0x17b5) }, + { USB_DEVICE(0x0b05, 0x17cb) }, + { USB_DEVICE(0x04ca, 0x2003) }, { USB_DEVICE(0x0489, 0xe042) }, { USB_DEVICE(0x413c, 0x8197) },/* Foxconn - Hon Hai */ - { USB_DEVICE(0x0489, 0xe033) }, + { USB_VENDOR_AND_INTERFACE_INFO(0x0489, 0xff, 0x01, 0x01) },/*Broadcom devices with vendor specific id */ { USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0xff, 0x01, 0x01) },
@@ -127,6 +133,7 @@ static struct usb_device_id blacklist_table[] = {/* Atheros 3011 with sflash firmware */ { USB_DEVICE(0x0cf3, 0x3002), .driver_info = BTUSB_IGNORE }, + { USB_DEVICE(0x0cf3, 0xe019), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x13d3, 0x3304), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0930, 0x0215), .driver_info = BTUSB_IGNORE }, { USB_DEVICE(0x0489, 0xe03d), .driver_info = BTUSB_IGNORE },
@@ -138,16 +145,35 @@ static struct usb_device_id blacklist_table[] = {/* Atheros 3012 with sflash firmware */ { USB_DEVICE(0x0cf3, 0x0036), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x3008), .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, 0x3004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3005), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04ca, 0x3006), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe04e), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe056), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe04d), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x04c5, 0x1330), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x13d3, 0x3402), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x3121), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0xe003), .driver_info = BTUSB_ATH3012 }, /* Atheros AR5BBU12 with sflash firmware */ { USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE }, + /* Atheros AR5BBU12 with sflash firmware */ + { USB_DEVICE(0x0489, 0xe03c), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0489, 0xe036), .driver_info = BTUSB_ATH3012 }, + /* Broadcom BCM2035 */ { USB_DEVICE(0x0a5c, 0x2035), .driver_info = BTUSB_WRONG_SCO_MTU }, { USB_DEVICE(0x0a5c, 0x200a), .driver_info = BTUSB_WRONG_SCO_MTU },
drivers/char/virtio_console.c +14 -8
@@ -131,7 +131,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;
@@ -460,11 +461,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 ; }
@@ -1474,23 +1478,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); } } -spin_unlock (&portdev->cvq_lock); +spin_unlock (&portdev->c_ivq_lock); }static void out_intr (struct virtqueue *vq)
@@ -1751,10 +1755,12 @@ static int __devinit 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" );
@@ -1895,7 +1901,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/md/md.c +3 -1
@@ -7071,8 +7071,10 @@ void md_do_sync(struct mddev *mddev)/* just incase thread restarts... */ if (test_bit (MD_RECOVERY_DONE , &mddev->recovery))return ; -if (mddev->ro)/* never try to sync a read-only array */ +if (mddev->ro) {/* never try to sync a read-only array */ +set_bit (MD_RECOVERY_INTR , &mddev->recovery);return ; + }if (test_bit (MD_RECOVERY_SYNC , &mddev->recovery)) {if (test_bit (MD_RECOVERY_CHECK , &mddev->recovery))
drivers/scsi/hpsa.c +25 -7
@@ -99,6 +99,15 @@ static const struct pci_device_id hpsa_pci_device_id[] = { {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSF, 0x103C, 0x3354}, {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSF, 0x103C, 0x3355}, {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSF, 0x103C, 0x3356}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1920}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1921}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1922}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1923}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1924}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1925}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1926}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSH, 0x103C, 0x1928}, + {PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_CISSF, 0x103C, 0x334d}, {PCI_VENDOR_ID_HP, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_RAID << 8, 0xffff << 8, 0}, {0,}
@@ -118,13 +127,22 @@ static struct board_type products[] = { {0x3249103C, "Smart Array P812", &SA5_access}, {0x324a103C, "Smart Array P712m", &SA5_access}, {0x324b103C, "Smart Array P711m", &SA5_access}, - {0x3350103C, "Smart Array", &SA5_access}, - {0x3351103C, "Smart Array", &SA5_access}, - {0x3352103C, "Smart Array", &SA5_access}, - {0x3353103C, "Smart Array", &SA5_access}, - {0x3354103C, "Smart Array", &SA5_access}, - {0x3355103C, "Smart Array", &SA5_access}, - {0x3356103C, "Smart Array", &SA5_access}, + {0x3350103C, "Smart Array P222", &SA5_access}, + {0x3351103C, "Smart Array P420", &SA5_access}, + {0x3352103C, "Smart Array P421", &SA5_access}, + {0x3353103C, "Smart Array P822", &SA5_access}, + {0x3354103C, "Smart Array P420i", &SA5_access}, + {0x3355103C, "Smart Array P220i", &SA5_access}, + {0x3356103C, "Smart Array P721m", &SA5_access}, + {0x1920103C, "Smart Array", &SA5_access}, + {0x1921103C, "Smart Array", &SA5_access}, + {0x1922103C, "Smart Array", &SA5_access}, + {0x1923103C, "Smart Array", &SA5_access}, + {0x1924103C, "Smart Array", &SA5_access}, + {0x1925103C, "Smart Array", &SA5_access}, + {0x1926103C, "Smart Array", &SA5_access}, + {0x1928103C, "Smart Array", &SA5_access}, + {0x334d103C, "Smart Array P822se", &SA5_access}, {0xFFFF103C, "Unknown Smart Array", &SA5_access}, };
drivers/scsi/isci/task.c +6 -3
@@ -956,6 +956,7 @@ int isci_task_abort_task(struct sas_task *task)int ret =TMF_RESP_FUNC_FAILED ;unsigned long flags;int perform_termination =0 ; +int target_done_already =0 ;/* Get the isci_request reference from the task. Note that * this check does not depend on the pending request list
@@ -970,9 +971,11 @@ int isci_task_abort_task(struct sas_task *task)/* If task is already done, the request isn't valid */ if (!(task->task_state_flags &SAS_TASK_STATE_DONE ) && (task->task_state_flags &SAS_TASK_AT_INITIATOR ) && - old_request) + old_request) { isci_device =isci_lookup_device (task->dev); - + target_done_already =test_bit (IREQ_COMPLETE_IN_TARGET , + &old_request->flags); + }spin_unlock (&task->task_state_lock);spin_unlock_irqrestore (&isci_host->scic_lock, flags);
@@ -1031,7 +1034,7 @@ int isci_task_abort_task(struct sas_task *task) }if (task->task_proto ==SAS_PROTOCOL_SMP ||sas_protocol_ata (task->task_proto) || -test_bit (IREQ_COMPLETE_IN_TARGET , &old_request->flags)) { + target_done_already) {spin_unlock_irqrestore (&isci_host->scic_lock, flags);
drivers/scsi/mpt2sas/mpt2sas_base.c +3 -10
@@ -80,10 +80,6 @@ static int msix_disable = -1;module_param (msix_disable, int,0 );MODULE_PARM_DESC (msix_disable," disable msix routed interrupts (default=0)" ); -static int missing_delay[2 ] = {-1 ,-1 }; -module_param_array (missing_delay, int,NULL ,0 ); -MODULE_PARM_DESC (missing_delay," device missing delay , io missing delay" ); -static int mpt2sas_fwfault_debug;MODULE_PARM_DESC (mpt2sas_fwfault_debug," enable detection of firmware fault " "and halt firmware - (default=0)" );
@@ -2168,7 +2164,7 @@ _base_display_ioc_capabilities(struct MPT2SAS_ADAPTER *ioc) }/** -* _base_update_missing_delay - change the missing delay timers +* mpt2sas_base_update_missing_delay - change the missing delay timers * @ioc: per adapter object * @device_missing_delay: amount of time till device is reported missing * @io_missing_delay: interval IO is returned when there is a missing device
@@ -2179,8 +2175,8 @@ _base_display_ioc_capabilities(struct MPT2SAS_ADAPTER *ioc)* delay, as well as the io missing delay. This should be called at driver * load time. */ -static void -_base_update_missing_delay (struct MPT2SAS_ADAPTER *ioc, +void +mpt2sas_base_update_missing_delay (struct MPT2SAS_ADAPTER *ioc,u16 device_missing_delay,u8 io_missing_delay) {u16 dmd, dmd_new, dmd_orignal;
@@ -4371,9 +4367,6 @@ mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc)if (r) goto out_free_resources; -if (missing_delay[0 ] !=-1 && missing_delay[1 ] !=-1 ) -_base_update_missing_delay (ioc, missing_delay[0 ], - missing_delay[1 ]);return 0 ;
drivers/scsi/mpt2sas/mpt2sas_base.h +3 -0
@@ -1047,6 +1047,9 @@ void mpt2sas_base_validate_event_type(struct MPT2SAS_ADAPTER *ioc, u32 *event_tyvoid mpt2sas_halt_firmware (struct MPT2SAS_ADAPTER *ioc); +void mpt2sas_base_update_missing_delay (struct MPT2SAS_ADAPTER *ioc, +u16 device_missing_delay,u8 io_missing_delay); +int mpt2sas_port_enable (struct MPT2SAS_ADAPTER *ioc);/* scsih shared API */
drivers/scsi/mpt2sas/mpt2sas_scsih.c +122 -4
230 lines not on this page · raw message
drivers/staging/speakup/main.c +1 -0
@@ -2219,6 +2219,7 @@ static void __exit speakup_exit(void)unregister_keyboard_notifier (&keyboard_notifier_block);unregister_vt_notifier (&vt_notifier_block);speakup_unregister_devsynth (); +speakup_cancel_paste ();del_timer (&cursor_timer);kthread_stop (speakup_task); speakup_task =NULL ;
drivers/staging/speakup/selection.c +32 -6
@@ -3,6 +3,8 @@#include <linux/interrupt.h> #include <linux/sched.h> #include <linux/selection.h> +#include <linux/workqueue.h> +#include <asm/cmpxchg.h> #include "speakup.h"
@@ -121,20 +123,24 @@ int speakup_set_selection(struct tty_struct *tty)return 0 ; } -/* TODO: move to some helper thread, probably. That'd fix having to check for -* in_atomic(). */ -int speakup_paste_selection (struct tty_struct *tty) +struct speakup_paste_work { +struct work_struct work; +struct tty_struct *tty; +}; + +static void __speakup_paste_selection (struct work_struct *work) { +struct speakup_paste_work *spw = + container_of(work, struct speakup_paste_work, work); +struct tty_struct *tty =xchg (&spw->tty,NULL );struct vc_data *vc = (struct vc_data *) tty->driver_data;int pasted =0 , count;DECLARE_WAITQUEUE (wait, current); +add_wait_queue (&vc->paste_wait, &wait);while (sel_buffer && sel_buffer_lth > pasted) {set_current_state (TASK_INTERRUPTIBLE );if (test_bit (TTY_THROTTLED , &tty->flags)) { -if (in_atomic ()) -/* if we are in an interrupt handler, abort */ -break ;schedule ();continue ; }
@@ -146,6 +152,26 @@ int speakup_paste_selection(struct tty_struct *tty) }remove_wait_queue (&vc->paste_wait, &wait); current->state =TASK_RUNNING ; +tty_kref_put (tty); +} + +static struct speakup_paste_work speakup_paste_work = { + .work =__WORK_INITIALIZER (speakup_paste_work.work, + __speakup_paste_selection) +}; + +int speakup_paste_selection (struct tty_struct *tty) +{ +if (cmpxchg (&speakup_paste_work.tty,NULL , tty) !=NULL ) +return -EBUSY ; + +tty_kref_get (tty); +schedule_work_on (WORK_CPU_UNBOUND , &speakup_paste_work.work);return 0 ; } +void speakup_cancel_paste (void ) +{ +cancel_work_sync (&speakup_paste_work.work); +tty_kref_put (speakup_paste_work.tty); +}
drivers/staging/speakup/speakup.h +1 -0
@@ -84,6 +84,7 @@ extern void synth_buffer_clear(void);extern void speakup_clear_selection (void );extern int speakup_set_selection (struct tty_struct *tty);extern int speakup_paste_selection (struct tty_struct *tty); +extern void speakup_cancel_paste (void );extern void speakup_register_devsynth (void );extern void speakup_unregister_devsynth (void );extern void synth_write (const char *buf,size_t count);
drivers/target/iscsi/iscsi_target_login.c +4 -4
@@ -131,13 +131,13 @@ int iscsi_check_for_session_reinstatement(struct iscsi_conn *conn) initiatorname_param =iscsi_find_param_from_key (INITIATORNAME , conn->param_list); -if (!initiatorname_param) -return -1 ; - sessiontype_param =iscsi_find_param_from_key (SESSIONTYPE , conn->param_list); -if (!sessiontype_param) +if (!initiatorname_param || !sessiontype_param) { +iscsit_tx_login_rsp (conn,ISCSI_STATUS_CLS_INITIATOR_ERR , +ISCSI_LOGIN_STATUS_MISSING_FIELDS );return -1 ; + } sessiontype = (strncmp (sessiontype_param->value,NORMAL ,6 )) ?1 :0 ;
drivers/target/iscsi/iscsi_target_nego.c +8 -2
@@ -628,8 +628,11 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log login->req_buf, payload_length, conn->param_list); -if (ret <0 ) +if (ret <0 ) { +iscsit_tx_login_rsp (conn,ISCSI_STATUS_CLS_INITIATOR_ERR , +ISCSI_LOGIN_STATUS_INIT_ERR );return -1 ; + }if (login->first_request)if (iscsi_target_check_first_request (conn, login) <0 )
@@ -644,8 +647,11 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log login->rsp_buf, &login->rsp_length, conn->param_list); -if (ret <0 ) +if (ret <0 ) { +iscsit_tx_login_rsp (conn,ISCSI_STATUS_CLS_INITIATOR_ERR , +ISCSI_LOGIN_STATUS_INIT_ERR );return -1 ; + }if (!login->auth_complete &&ISCSI_TPG_ATTRIB (ISCSI_TPG_C (conn))->authentication) {
drivers/target/target_core_alua.c +3 -3
@@ -394,7 +394,7 @@ static inline int core_alua_state_standby(case SEND_DIAGNOSTIC :return 0 ;case MAINTENANCE_IN : -switch (cdb[1 ]) { +switch (cdb[1 ] &0x1f ) {case MI_REPORT_TARGET_PGS :return 0 ;default :
@@ -437,7 +437,7 @@ static inline int core_alua_state_unavailable(case REPORT_LUNS :return 0 ;case MAINTENANCE_IN : -switch (cdb[1 ]) { +switch (cdb[1 ] &0x1f ) {case MI_REPORT_TARGET_PGS :return 0 ;default :
@@ -478,7 +478,7 @@ static inline int core_alua_state_transition(case REPORT_LUNS :return 0 ;case MAINTENANCE_IN : -switch (cdb[1 ]) { +switch (cdb[1 ] &0x1f ) {case MI_REPORT_TARGET_PGS :return 0 ;default :
drivers/target/target_core_file.c +7 -2
@@ -299,7 +299,7 @@ static int fd_do_readv(struct se_task *task)for_each_sg (task->task_sg, sg, task->task_sg_nents, i) { iov[i].iov_len = sg->length; - iov[i].iov_base =sg_virt (sg); + iov[i].iov_base =kmap (sg_page (sg)) + sg->offset; } old_fs =get_fs ();
@@ -307,6 +307,8 @@ static int fd_do_readv(struct se_task *task) ret =vfs_readv (fd, &iov[0 ], task->task_sg_nents, &pos);set_fs (old_fs); +for_each_sg (task->task_sg, sg, task->task_sg_nents, i) +kunmap (sg_page (sg));kfree (iov);/* * Return zeros and GOOD status even if the READ did not return
@@ -352,7 +354,7 @@ static int fd_do_writev(struct se_task *task)for_each_sg (task->task_sg, sg, task->task_sg_nents, i) { iov[i].iov_len = sg->length; - iov[i].iov_base =sg_virt (sg); + iov[i].iov_base =kmap (sg_page (sg)) + sg->offset; } old_fs =get_fs ();
@@ -360,6 +362,9 @@ static int fd_do_writev(struct se_task *task) ret =vfs_writev (fd, &iov[0 ], task->task_sg_nents, &pos);set_fs (old_fs); +for_each_sg (task->task_sg, sg, task->task_sg_nents, i) +kunmap (sg_page (sg)); +kfree (iov);if (ret <0 || ret != task->task_size) {
drivers/target/target_core_pscsi.c +4 -4
@@ -128,10 +128,10 @@ static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag)* pSCSI Host ID and enable for phba mode */ sh =scsi_host_lookup (phv->phv_host_id); -if (IS_ERR (sh)) { +if (!sh) {pr_err ("pSCSI: Unable to locate SCSI Host for" " phv_host_id: %d\n" , phv->phv_host_id); -return PTR_ERR (sh); +return -EINVAL ; } phv->phv_lld_host = sh;
@@ -562,10 +562,10 @@ static struct se_device *pscsi_create_virtdevice( sh = phv->phv_lld_host; }else { sh =scsi_host_lookup (pdv->pdv_host_id); -if (IS_ERR (sh)) { +if (!sh) {pr_err ("pSCSI: Unable to locate" " pdv_host_id: %d\n" , pdv->pdv_host_id); -return ERR_CAST (sh); +return ERR_PTR (-EINVAL ); } } }else {
drivers/target/target_core_transport.c +3 -2
@@ -1458,6 +1458,7 @@ static inline void transport_generic_prepare_cdb(case VERIFY_16 :/* SBC - VRProtect */ case WRITE_VERIFY :/* SBC - VRProtect */ case WRITE_VERIFY_12 :/* SBC - VRProtect */ +case MAINTENANCE_IN :/* SPC - Parameter Data Format for SA RTPG */ break ;default : cdb[1 ] &=0x1f ;/* clear logical unit number */
@@ -2813,7 +2814,7 @@ static int transport_generic_cmd_sequencer(/* * Check for emulated MI_REPORT_TARGET_PGS. */ -if (cdb[1 ] ==MI_REPORT_TARGET_PGS && +if ((cdb[1 ] &0x1f ) ==MI_REPORT_TARGET_PGS && su_dev->t10_alua.alua_type ==SPC3_ALUA_EMULATED ) { cmd->execute_task = target_emulate_report_target_port_groups;
@@ -4701,7 +4702,7 @@ int transport_send_check_condition_and_sense(/* ILLEGAL REQUEST */ buffer[offset+SPC_SENSE_KEY_OFFSET ] =ILLEGAL_REQUEST ;/* LOGICAL UNIT COMMUNICATION FAILURE */ - buffer[offset+SPC_ASC_KEY_OFFSET ] =0x80 ; + buffer[offset+SPC_ASC_KEY_OFFSET ] =0x08 ;break ; }/*
drivers/tty/serial/8250/8250.c +34 -2
@@ -282,6 +282,33 @@ static const struct serial8250_config uart_config[] = { .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, .flags = UART_CAP_FIFO | UART_CAP_AFE | UART_CAP_EFR, }, + [PORT_BRCM_TRUMANAGE] = { + .name = "TruManage", + .fifo_size = 1, + .tx_loadsz = 1024, + .flags = UART_CAP_HFIFO, + }, + [PORT_ALTR_16550_F32] = { + .name = "Altera 16550 FIFO32", + .fifo_size = 32, + .tx_loadsz = 32, + .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, + .flags = UART_CAP_FIFO | UART_CAP_AFE, + }, + [PORT_ALTR_16550_F64] = { + .name = "Altera 16550 FIFO64", + .fifo_size = 64, + .tx_loadsz = 64, + .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, + .flags = UART_CAP_FIFO | UART_CAP_AFE, + }, + [PORT_ALTR_16550_F128] = { + .name = "Altera 16550 FIFO128", + .fifo_size = 128, + .tx_loadsz = 128, + .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, + .flags = UART_CAP_FIFO | UART_CAP_AFE, + }, };#if defined(CONFIG_MIPS_ALCHEMY )
@@ -1470,6 +1497,11 @@ void serial8250_tx_chars(struct uart_8250_port *up) port->icount.tx++;if (uart_circ_empty (xmit))break ; +if (up->capabilities &UART_CAP_HFIFO ) { +if ((serial_port_in (port,UART_LSR ) &BOTH_EMPTY ) != +BOTH_EMPTY ) +break ; + } }while (--count >0 );if (uart_circ_chars_pending (xmit) <WAKEUP_CHARS )
@@ -2641,7 +2673,7 @@ serial8250_verify_port(struct uart_port *port, struct serial_struct *ser)if (ser->irq >= nr_irqs || ser->irq <0 || ser->baud_base <9600 || ser->type <PORT_UNKNOWN || ser->type >=ARRAY_SIZE (uart_config) || ser->type ==PORT_CIRRUS || - ser->type ==PORT_STARTECH ) + ser->type ==PORT_STARTECH || uart_config[ser->type].name ==NULL )return -EINVAL ;return 0 ; }
@@ -2651,7 +2683,7 @@ serial8250_type(struct uart_port *port) {int type = port->type; -if (type >=ARRAY_SIZE (uart_config)) +if (type >=ARRAY_SIZE (uart_config) || uart_config[type].name ==NULL ) type =0 ;return uart_config[type].name; }
drivers/tty/serial/8250/8250.h +1 -0
@@ -69,6 +69,7 @@ struct serial8250_config {#define UART_CAP_AFE (1 << 11)/* MCR-based hw flow control */ #define UART_CAP_UUE (1 << 12)/* UART needs IER bit 6 set (Xscale) */ #define UART_CAP_RTOIE (1 << 13)/* UART needs IER bit 4 set (Xscale, Tegra) */ +#define UART_CAP_HFIFO (1 << 14)/* UART has a "hidden" FIFO */ #define UART_BUG_QUOT (1 << 0)/* UART has buggy quot LSB */ #define UART_BUG_TXEN (1 << 1)/* UART has buggy TX IIR status */
drivers/tty/serial/8250/8250_pci.c +45 -10
106 lines not on this page · raw message
drivers/tty/serial/of_serial.c +6 -0
@@ -182,6 +182,12 @@ static struct of_device_id __devinitdata of_platform_serial_table[] = { { .compatible = "ns16750", .data = (void *)PORT_16750, }, { .compatible = "ns16850", .data = (void *)PORT_16850, }, { .compatible = "nvidia,tegra20-uart", .data = (void *)PORT_TEGRA, }, + { .compatible = "altr,16550-FIFO32", + .data = (void *)PORT_ALTR_16550_F32, }, + { .compatible = "altr,16550-FIFO64", + .data = (void *)PORT_ALTR_16550_F64, }, + { .compatible = "altr,16550-FIFO128", + .data = (void *)PORT_ALTR_16550_F128, }, #ifdef CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL { .compatible = "ibm,qpace-nwp-serial", .data = (void *)PORT_NWPSERIAL, },
drivers/tty/serial/pch_uart.c +4 -1
@@ -646,11 +646,12 @@ static int dma_push_rx(struct eg20t_port *priv, int size)dev_warn (port->dev,"Rx overrun: dropping %u bytes\n" , size - room);if (!room) -return room; + goto out;tty_insert_flip_string (tty,sg_virt (&priv->sg_rx), size); port->icount.rx += room; +out:tty_kref_put (tty);return room;
@@ -1064,6 +1065,8 @@ static void pch_uart_err_ir(struct eg20t_port *priv, unsigned int lsr)if (tty ==NULL ) {for (i =0 ; error_msg[i] !=NULL ; i++)dev_err (&priv->pdev->dev, error_msg[i]); + }else { +tty_kref_put (tty); } }
drivers/tty/tty_buffer.c +7 -4
@@ -114,11 +114,14 @@ static void __tty_buffer_flush(struct tty_struct *tty) {struct tty_buffer *thead; -while ((thead = tty->buf.head) !=NULL ) { - tty->buf.head = thead->next; -tty_buffer_free (tty, thead); +if (tty->buf.head ==NULL ) +return ; +while ((thead = tty->buf.head->next) !=NULL ) { +tty_buffer_free (tty, tty->buf.head); + tty->buf.head = thead; } - tty->buf.tail =NULL ; +WARN_ON (tty->buf.head != tty->buf.tail); + tty->buf.head->read = tty->buf.head->commit; }/**
drivers/usb/core/driver.c +6 -3
@@ -1708,10 +1708,13 @@ int usb_runtime_suspend(struct device *dev)if (status == -EAGAIN || status == -EBUSY )usb_mark_last_busy (udev); -/* The PM core reacts badly unless the return code is 0, -* -EAGAIN, or -EBUSY, so always return -EBUSY on an error. +/* +* The PM core reacts badly unless the return code is 0, +* -EAGAIN, or -EBUSY, so always return -EBUSY on an error +* (except for root hubs, because they don't suspend through +* an upstream port like other USB devices). */ -if (status !=0 ) +if (status !=0 && udev->parent)return -EBUSY ;return status; }
drivers/usb/core/hub.c +13 -2
@@ -1401,8 +1401,19 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) desc = intf->cur_altsetting; hdev =interface_to_usbdev (intf); -/* Hubs have proper suspend/resume support. */ -usb_enable_autosuspend (hdev); +/* +* Hubs have proper suspend/resume support, except for root hubs +* where the controller driver doesn't have bus_suspend and +* bus_resume methods. +*/ +if (hdev->parent) {/* normal device */ +usb_enable_autosuspend (hdev); + }else {/* root hub */ +const struct hc_driver *drv =bus_to_hcd (hdev->bus)->driver; + +if (drv->bus_suspend && drv->bus_resume) +usb_enable_autosuspend (hdev); + }if (hdev->level ==MAX_TOPO_LEVEL ) { dev_err(&intf->dev,
drivers/usb/host/xhci-mem.c +10 -10
@@ -1812,6 +1812,16 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)kfree (cur_cd); } + num_ports =HCS_MAX_PORTS (xhci->hcs_params1); +for (i =0 ; i < num_ports; i++) { +struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table; +for (j =0 ; j <XHCI_MAX_INTERVAL ; j++) { +struct list_head *ep = &bwt->interval_bw[j].endpoints; +while (!list_empty (ep)) +list_del_init (ep->next); + } + } +for (i =1 ; i <MAX_HC_SLOTS ; ++i)xhci_free_virt_device (xhci, i);
@@ -1852,16 +1862,6 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)if (!xhci->rh_bw) goto no_bw; - num_ports =HCS_MAX_PORTS (xhci->hcs_params1); -for (i =0 ; i < num_ports; i++) { -struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table; -for (j =0 ; j <XHCI_MAX_INTERVAL ; j++) { -struct list_head *ep = &bwt->interval_bw[j].endpoints; -while (!list_empty (ep)) -list_del_init (ep->next); - } - } -for (i =0 ; i < num_ports; i++) {struct xhci_tt_bw_info *tt, *n;list_for_each_entry_safe (tt, n, &xhci->rh_bw[i].tts, tt_list) {
drivers/usb/serial/ftdi_sio.c +2 -0
@@ -591,6 +591,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_TAVIR_STK500_PID) }, { USB_DEVICE(FTDI_VID, FTDI_TIAO_UMPA_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(FTDI_VID, FTDI_NT_ORIONLXM_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },/* * ELV devices: */
drivers/usb/serial/ftdi_sio_ids.h +5 -0
@@ -538,6 +538,11 @@*/ #define FTDI_TIAO_UMPA_PID 0x8a98/* TIAO/DIYGADGET USB Multi-Protocol Adapter */ +/* +* NovaTech product ids (FTDI_VID) +*/ +#define FTDI_NT_ORIONLXM_PID 0x7c90/* OrionLXm Substation Automation Platform */ +/********************************/ /** third-party VID/PID combos **/
drivers/usb/serial/io_ti.c +1 -1
@@ -915,7 +915,7 @@ static int build_i2c_fw_hdr(__u8 *header, struct device *dev) firmware_rec = (struct ti_i2c_firmware_rec *)i2c_header->Data; i2c_header->Type =I2C_DESC_TYPE_FIRMWARE_BLANK ; - i2c_header->Size = (__u16 )buffer_size; + i2c_header->Size =cpu_to_le16 (buffer_size); i2c_header->CheckSum = cs; firmware_rec->Ver_Major = OperationalMajorVersion; firmware_rec->Ver_Minor = OperationalMinorVersion;
drivers/usb/serial/io_usbvend.h +1 -1
@@ -594,7 +594,7 @@ struct edge_boot_descriptor {struct ti_i2c_desc {__u8 Type;// Type of descriptor -__u16 Size;// Size of data only not including header +__le16 Size;// Size of data only not including header __u8 CheckSum;// Checksum (8 bit sum of data only) __u8 Data[0 ];// Data starts here } __attribute__((packed));
drivers/usb/serial/option.c +2 -0
@@ -161,6 +161,7 @@ static void option_instat_callback(struct urb *urb);#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_FULLSPEED 0x9000#define NOVATELWIRELESS_PRODUCT_HSPA_EMBEDDED_HIGHSPEED 0x9001#define NOVATELWIRELESS_PRODUCT_E362 0x9010 +#define NOVATELWIRELESS_PRODUCT_E371 0x9011#define NOVATELWIRELESS_PRODUCT_G2 0xA010#define NOVATELWIRELESS_PRODUCT_MC551 0xB001
@@ -1025,6 +1026,7 @@ static const struct usb_device_id option_ids[] = {/* Novatel Ovation MC551 a.k.a. Verizon USB551L */ { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_MC551, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E362, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E371, 0xff, 0xff, 0xff) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01A) },
fs/nfsd/nfsctl.c +43 -19
183 lines not on this page · raw message
fs/nfsd/nfsd.h +3 -3
@@ -65,13 +65,13 @@ extern const struct seq_operations nfs_exports_op;/* * Function prototypes. */ -int nfsd_svc (unsigned short port,int nrservs); +int nfsd_svc (unsigned short port,int nrservs,struct net *net);int nfsd_dispatch (struct svc_rqst *rqstp,__be32 *statp);int nfsd_nrthreads (void );int nfsd_nrpools (void );int nfsd_get_nrthreads (int n,int *); -int nfsd_set_nrthreads (int n,int *); +int nfsd_set_nrthreads (int n,int *,struct net *);static inline void nfsd_destroy (struct net *net) {
@@ -101,7 +101,7 @@ enum vers_op {NFSD_SET, NFSD_CLEAR, NFSD_TEST, NFSD_AVAIL };int nfsd_vers (int vers,enum vers_op change);int nfsd_minorversion (u32 minorversion,enum vers_op change);void nfsd_reset_versions (void ); -int nfsd_create_serv (void ); +int nfsd_create_serv (struct net *net);extern int nfsd_max_blksize;
fs/nfsd/nfssvc.c +20 -21
155 lines not on this page · raw message
include/linux/highmem.h +7 -0
@@ -39,10 +39,17 @@ extern unsigned long totalhigh_pages;void kmap_flush_unused (void ); +struct page *kmap_to_page (void *addr); +#else /* CONFIG_HIGHMEM */ static inline unsigned int nr_free_highpages (void ) {return 0 ; } +static inline struct page *kmap_to_page (void *addr) +{ +return virt_to_page (addr); +} +#define totalhigh_pages 0UL#ifndef ARCH_HAS_KMAP
include/linux/pci_ids.h +1 -0
@@ -752,6 +752,7 @@#define PCI_DEVICE_ID_HP_CISSD 0x3238#define PCI_DEVICE_ID_HP_CISSE 0x323a#define PCI_DEVICE_ID_HP_CISSF 0x323b +#define PCI_DEVICE_ID_HP_CISSH 0x323c#define PCI_DEVICE_ID_HP_ZX2_IOC 0x4031#define PCI_VENDOR_ID_PCTECH 0x1042
include/linux/serial_core.h +5 -1
@@ -47,7 +47,11 @@#define PORT_U6_16550A 19/* ST-Ericsson U6xxx internal UART */ #define PORT_TEGRA 20/* NVIDIA Tegra internal UART */ #define PORT_XR17D15X 21/* Exar XR17D15x UART */ -#define PORT_MAX_8250 21/* max port ID */ +#define PORT_BRCM_TRUMANAGE 25 +#define PORT_ALTR_16550_F32 26/* Altera 16550 UART with 32 FIFOs */ +#define PORT_ALTR_16550_F64 27/* Altera 16550 UART with 64 FIFOs */ +#define PORT_ALTR_16550_F128 28/* Altera 16550 UART with 128 FIFOs */ +#define PORT_MAX_8250 28/* max port ID */ /* * ARM specific type numbers. These are not currently guaranteed
include/linux/sunrpc/svcsock.h +1 -0
@@ -42,6 +42,7 @@ void svc_sock_update_bufs(struct svc_serv *serv);int svc_sock_names (struct svc_serv *serv,char *buf,const size_t buflen,const char *toclose); +bool svc_alien_sock (struct net *net,int fd);int svc_addsock (struct svc_serv *serv,const int fd,char *name_return,const size_t len);void svc_init_xprt_sock (void );
include/linux/virtio_console.h +1 -1
@@ -39,7 +39,7 @@#define VIRTIO_CONSOLE_F_SIZE 0/* Does host provide console size? */ #define VIRTIO_CONSOLE_F_MULTIPORT 1/* Does host provide multiple ports? */ -#define VIRTIO_CONSOLE_BAD_ID (~(u32)0) +#define VIRTIO_CONSOLE_BAD_ID (~(__u32)0)struct virtio_console_config {/* colums of the screens */
kernel/cpu.c +4 -2
@@ -631,10 +631,12 @@ void set_cpu_present(unsigned int cpu, bool present)void set_cpu_online (unsigned int cpu,bool online) { -if (online) +if (online) {cpumask_set_cpu (cpu,to_cpumask (cpu_online_bits)); -else +cpumask_set_cpu (cpu,to_cpumask (cpu_active_bits)); + }else {cpumask_clear_cpu (cpu,to_cpumask (cpu_online_bits)); + } }void set_cpu_active (unsigned int cpu,bool active)
kernel/events/core.c +40 -21
169 lines not on this page · raw message
kernel/sched/core.c +0 -1
@@ -5656,7 +5656,6 @@ static int __cpuinit sched_cpu_active(struct notifier_block *nfb, unsigned long action, void *hcpu) {switch (action & ~CPU_TASKS_FROZEN ) { -case CPU_STARTING :case CPU_DOWN_FAILED :set_cpu_active ((long )hcpu, true);return NOTIFY_OK ;
kernel/sched/cpupri.c +1 -2
@@ -68,8 +68,7 @@ int cpupri_find(struct cpupri *cp, struct task_struct *p,int idx =0 ;int task_pri =convert_prio (p->prio); -if (task_pri >=MAX_RT_PRIO ) -return 0 ; +BUG_ON (task_pri >=CPUPRI_NR_PRIORITIES );for (idx =0 ; idx < task_pri; idx++) {struct cpupri_vec *vec = &cp->pri_to_cpu[idx];
mm/highmem.c +13 -0
@@ -94,6 +94,19 @@ static DECLARE_WAIT_QUEUE_HEAD(pkmap_map_wait); do { spin_unlock(&kmap_lock); (void)(flags); } while (0)#endif +struct page *kmap_to_page (void *vaddr) +{ +unsigned long addr = (unsigned long )vaddr; + +if (addr >=PKMAP_ADDR (0 ) && addr <PKMAP_ADDR (LAST_PKMAP )) { +int i = (addr -PKMAP_ADDR (0 )) >>PAGE_SHIFT ; +return pte_page (pkmap_page_table[i]); + } + +return virt_to_page (addr); +} +EXPORT_SYMBOL (kmap_to_page); +static void flush_all_zero_pkmaps (void ) {int i;
mm/memory-failure.c +2 -0
@@ -1122,6 +1122,8 @@ int memory_failure(unsigned long pfn, int trapno, int flags)*/ if (!PageHWPoison (p)) {printk (KERN_ERR "MCE %#lx: just unpoisoned\n" , pfn); +atomic_long_sub (nr_pages, &mce_bad_pages); +put_page (hpage); res =0 ; goto out; }
mm/rmap.c +1 -2
@@ -1721,10 +1721,9 @@ void __put_anon_vma(struct anon_vma *anon_vma) {struct anon_vma *root = anon_vma->root; +anon_vma_free (anon_vma);if (root != anon_vma &&atomic_dec_and_test (&root->refcount))anon_vma_free (root); - -anon_vma_free (anon_vma); }#ifdef CONFIG_MIGRATION
net/9p/trans_virtio.c +2 -1
@@ -39,6 +39,7 @@#include <linux/inet.h> #include <linux/idr.h> #include <linux/file.h> +#include <linux/highmem.h> #include <linux/slab.h> #include <net/9p/9p.h> #include <linux/parser.h>
@@ -325,7 +326,7 @@ static int p9_get_mapped_pages(struct virtio_chan *chan,int count = nr_pages;while (nr_pages) { s =rest_of_page (data); - pages[index++] =virt_to_page (data); + pages[index++] =kmap_to_page (data); data += s; nr_pages--; }
net/bluetooth/l2cap_core.c +70 -24
246 lines not on this page · raw message
net/sunrpc/svcsock.c +16 -0
@@ -1441,6 +1441,22 @@ static struct svc_sock *svc_setup_socket(struct svc_serv *serv,return svsk; } +bool svc_alien_sock (struct net *net,int fd) +{ +int err; +struct socket *sock =sockfd_lookup (fd, &err); +bool ret = false; + +if (!sock) + goto out; +if (sock_net (sock->sk) != net) + ret = true; +sockfd_put (sock); +out: +return ret; +} +EXPORT_SYMBOL_GPL (svc_alien_sock); +/** * svc_addsock - add a listener socket to an RPC service * @serv: pointer to RPC service to which to add a new listener
sound/pci/hda/patch_realtek.c +4 -6
@@ -4951,12 +4951,10 @@ static const struct alc_fixup alc260_fixups[] = { [ALC260_FIXUP_COEF] = { .type = ALC_FIXUP_VERBS, .v.verbs = (const struct hda_verb []) { - {0x20 ,AC_VERB_SET_COEF_INDEX ,0x07 }, - {0x20 ,AC_VERB_SET_PROC_COEF ,0x3040 }, + {0x1a ,AC_VERB_SET_COEF_INDEX ,0x07 }, + {0x1a ,AC_VERB_SET_PROC_COEF ,0x3040 }, { } }, - .chained = true, - .chain_id = ALC260_FIXUP_HP_PIN_0F, }, [ALC260_FIXUP_GPIO1] = { .type = ALC_FIXUP_VERBS,
@@ -4971,8 +4969,8 @@ static const struct alc_fixup alc260_fixups[] = { [ALC260_FIXUP_REPLACER] = { .type = ALC_FIXUP_VERBS, .v.verbs = (const struct hda_verb []) { - {0x20 ,AC_VERB_SET_COEF_INDEX ,0x07 }, - {0x20 ,AC_VERB_SET_PROC_COEF ,0x3050 }, + {0x1a ,AC_VERB_SET_COEF_INDEX ,0x07 }, + {0x1a ,AC_VERB_SET_PROC_COEF ,0x3050 }, { } }, .chained = true,