Linux 3.4.56
Greg KH
maintainerI'm announcing the release of the 3.4.56 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
------------
Makefile | 2 arch/powerpc/include/asm/module.h | 5 arch/powerpc/kernel/vmlinux.lds.S | 3 arch/s390/include/asm/pgtable.h | 4 drivers/acpi/acpi_memhotplug.c | 1 drivers/ata/Kconfig | 2 drivers/ata/ata_piix.c | 2 drivers/ata/sata_inic162x.c | 14 ++ drivers/block/xen-blkback/blkback.c | 13 ++ drivers/firewire/core-cdev.c | 3 drivers/firewire/ohci.c | 10 + drivers/gpu/drm/radeon/atom.c | 5 drivers/gpu/drm/radeon/atombios_dp.c | 43 ++++++- drivers/gpu/drm/radeon/radeon_combios.c | 151 ++++++++------------------- drivers/md/dm-verity.c | 5 drivers/md/raid10.c | 8 + drivers/md/raid5.c | 15 +- drivers/md/raid5.h | 1 drivers/net/virtio_net.c | 5 drivers/s390/scsi/zfcp_aux.c | 5 drivers/s390/scsi/zfcp_fsf.c | 23 ++-- drivers/scsi/qla2xxx/qla_iocb.c | 11 + drivers/scsi/sd.c | 22 +-- drivers/staging/comedi/comedi_fops.c | 7 + drivers/target/iscsi/iscsi_target_configfs.c | 2 drivers/usb/core/hub.c | 9 + drivers/usb/dwc3/core.h | 4 drivers/usb/dwc3/gadget.c | 1 drivers/usb/host/xhci-pci.c | 1 drivers/usb/host/xhci-ring.c | 2 drivers/usb/host/xhci.c | 13 +- drivers/usb/misc/sisusbvga/sisusb.c | 1 drivers/usb/serial/ftdi_sio.c | 31 +++++ drivers/usb/serial/ftdi_sio_ids.h | 34 +++++- drivers/usb/serial/ti_usb_3410_5052.c | 2 drivers/usb/storage/unusual_devs.h | 7 + drivers/virtio/virtio_ring.c | 54 +++++++-- drivers/xen/evtchn.c | 21 --- fs/btrfs/extent-tree.c | 13 ++ fs/super.c | 25 +--- include/linux/firewire-cdev.h | 4 include/linux/firewire.h | 1 include/linux/virtio.h | 4 kernel/trace/trace_syscalls.c | 3 mm/page_alloc.c | 4 sound/soc/codecs/max98088.c | 2 sound/soc/codecs/wm8962.c | 24 ++-- 47 files changed, 387 insertions(+), 235 deletions(-)
Al Viro (1):
livelock avoidance in sget()
Alex Deucher (3):
drm/radeon: fix endian issues with DP handling (v3) drm/radeon: improve dac adjust heuristics for legacy pdac drm/radeon/atom: initialize more atom interpretor elements to 0
Anton Blanchard (1):
powerpc/modules: Module CRC relocation fix causes perf issues
Chih-Chung Chang (1):
ASoC: max98088 - fix element type of the register cache.
Clemens Ladisch (1):
firewire: fix libdc1394/FlyCap2 iso event regression
David Vrabel (1):
xen/evtchn: avoid a deadlock when unbinding an event channel
Ewan D. Milne (1):
SCSI: sd: fix crash when UA received on DIF enabled device
Felipe Balbi (1):
usb: dwc3: gadget: don't prevent gadget from being probed if we fail
George Cherian (1):
usb: host: xhci: Enable XHCI_SPURIOUS_SUCCESS for all controllers with xhci 1.0
Greg Kroah-Hartman (1):
Linux 3.4.56
Huang Rui (1):
usb: dwc3: fix wrong bit mask in dwc3_event_type
Ian Abbott (1):
staging: comedi: COMEDI_CANCEL ioctl should wake up read/write
Joern Engel (1):
iscsi-target: Fix tfc_tpg_nacl_auth_cit configfs length overflow
Johan Hovold (1):
USB: ti_usb_3410_5052: fix dynamic-id matching
Josef Bacik (2):
Btrfs: fix lock leak when resuming snapshot deletion
Btrfs: re-add root to dead root list if we stop dropping it
Jóhann B. Guðmundsson (1):
USB: misc: Add Manhattan Hi-Speed USB DVI Converter to sisusbvga
Konrad Rzeszutek Wilk (1):
xen/blkback: Check device permissions before allowing OP_DISCARD
Linus Torvalds (1):
s390: move dummy io_remap_pfn_range() to asm/pgtable.h
Mark Kettenis (1):
drm/radeon: fix combios tables on older cards
Michael S. Tsirkin (2):
virtio: support unlocked queue poll
virtio_net: fix race in RX VQ processing
Mikulas Patocka (1):
dm verity: fix inability to use a few specific devices sizes
NeilBrown (2):
md/raid5: fix interaction of 'replace' and 'recovery'. md/raid10: remove use-after-free bug.
Nicolin Chen (1):
ASoC: wm8962: Remove remaining direct register cache accesses
Oleksij Rempel (1):
xhci: fix null pointer dereference on ring_doorbell_for_active_rings
Ren Bigcren (1):
USB: storage: Add MicroVault Flash Drive to unusual_devs
Rick Farina (Zero_Chaos) (1):
USB: serial: ftdi_sio: add more RT Systems ftdi devices
Sarah Sharp (1):
xhci: Avoid NULL pointer deref when host dies.
Saurav Kashyap (1):
SCSI: qla2xxx: Properly set the tagging for commands.
Steffen Maier (1):
zfcp: status read buffers on first adapter open with link down
Tejun Heo (1):
libata: make it clear that sata_inic162x is experimental
Toshi Kani (1):
ACPI / memhotplug: Fix a stale pointer in error path
Wanpeng Li (1):
mm/memory-hotplug: fix lowmem count overflow when offline pages
William Gulland (1):
usb: Clear both buffers when clearing a control transfer TT buffer.
Youquan Song (1):
ata: Fix DVD not dectected at some platform with Wellsburg PCH
zhangwei(Jovi) (1):
tracing: Fix irqs-off tag display in syscall tracing
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 55 +SUBLEVEL = 56 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/powerpc/include/asm/module.h +2 -3
@@ -87,10 +87,9 @@ struct exception_table_entry;void sort_ex_table (struct exception_table_entry *start,struct exception_table_entry *finish); -#ifdef CONFIG_MODVERSIONS +#if defined(CONFIG_MODVERSIONS ) && defined(CONFIG_PPC64 )#define ARCH_RELOCATES_KCRCTAB - -extern const unsigned long reloc_start[]; +#define reloc_start PHYSICAL_START#endif #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_MODULE_H */
arch/powerpc/kernel/vmlinux.lds.S +0 -3
@@ -38,9 +38,6 @@ jiffies = jiffies_64 + 4; #endif SECTIONS { - . = 0; - reloc_start = .; - . = KERNELBASE; /*
arch/s390/include/asm/pgtable.h +4 -0
@@ -67,6 +67,10 @@ static inline int is_zero_pfn(unsigned long pfn)#define my_zero_pfn (addr) page_to_pfn(ZERO_PAGE(addr)) +/* TODO: s390 cannot support io_remap_pfn_range... */ +#define io_remap_pfn_range (vma, vaddr, pfn, size, prot) \ + remap_pfn_range(vma, vaddr, pfn, size, prot) +#endif /* !__ASSEMBLY__ */ /*
drivers/acpi/acpi_memhotplug.c +1 -0
@@ -421,6 +421,7 @@ static int acpi_memory_device_add(struct acpi_device *device)/* Get the range from the _CRS */ result =acpi_memory_get_device_resources (mem_device);if (result) { + device->driver_data =NULL ;kfree (mem_device);return result; }
drivers/ata/Kconfig +1 -1
@@ -93,7 +93,7 @@ config SATA_FSL If unsure, say N. config SATA_INIC162X - tristate "Initio 162x SATA support" + tristate "Initio 162x SATA support (Very Experimental)" depends on PCI help This option enables support for Initio 162x Serial ATA.
drivers/ata/ata_piix.c +1 -1
@@ -344,7 +344,7 @@ static const struct pci_device_id piix_pci_tbl[] = {/* SATA Controller IDE (Wellsburg) */ { 0x8086, 0x8d00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb },/* SATA Controller IDE (Wellsburg) */ - { 0x8086, 0x8d08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, + { 0x8086, 0x8d08, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_snb },/* SATA Controller IDE (Wellsburg) */ { 0x8086, 0x8d60, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb }, /* SATA Controller IDE (Wellsburg) */
drivers/ata/sata_inic162x.c +14 -0
@@ -6,6 +6,18 @@* * This file is released under GPL v2. * +* **** WARNING **** +* +* This driver never worked properly and unfortunately data corruption is +* relatively common. There isn't anyone working on the driver and there's +* no support from the vendor. Do not use this driver in any production +* environment. +* +* http://thread.gmane.org/gmane.linux.debian.devel.bugs.rc/378525/focus=54491 +* https://bugzilla.kernel.org/show_bug.cgi?id=60565 +* +* ***************** +* * This controller is eccentric and easily locks up if something isn't * right. Documentation is available at initio's website but it only * documents registers (not programming model).
@@ -809,6 +821,8 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)ata_print_version_once (&pdev->dev,DRV_VERSION ); +dev_alert (&pdev->dev,"inic162x support is broken with common data corruption issues and will be disabled by default, contact [email protected] if in production use\n" ); +/* alloc host */ host =ata_host_alloc_pinfo (&pdev->dev, ppi,NR_PORTS ); hpriv =devm_kzalloc (&pdev->dev,sizeof (*hpriv),GFP_KERNEL );
drivers/block/xen-blkback/blkback.c +12 -1
@@ -399,7 +399,18 @@ static int dispatch_discard_io(struct xen_blkif *blkif,int status =BLKIF_RSP_OKAY ;struct block_device *bdev = blkif->vbd.bdev;unsigned long secure; +struct phys_req preq; + + preq.sector_number = req->u.discard.sector_number; + preq.nr_sects = req->u.discard.nr_sectors; + err =xen_vbd_translate (&preq, blkif,WRITE ); +if (err) { +pr_warn (DRV_PFX "access denied: DISCARD [%llu->%llu] on dev=%04x\n" , + preq.sector_number, + preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); + goto fail_response; + } blkif->st_ds_req++;xen_blkif_get (blkif);
@@ -410,7 +421,7 @@ static int dispatch_discard_io(struct xen_blkif *blkif, err =blkdev_issue_discard (bdev, req->u.discard.sector_number, req->u.discard.nr_sectors,GFP_KERNEL , secure); - +fail_response:if (err == -EOPNOTSUPP ) {pr_debug (DRV_PFX "discard op failed, not supported\n" ); status =BLKIF_RSP_EOPNOTSUPP ;
drivers/firewire/core-cdev.c +3 -0
@@ -53,6 +53,7 @@#define FW_CDEV_KERNEL_VERSION 5#define FW_CDEV_VERSION_EVENT_REQUEST2 4#define FW_CDEV_VERSION_ALLOCATE_REGION_END 4 +#define FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW 5struct client {u32 version;
@@ -998,6 +999,8 @@ static int ioctl_create_iso_context(struct client *client, union ioctl_arg *arg) a->channel, a->speed, a->header_size, cb, client);if (IS_ERR (context))return PTR_ERR (context); +if (client->version <FW_CDEV_VERSION_AUTO_FLUSH_ISO_OVERFLOW ) + context->drop_overflow_headers = true;/* We only support one context at this time. */ spin_lock_irq (&client->lock);
drivers/firewire/ohci.c +8 -2
@@ -2694,8 +2694,11 @@ static void copy_iso_headers(struct iso_context *ctx, const u32 *dma_hdr) {u32 *ctx_hdr; -if (ctx->header_length + ctx->base.header_size >PAGE_SIZE ) +if (ctx->header_length + ctx->base.header_size >PAGE_SIZE ) { +if (ctx->base.drop_overflow_headers) +return ;flush_iso_completions (ctx); + } ctx_hdr = ctx->header + ctx->header_length; ctx->last_timestamp = (u16 )le32_to_cpu ((__force __le32 )dma_hdr[0 ]);
@@ -2855,8 +2858,11 @@ static int handle_it_packet(struct context *context,sync_it_packet_for_cpu (context, d); -if (ctx->header_length +4 >PAGE_SIZE ) +if (ctx->header_length +4 >PAGE_SIZE ) { +if (ctx->base.drop_overflow_headers) +return 1 ;flush_iso_completions (ctx); + } ctx_hdr = ctx->header + ctx->header_length; ctx->last_timestamp =le16_to_cpu (last->res_count);
drivers/gpu/drm/radeon/atom.c +5 -0
@@ -1222,12 +1222,17 @@ int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)int r;mutex_lock (&ctx->mutex); +/* reset data block */ + ctx->data_block =0 ;/* reset reg block */ ctx->reg_block =0 ;/* reset fb window */ ctx->fb_base =0 ;/* reset io mode */ ctx->io_mode =ATOM_IO_MM ; +/* reset divmul */ + ctx->divmul[0 ] =0 ; + ctx->divmul[1 ] =0 ; r =atom_execute_table_locked (ctx, index, params);mutex_unlock (&ctx->mutex);return r;
drivers/gpu/drm/radeon/atombios_dp.c +39 -4
62 lines not on this page · raw message
drivers/gpu/drm/radeon/radeon_combios.c +45 -106
245 lines not on this page · raw message
drivers/md/dm-verity.c +2 -3
@@ -813,9 +813,8 @@ static int verity_ctr(struct dm_target *ti, unsigned argc, char **argv)for (i = v->levels -1 ; i >=0 ; i--) {sector_t s; v->hash_level_block[i] = hash_position; - s =verity_position_at_level (v, v->data_blocks, i); - s = (s >> v->hash_per_block_bits) + - !!(s & ((1 << v->hash_per_block_bits) -1 )); + s = (v->data_blocks + ((sector_t )1 << ((i +1 ) * v->hash_per_block_bits)) -1 ) + >> ((i +1 ) * v->hash_per_block_bits);if (hash_position + s < hash_position) { ti->error ="Hash device offset overflow" ; r = -E2BIG ;
drivers/md/raid10.c +7 -1
@@ -2029,12 +2029,18 @@ static void recovery_request_write(struct mddev *mddev, struct r10bio *r10_bio) d = r10_bio->devs[1 ].devnum; wbio = r10_bio->devs[1 ].bio; wbio2 = r10_bio->devs[1 ].repl_bio; +/* Need to test wbio2->bi_end_io before we call +* generic_make_request as if the former is NULL, +* the latter is free to free wbio2. +*/ +if (wbio2 && !wbio2->bi_end_io) + wbio2 =NULL ;if (wbio->bi_end_io) {atomic_inc (&conf->mirrors[d].rdev->nr_pending);md_sync_acct (conf->mirrors[d].rdev->bdev, wbio->bi_size >>9 );generic_make_request (wbio); } -if (wbio2 && wbio2->bi_end_io) { +if (wbio2) {atomic_inc (&conf->mirrors[d].replacement->nr_pending);md_sync_acct (conf->mirrors[d].replacement->bdev, wbio2->bi_size >>9 );
drivers/md/raid5.c +10 -5
@@ -3326,6 +3326,7 @@ static void handle_stripe(struct stripe_head *sh)if (test_and_clear_bit (STRIPE_SYNC_REQUESTED , &sh->state)) {set_bit (STRIPE_SYNCING , &sh->state);clear_bit (STRIPE_INSYNC , &sh->state); +clear_bit (STRIPE_REPLACED , &sh->state); }clear_bit (STRIPE_DELAYED , &sh->state);
@@ -3465,19 +3466,23 @@ static void handle_stripe(struct stripe_head *sh)handle_parity_checks5 (conf, sh, &s, disks); } -if (s.replacing && s.locked ==0 - && !test_bit (STRIPE_INSYNC , &sh->state)) { +if ((s.replacing || s.syncing) && s.locked ==0 + && !test_bit (STRIPE_COMPUTE_RUN , &sh->state) + && !test_bit (STRIPE_REPLACED , &sh->state)) {/* Write out to replacement devices where possible */ for (i =0 ; i < conf->raid_disks; i++) -if (test_bit (R5_UPTODATE , &sh->dev[i].flags) && -test_bit (R5_NeedReplace, &sh->dev[i].flags)) { +if (test_bit (R5_NeedReplace, &sh->dev[i].flags)) { +WARN_ON (!test_bit (R5_UPTODATE , &sh->dev[i].flags));set_bit (R5_WantReplace, &sh->dev[i].flags);set_bit (R5_LOCKED , &sh->dev[i].flags); s.locked++; } -set_bit (STRIPE_INSYNC , &sh->state); +if (s.replacing) +set_bit (STRIPE_INSYNC , &sh->state); +set_bit (STRIPE_REPLACED , &sh->state); }if ((s.syncing || s.replacing) && s.locked ==0 && + !test_bit (STRIPE_COMPUTE_RUN , &sh->state) &&test_bit (STRIPE_INSYNC , &sh->state)) {md_done_sync (conf->mddev,STRIPE_SECTORS ,1 );clear_bit (STRIPE_SYNCING , &sh->state);
drivers/md/raid5.h +1 -0
@@ -306,6 +306,7 @@ enum {STRIPE_SYNC_REQUESTED ,STRIPE_SYNCING ,STRIPE_INSYNC , +STRIPE_REPLACED ,STRIPE_PREREAD_ACTIVE ,STRIPE_DELAYED , STRIPE_DEGRADED,
drivers/net/virtio_net.c +3 -2
@@ -518,7 +518,7 @@ static int virtnet_poll(struct napi_struct *napi, int budget) { struct virtnet_info *vi = container_of(napi, struct virtnet_info, napi);void *buf; -unsigned int len, received =0 ; +unsigned int r, len, received =0 ; again: while (received < budget &&
@@ -535,8 +535,9 @@ again:/* Out of packets? */ if (received < budget) { + r =virtqueue_enable_cb_prepare (vi->rvq);napi_complete (napi); -if (unlikely (!virtqueue_enable_cb (vi->rvq)) && +if (unlikely (virtqueue_poll (vi->rvq, r)) &&napi_schedule_prep (napi)) {virtqueue_disable_cb (vi->rvq);__napi_schedule (napi);
drivers/s390/scsi/zfcp_aux.c +4 -1
@@ -3,7 +3,7 @@* * Module interface and handling of zfcp data structures. * -* Copyright IBM Corporation 2002, 2010 +* Copyright IBM Corp. 2002, 2013 */ /*
@@ -23,6 +23,7 @@* Christof Schmitt * Martin Petermann * Sven Schuetz +* Steffen Maier */ #define KMSG_COMPONENT "zfcp"
@@ -415,6 +416,8 @@ struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *ccw_device) adapter->dma_parms.max_segment_size =ZFCP_QDIO_SBALE_LEN ; adapter->ccw_device->dev.dma_parms = &adapter->dma_parms; + adapter->stat_read_buf_num =FSF_STATUS_READS_RECOM ; +if (!zfcp_scsi_adapter_register (adapter))return adapter;
drivers/s390/scsi/zfcp_fsf.c +16 -7
@@ -3,7 +3,7 @@* * Implementation of FSF commands. * -* Copyright IBM Corporation 2002, 2010 +* Copyright IBM Corp. 2002, 2013 */ #define KMSG_COMPONENT "zfcp"
@@ -483,12 +483,8 @@ static int zfcp_fsf_exchange_config_evaluate(struct zfcp_fsf_req *req)fc_host_port_name (shost) = nsp->fl_wwpn;fc_host_node_name (shost) = nsp->fl_wwnn; -fc_host_port_id (shost) =ntoh24 (bottom->s_id); -fc_host_speed (shost) = -zfcp_fsf_convert_portspeed (bottom->fc_link_speed);fc_host_supported_classes (shost) =FC_COS_CLASS2 |FC_COS_CLASS3 ; - adapter->hydra_version = bottom->adapter_type; adapter->timer_ticks = bottom->timer_interval &ZFCP_FSF_TIMER_INT_MASK ; adapter->stat_read_buf_num =max (bottom->status_read_buf_num, (u16 )FSF_STATUS_READS_RECOM );
@@ -496,6 +492,19 @@ static int zfcp_fsf_exchange_config_evaluate(struct zfcp_fsf_req *req)if (fc_host_permanent_port_name (shost) ==-1 )fc_host_permanent_port_name (shost) =fc_host_port_name (shost); +zfcp_scsi_set_prot (adapter); + +/* no error return above here, otherwise must fix call chains */ +/* do not evaluate invalid fields */ +if (req->qtcb->header.fsf_status ==FSF_EXCHANGE_CONFIG_DATA_INCOMPLETE ) +return 0 ; + +fc_host_port_id (shost) =ntoh24 (bottom->s_id); +fc_host_speed (shost) = +zfcp_fsf_convert_portspeed (bottom->fc_link_speed); + + adapter->hydra_version = bottom->adapter_type; +switch (bottom->fc_topology) {case FSF_TOPO_P2P : adapter->peer_d_id =ntoh24 (bottom->peer_d_id);
@@ -517,8 +526,6 @@ static int zfcp_fsf_exchange_config_evaluate(struct zfcp_fsf_req *req)return -EIO ; } -zfcp_scsi_set_prot (adapter); -return 0 ; }
@@ -569,6 +576,8 @@ static void zfcp_fsf_exchange_config_data_handler(struct zfcp_fsf_req *req) &adapter->status);zfcp_fsf_link_down_info_eval (req, &qtcb->header.fsf_status_qual.link_down_info); +if (zfcp_fsf_exchange_config_evaluate (req)) +return ;break ;default :zfcp_erp_adapter_shutdown (adapter,0 ,"fsecdh3" );
drivers/scsi/qla2xxx/qla_iocb.c +9 -2
@@ -423,6 +423,8 @@ qla2x00_start_scsi(srb_t *sp)__constant_cpu_to_le16 (CF_SIMPLE_TAG );break ; } + }else { + cmd_pkt->control_flags =__constant_cpu_to_le16 (CF_SIMPLE_TAG ); }/* Load SCSI command packet. */
@@ -1331,11 +1333,11 @@ qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt, fcp_cmnd->task_attribute =TSK_ORDERED ;break ;default : - fcp_cmnd->task_attribute =0 ; + fcp_cmnd->task_attribute =TSK_SIMPLE ;break ; } }else { - fcp_cmnd->task_attribute =0 ; + fcp_cmnd->task_attribute =TSK_SIMPLE ; } cmd_pkt->fcp_rsp_dseg_len =0 ;/* Let response come in status iocb */
@@ -1541,7 +1543,12 @@ qla24xx_start_scsi(srb_t *sp)case ORDERED_QUEUE_TAG : cmd_pkt->task =TSK_ORDERED ;break ; +default : + cmd_pkt->task =TSK_SIMPLE ; +break ; } + }else { + cmd_pkt->task =TSK_SIMPLE ; }/* Load SCSI command packet. */
drivers/scsi/sd.c +7 -15
@@ -672,10 +672,17 @@ static int scsi_setup_flush_cmnd(struct scsi_device *sdp, struct request *rq)static void sd_unprep_fn (struct request_queue *q,struct request *rq) { +struct scsi_cmnd *SCpnt = rq->special; +if (rq->cmd_flags &REQ_DISCARD ) {free_page ((unsigned long )rq->buffer); rq->buffer =NULL ; } +if (SCpnt->cmnd != rq->cmd) { +mempool_free (SCpnt->cmnd, sd_cdb_pool); + SCpnt->cmnd =NULL ; + SCpnt->cmd_len =0 ; + } }/**
@@ -1539,21 +1546,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)if (rq_data_dir (SCpnt->request) ==READ &&scsi_prot_sg_count (SCpnt))sd_dif_complete (SCpnt, good_bytes); -if (scsi_host_dif_capable (sdkp->device->host, sdkp->protection_type) - ==SD_DIF_TYPE2_PROTECTION && SCpnt->cmnd != SCpnt->request->cmd) { - -/* We have to print a failed command here as the -* extended CDB gets freed before scsi_io_completion() -* is called. -*/ -if (result) -scsi_print_command (SCpnt); - -mempool_free (SCpnt->cmnd, sd_cdb_pool); - SCpnt->cmnd =NULL ; - SCpnt->cmd_len =0 ; - } -return good_bytes; }
drivers/staging/comedi/comedi_fops.c +6 -1
@@ -1370,6 +1370,7 @@ static int do_cancel_ioctl(struct comedi_device *dev, unsigned int arg, void *file) {struct comedi_subdevice *s; +int ret;if (arg >= dev->n_subdevices)return -EINVAL ;
@@ -1386,7 +1387,11 @@ static int do_cancel_ioctl(struct comedi_device *dev, unsigned int arg,if (s->busy != file)return -EBUSY ; -return do_cancel (dev, s); + ret =do_cancel (dev, s); +if (comedi_get_subdevice_runflags (s) &SRF_USER ) +wake_up_interruptible (&s->async->wait_head); + +return ret; }/*
drivers/target/iscsi/iscsi_target_configfs.c +1 -1
@@ -415,7 +415,7 @@ static ssize_t __iscsi_##prefix##_store_##name( \if (!capable (CAP_SYS_ADMIN )) \return -EPERM ; \ \ -snprintf (auth->name,PAGE_SIZE ,"%s" , page); \ +snprintf (auth->name,sizeof (auth->name),"%s" , page); \if (!strncmp ("NULL" , auth->name,4 )) \ auth->naf_flags &= ~flags; \else \
drivers/usb/core/hub.c +9 -0
@@ -488,6 +488,15 @@ resubmit:static inline int hub_clear_tt_buffer (struct usb_device *hdev,u16 devinfo,u16 tt) { +/* Need to clear both directions for control ep */ +if (((devinfo >>11 ) &USB_ENDPOINT_XFERTYPE_MASK ) == +USB_ENDPOINT_XFER_CONTROL ) { +int status =usb_control_msg (hdev,usb_sndctrlpipe (hdev,0 ), +HUB_CLEAR_TT_BUFFER ,USB_RT_PORT , + devinfo ^0x8000 , tt,NULL ,0 ,1000 ); +if (status) +return status; + }return usb_control_msg (hdev,usb_sndctrlpipe (hdev,0 ),HUB_CLEAR_TT_BUFFER ,USB_RT_PORT , devinfo, tt,NULL ,0 ,1000 );
drivers/usb/dwc3/core.h +2 -2
@@ -641,8 +641,8 @@ struct dwc3 {struct dwc3_event_type {u32 is_devspec:1 ; -u32 type:6 ; -u32 reserved8_31:25 ; +u32 type:7 ; +u32 reserved8_31:24 ; } __packed;#define DWC3_DEPEVT_XFERCOMPLETE 0x01
drivers/usb/dwc3/gadget.c +1 -0
@@ -1393,6 +1393,7 @@ err1:__dwc3_gadget_ep_disable (dwc->eps[0 ]); err0: + dwc->gadget_driver =NULL ;spin_unlock_irqrestore (&dwc->lock, flags);return ret;
drivers/usb/host/xhci-pci.c +0 -1
@@ -89,7 +89,6 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_AMD_PLL_FIX ;if (pdev->vendor ==PCI_VENDOR_ID_INTEL && pdev->device ==PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI ) { - xhci->quirks |=XHCI_SPURIOUS_SUCCESS ; xhci->quirks |=XHCI_EP_LIMIT_QUIRK ; xhci->limit_active_eps =64 ; xhci->quirks |=XHCI_SW_BW_CHECKING ;
drivers/usb/host/xhci-ring.c +1 -1
@@ -434,7 +434,7 @@ static void ring_doorbell_for_active_rings(struct xhci_hcd *xhci,/* A ring has pending URBs if its TD list is not empty */ if (!(ep->ep_state &EP_HAS_STREAMS )) { -if (!(list_empty (&ep->ring->td_list))) +if (ep->ring && !(list_empty (&ep->ring->td_list)))xhci_ring_ep_doorbell (xhci, slot_id, ep_index,0 );return ; }
drivers/usb/host/xhci.c +10 -3
@@ -1162,9 +1162,6 @@ static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev, } xhci =hcd_to_xhci (hcd); -if (xhci->xhc_state &XHCI_STATE_HALTED ) -return -ENODEV ; -if (check_virt_dev) {if (!udev->slot_id || !xhci->devs[udev->slot_id]) { printk(KERN_DEBUG "xHCI %s called with unaddressed "
@@ -1180,6 +1177,9 @@ static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev, } } +if (xhci->xhc_state &XHCI_STATE_HALTED ) +return -ENODEV ; +return 1 ; }
@@ -4194,6 +4194,13 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)get_quirks (dev, xhci); +/* In xhci controllers which follow xhci 1.0 spec gives a spurious +* success event after a short transfer. This quirk will ignore such +* spurious event. +*/ +if (xhci->hci_version >0x96 ) + xhci->quirks |=XHCI_SPURIOUS_SUCCESS ; +/* Make sure the HC is halted. */ retval =xhci_halt (xhci);if (retval)
drivers/usb/misc/sisusbvga/sisusb.c +1 -0
@@ -3247,6 +3247,7 @@ static const struct usb_device_id sisusb_table[] = { { USB_DEVICE(0x0711, 0x0903) }, { USB_DEVICE(0x0711, 0x0918) }, { USB_DEVICE(0x0711, 0x0920) }, + { USB_DEVICE(0x0711, 0x0950) }, { USB_DEVICE(0x182d, 0x021c) }, { USB_DEVICE(0x182d, 0x0269) }, { }
drivers/usb/serial/ftdi_sio.c +28 -3
@@ -745,9 +745,34 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_NDI_AURORA_SCU_PID), .driver_info = (kernel_ulong_t)&ftdi_NDI_device_quirk }, { USB_DEVICE(TELLDUS_VID, TELLDUS_TELLSTICK_PID) }, - { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_SERIAL_VX7_PID) }, - { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_CT29B_PID) }, - { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_RTS01_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_S03_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_59_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_57A_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_57B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29A_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29F_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_62B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_S01_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_63_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29C_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_81B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_82B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_K5D_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_K4Y_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_K5G_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_S05_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_60_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_61_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_62_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_63B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_64_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_65_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_92_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_92D_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_W5R_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_A5R_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_PW1_PID) }, { USB_DEVICE(FTDI_VID, FTDI_MAXSTREAM_PID) }, { USB_DEVICE(FTDI_VID, FTDI_PHI_FISCO_PID) }, { USB_DEVICE(TML_VID, TML_USB_SERIAL_PID) },
drivers/usb/serial/ftdi_sio_ids.h +29 -5
@@ -815,11 +815,35 @@/* * RT Systems programming cables for various ham radios */ -#define RTSYSTEMS_VID 0x2100/* Vendor ID */ -#define RTSYSTEMS_SERIAL_VX7_PID 0x9e52/* Serial converter for VX-7 Radios using FT232RL */ -#define RTSYSTEMS_CT29B_PID 0x9e54/* CT29B Radio Cable */ -#define RTSYSTEMS_RTS01_PID 0x9e57/* USB-RTS01 Radio Cable */ - +#define RTSYSTEMS_VID 0x2100/* Vendor ID */ +#define RTSYSTEMS_USB_S03_PID 0x9001/* RTS-03 USB to Serial Adapter */ +#define RTSYSTEMS_USB_59_PID 0x9e50/* USB-59 USB to 8 pin plug */ +#define RTSYSTEMS_USB_57A_PID 0x9e51/* USB-57A USB to 4pin 3.5mm plug */ +#define RTSYSTEMS_USB_57B_PID 0x9e52/* USB-57B USB to extended 4pin 3.5mm plug */ +#define RTSYSTEMS_USB_29A_PID 0x9e53/* USB-29A USB to 3.5mm stereo plug */ +#define RTSYSTEMS_USB_29B_PID 0x9e54/* USB-29B USB to 6 pin mini din */ +#define RTSYSTEMS_USB_29F_PID 0x9e55/* USB-29F USB to 6 pin modular plug */ +#define RTSYSTEMS_USB_62B_PID 0x9e56/* USB-62B USB to 8 pin mini din plug*/ +#define RTSYSTEMS_USB_S01_PID 0x9e57/* USB-RTS01 USB to 3.5 mm stereo plug*/ +#define RTSYSTEMS_USB_63_PID 0x9e58/* USB-63 USB to 9 pin female*/ +#define RTSYSTEMS_USB_29C_PID 0x9e59/* USB-29C USB to 4 pin modular plug*/ +#define RTSYSTEMS_USB_81B_PID 0x9e5A/* USB-81 USB to 8 pin mini din plug*/ +#define RTSYSTEMS_USB_82B_PID 0x9e5B/* USB-82 USB to 2.5 mm stereo plug*/ +#define RTSYSTEMS_USB_K5D_PID 0x9e5C/* USB-K5D USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_K4Y_PID 0x9e5D/* USB-K4Y USB to 2.5/3.5 mm plugs*/ +#define RTSYSTEMS_USB_K5G_PID 0x9e5E/* USB-K5G USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_S05_PID 0x9e5F/* USB-RTS05 USB to 2.5 mm stereo plug*/ +#define RTSYSTEMS_USB_60_PID 0x9e60/* USB-60 USB to 6 pin din*/ +#define RTSYSTEMS_USB_61_PID 0x9e61/* USB-61 USB to 6 pin mini din*/ +#define RTSYSTEMS_USB_62_PID 0x9e62/* USB-62 USB to 8 pin mini din*/ +#define RTSYSTEMS_USB_63B_PID 0x9e63/* USB-63 USB to 9 pin female*/ +#define RTSYSTEMS_USB_64_PID 0x9e64/* USB-64 USB to 9 pin male*/ +#define RTSYSTEMS_USB_65_PID 0x9e65/* USB-65 USB to 9 pin female null modem*/ +#define RTSYSTEMS_USB_92_PID 0x9e66/* USB-92 USB to 12 pin plug*/ +#define RTSYSTEMS_USB_92D_PID 0x9e67/* USB-92D USB to 12 pin plug data*/ +#define RTSYSTEMS_USB_W5R_PID 0x9e68/* USB-W5R USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_A5R_PID 0x9e69/* USB-A5R USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_PW1_PID 0x9e6A/* USB-PW1 USB to 8 pin modular plug*/ /* * Physik Instrumente
drivers/usb/serial/ti_usb_3410_5052.c +1 -1
@@ -390,7 +390,7 @@ static int ti_startup(struct usb_serial *serial)usb_set_serial_data (serial, tdev);/* determine device type */ -if (usb_match_id (serial->interface, ti_id_table_3410)) +if (serial->type == &ti_1port_device) tdev->td_is_3410 =1 ;dbg ("%s - device type is %s" , __func__, tdev->td_is_3410 ?"3410" :"5052" );
drivers/usb/storage/unusual_devs.h +7 -0
@@ -657,6 +657,13 @@ UNUSUAL_DEV( 0x054c, 0x016a, 0x0000, 0x9999, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_FIX_INQUIRY ), +/* Submitted by Ren Bigcren <[email protected]> */ +UNUSUAL_DEV (0x054c ,0x02a5 ,0x0100 ,0x0100 , +"Sony Corp." , +"MicroVault Flash Drive" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_NO_READ_CAPACITY_16 ), +/* floppy reports multiple luns */ UNUSUAL_DEV( 0x055d, 0x2020, 0x0000, 0x0210, "SAMSUNG",
drivers/virtio/virtio_ring.c +43 -11
74 lines not on this page · raw message
drivers/xen/evtchn.c +2 -19
@@ -377,18 +377,12 @@ static long evtchn_ioctl(struct file *file,if (unbind.port >=NR_EVENT_CHANNELS )break ; -spin_lock_irq (&port_user_lock); - rc = -ENOTCONN ; -if (get_port_user (unbind.port) != u) { -spin_unlock_irq (&port_user_lock); +if (get_port_user (unbind.port) != u)break ; - }disable_irq (irq_from_evtchn (unbind.port)); -spin_unlock_irq (&port_user_lock); -evtchn_unbind_from_user (u, unbind.port); rc =0 ;
@@ -488,26 +482,15 @@ static int evtchn_release(struct inode *inode, struct file *filp)int i;struct per_user_data *u = filp->private_data; -spin_lock_irq (&port_user_lock); - -free_page ((unsigned long )u->ring); -for (i =0 ; i <NR_EVENT_CHANNELS ; i++) {if (get_port_user (i) != u)continue ;disable_irq (irq_from_evtchn (i)); - } - -spin_unlock_irq (&port_user_lock); - -for (i =0 ; i <NR_EVENT_CHANNELS ; i++) { -if (get_port_user (i) != u) -continue ; -evtchn_unbind_from_user (get_port_user (i), i); } +free_page ((unsigned long )u->ring);kfree (u->name);kfree (u);
fs/btrfs/extent-tree.c +13 -0
@@ -6846,6 +6846,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,int err =0 ;int ret;int level; +bool root_dropped = false; path =btrfs_alloc_path ();if (!path) {
@@ -6903,6 +6904,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,while (1 ) {btrfs_tree_lock (path->nodes[level]);btrfs_set_lock_blocking (path->nodes[level]); + path->locks[level] =BTRFS_WRITE_LOCK_BLOCKING ; ret = btrfs_lookup_extent_info(trans, root, path->nodes[level]->start,
@@ -6919,6 +6921,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,break ;btrfs_tree_unlock (path->nodes[level]); + path->locks[level] =0 ;WARN_ON (wc->refs[level] !=1 ); level--; }
@@ -7014,12 +7017,22 @@ int btrfs_drop_snapshot(struct btrfs_root *root,free_extent_buffer (root->commit_root);kfree (root); } + root_dropped = true; out_end_trans:btrfs_end_transaction_throttle (trans, tree_root); out_free:kfree (wc);btrfs_free_path (path); out: +/* +* So if we need to stop dropping the snapshot for whatever reason we +* need to make sure to add it back to the dead root list so that we +* keep trying to do the work later. This also cleans up roots if we +* don't have it in the radix (like when we recover after a power fail +* or unmount) so we don't leak memory. +*/ +if (root_dropped == false) +btrfs_add_dead_root (root);if (err)btrfs_std_error (root->fs_info, err);return err;
fs/super.c +10 -15
@@ -298,19 +298,19 @@ EXPORT_SYMBOL(deactivate_super);* and want to turn it into a full-blown active reference. grab_super() * is called with sb_lock held and drops it. Returns 1 in case of * success, 0 if we had failed (superblock contents was already dead or -* dying when grab_super() had been called). +* dying when grab_super() had been called). Note that this is only +* called for superblocks not in rundown mode (== ones still on ->fs_supers +* of their type), so increment of ->s_count is OK here. */ static int grab_super (struct super_block *s)__releases (sb_lock) { -if (atomic_inc_not_zero (&s->s_active)) { -spin_unlock (&sb_lock); -return 1 ; - } -/* it's going away */ s->s_count++;spin_unlock (&sb_lock); -/* wait for it to die */ down_write (&s->s_umount); +if ((s->s_flags &MS_BORN ) &&atomic_inc_not_zero (&s->s_active)) { +put_super (s); +return 1 ; + }up_write (&s->s_umount);put_super (s);return 0 ;
@@ -440,11 +440,6 @@ retry:destroy_super (s); s =NULL ; } -down_write (&old->s_umount); -if (unlikely (!(old->s_flags &MS_BORN ))) { -deactivate_locked_super (old); - goto retry; - }return old; } }
@@ -677,10 +672,10 @@ restart:if (hlist_unhashed (&sb->s_instances))continue ;if (sb->s_bdev == bdev) { -if (grab_super (sb))/* drops sb_lock */ -return sb; -else +if (!grab_super (sb)) goto restart; +up_write (&sb->s_umount); +return sb; } }spin_unlock (&sb_lock);
include/linux/firewire-cdev.h +2 -2
@@ -215,8 +215,8 @@ struct fw_cdev_event_request2 {* with the %FW_CDEV_ISO_INTERRUPT bit set, when explicitly requested with * %FW_CDEV_IOC_FLUSH_ISO, or when there have been so many completed packets * without the interrupt bit set that the kernel's internal buffer for @header -* is about to overflow. (In the last case, kernels with ABI version < 5 drop -* header data up to the next interrupt packet.) +* is about to overflow. (In the last case, ABI versions < 5 drop header data +* up to the next interrupt packet.) * * Isochronous transmit events (context type %FW_CDEV_ISO_CONTEXT_TRANSMIT): *
include/linux/firewire.h +1 -0
@@ -409,6 +409,7 @@ struct fw_iso_context {int type;int channel;int speed; +bool drop_overflow_headers;size_t header_size;union {fw_iso_callback_t sc;
include/linux/virtio.h +4 -0
@@ -44,6 +44,10 @@ void virtqueue_disable_cb(struct virtqueue *vq);bool virtqueue_enable_cb (struct virtqueue *vq); +unsigned virtqueue_enable_cb_prepare (struct virtqueue *vq); + +bool virtqueue_poll (struct virtqueue *vq,unsigned ); +bool virtqueue_enable_cb_delayed (struct virtqueue *vq);void *virtqueue_detach_unused_buf (struct virtqueue *vq);
kernel/trace/trace_syscalls.c +3 -0
@@ -358,6 +358,9 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)if (!sys_data)return ; +local_save_flags (irq_flags); + pc =preempt_count (); + event =trace_current_buffer_lock_reserve (&buffer, sys_data->exit_event->event.type,sizeof (*entry), irq_flags, pc);
mm/page_alloc.c +4 -0
@@ -5592,6 +5592,10 @@ __offline_isolated_pages(unsigned long start_pfn, unsigned long end_pfn) zone->free_area[order].nr_free--;__mod_zone_page_state (zone,NR_FREE_PAGES , - (1UL << order)); +#ifdef CONFIG_HIGHMEM +if (PageHighMem (page)) + totalhigh_pages -=1 << order; +#endif for (i =0 ; i < (1 << order); i++)SetPageReserved ((page+i)); pfn += (1 << order);
sound/soc/codecs/max98088.c +1 -1
@@ -1594,7 +1594,7 @@ static int max98088_dai2_digital_mute(struct snd_soc_dai *codec_dai, int mute)static void max98088_sync_cache (struct snd_soc_codec *codec) { -u16 *reg_cache = codec->reg_cache; +u8 *reg_cache = codec->reg_cache;int i;if (!codec->cache_sync)
sound/soc/codecs/wm8962.c +13 -11
@@ -1599,7 +1599,6 @@ static int wm8962_put_hp_sw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) {struct snd_soc_codec *codec =snd_kcontrol_chip (kcontrol); -u16 *reg_cache = codec->reg_cache;int ret;/* Apply the update (if any) */
@@ -1608,16 +1607,19 @@ static int wm8962_put_hp_sw(struct snd_kcontrol *kcontrol,return 0 ;/* If the left PGA is enabled hit that VU bit... */ -if (snd_soc_read (codec,WM8962_PWR_MGMT_2 ) &WM8962_HPOUTL_PGA_ENA ) -return snd_soc_write (codec,WM8962_HPOUTL_VOLUME , - reg_cache[WM8962_HPOUTL_VOLUME ]); + ret =snd_soc_read (codec,WM8962_PWR_MGMT_2 ); +if (ret &WM8962_HPOUTL_PGA_ENA ) { +snd_soc_write (codec,WM8962_HPOUTL_VOLUME , +snd_soc_read (codec,WM8962_HPOUTL_VOLUME )); +return 1 ; + }/* ...otherwise the right. The VU is stereo. */ -if (snd_soc_read (codec,WM8962_PWR_MGMT_2 ) &WM8962_HPOUTR_PGA_ENA ) -return snd_soc_write (codec,WM8962_HPOUTR_VOLUME , - reg_cache[WM8962_HPOUTR_VOLUME ]); +if (ret &WM8962_HPOUTR_PGA_ENA ) +snd_soc_write (codec,WM8962_HPOUTR_VOLUME , +snd_soc_read (codec,WM8962_HPOUTR_VOLUME )); -return 0 ; +return 1 ; }/* The VU bits for the speakers are in a different register to the mute
@@ -3363,7 +3365,6 @@ static int wm8962_probe(struct snd_soc_codec *codec)int ret;struct wm8962_priv *wm8962 =snd_soc_codec_get_drvdata (codec);struct wm8962_pdata *pdata =dev_get_platdata (codec->dev); -u16 *reg_cache = codec->reg_cache;int i, trigger, irq_pol;bool dmicclk, dmicdat;
@@ -3421,8 +3422,9 @@ static int wm8962_probe(struct snd_soc_codec *codec)/* Put the speakers into mono mode? */ if (pdata->spk_mono) - reg_cache[WM8962_CLASS_D_CONTROL_2 ] - |=WM8962_SPK_MONO ; +snd_soc_update_bits (codec,WM8962_CLASS_D_CONTROL_2 , +WM8962_SPK_MONO_MASK ,WM8962_SPK_MONO ); +/* Micbias setup, detection enable and detection * threasholds. */