Linux 3.18.83
Greg KH
maintainerI'm announcing the release of the 3.18.83 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.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/mach-omap2/pdata-quirks.c | 1 arch/mips/include/asm/asm.h | 10 +- arch/mips/kernel/setup.c | 4 + arch/mips/netlogic/common/irq.c | 4 - crypto/Kconfig | 1 drivers/ata/Kconfig | 3 drivers/extcon/extcon-palmas.c | 5 + drivers/gpu/drm/mgag200/mgag200_main.c | 2 drivers/gpu/drm/sti/sti_vtg.c | 4 + drivers/media/rc/imon.c | 5 + drivers/media/usb/dvb-usb/dib0700_devices.c | 24 +++--- drivers/net/ethernet/intel/igb/e1000_82575.c | 11 ++ drivers/net/ethernet/intel/igb/e1000_i210.c | 4 - drivers/net/ethernet/intel/igb/igb_main.c | 21 +++-- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 23 +++-- drivers/scsi/lpfc/lpfc_attr.c | 17 ++++ drivers/scsi/lpfc/lpfc_sli.c | 3 drivers/scsi/lpfc/lpfc_vport.c | 8 ++ drivers/staging/rtl8188eu/include/rtw_debug.h | 2 drivers/target/iscsi/iscsi_target.c | 1 drivers/target/iscsi/iscsi_target_core.h | 1 drivers/target/iscsi/iscsi_target_login.c | 7 + drivers/usb/core/devio.c | 14 +++ drivers/usb/core/quirks.c | 3 drivers/usb/serial/garmin_gps.c | 23 +++++ drivers/usb/serial/qcserial.c | 1 drivers/video/backlight/adp5520_bl.c | 12 ++- drivers/video/backlight/lcd.c | 4 - include/dt-bindings/pinctrl/omap.h | 4 - include/target/iscsi/iscsi_target_core.h | 1 include/uapi/linux/rds.h | 102 +++++++++++++------------- sound/drivers/vx/vx_pcm.c | 8 +- sound/pci/vx222/vx222_ops.c | 12 +-- sound/pcmcia/vx/vxp_ops.c | 12 +-- 35 files changed, 238 insertions(+), 121 deletions(-)
Aaron Sierra (1):
igb: reset the PHY before reading the PHY ID
Alan Stern (1):
USB: usbfs: compute urb->actual_length for isochronous
Alexey Khoroshilov (1):
backlight: adp5520: Fix error handling in adp5520_bl_probe()
Andrey Konovalov (1):
media: dib0700: fix invalid dvb_detach argument
Arvind Yadav (3):
media: imon: Fix null-ptr-deref in imon_probe
drm/sti: sti_vtg: Handle return NULL error from devm_ioremap_nocache
gpu: drm: mgag200: mgag200_main:- Handle error from pci_iomap
Bernhard Rosenkraenzer (1):
USB: Add delay-init quirk for Corsair K70 LUX keyboards
Dmitry V. Levin (2):
uapi: fix linux/rds.h userspace compilation error
uapi: fix linux/rds.h userspace compilation errors
Douglas Fischer (1):
USB: serial: qcserial: add pid/vid for Sierra Wireless EM7355 fw update
Emil Tantilov (2):
ixgbe: fix AER error handling
ixgbe: handle close/suspend race with netif_device_detach/present
Galo Navarro (1):
staging: rtl8188eu: fix incorrect ERROR tags from logs
Geert Uytterhoeven (3):
ata: ATA_BMDMA should depend on HAS_DMA
ata: SATA_HIGHBANK should depend on HAS_DMA
ata: SATA_MV should depend on HAS_DMA
Greg Kroah-Hartman (1):
Linux 3.18.83
Hannu Lounento (1):
igb: Fix hw_dbg logging in igb_update_flash_i210
James Smart (4):
scsi: lpfc: Add missing memory barrier
scsi: lpfc: FCoE VPort enable-disable does not bring up the VPort
scsi: lpfc: Correct host name in symbolic_name field
scsi: lpfc: Correct issue leading to oops during link reset
Johan Hovold (3):
USB: serial: garmin_gps: fix memory leak on failed URB submit
USB: serial: garmin_gps: fix I/O after failed probe and remove
USB: serial: garmin_gps: fix memory leak on probe errors
Marcin Nowakowski (1):
MIPS: init: Ensure reserved memory regions are not added to bootmem
Nicholas Bellinger (1):
iscsi-target: Fix iscsi_np reset hung task during parallel delete
Paul Burton (2):
MIPS: End asm function prologue macros with .insn
MIPS: Netlogic: Exclude netlogic,xlp-pic code from XLR builds
Roger Quadros (1):
extcon: palmas: Check the parent instance to prevent the NULL
Sasha Levin (2):
Revert "crypto: xts - Add ECB dependency"
Revert "uapi: fix linux/rds.h userspace compilation errors"
Takashi Iwai (2):
ALSA: vx: Don't try to update capture stream before running
ALSA: vx: Fix possible transfer overflow
Todd Fujinaka (1):
igb: close/suspend race in netif_device_detach
Tony Lindgren (2):
ARM: OMAP2+: Fix init for multiple quirks for the same SoC
ARM: dts: Fix omap3 off mode pull defines
Uwe Kleine-König (1):
backlight: lcd: Fix race condition during register
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 82 +SUBLEVEL = 83 EXTRAVERSION = NAME = Diseased Newt
arch/arm/mach-omap2/pdata-quirks.c +0 -1
@@ -417,7 +417,6 @@ static void pdata_quirks_check(struct pdata_init *quirks)if (of_machine_is_compatible (quirks->compatible)) {if (quirks->fn) quirks->fn (); -break ; } quirks++; }
arch/mips/include/asm/asm.h +6 -4
@@ -54,7 +54,8 @@ .align 2; \ .type symbol, @function; \ .ent symbol, 0; \ -symbol: .frame sp, 0, ra +symbol: .frame sp, 0, ra; \ + .insn/* * NESTED - declare nested routine entry point
@@ -63,8 +64,9 @@ symbol: .frame sp, 0, ra .globl symbol; \ .align 2; \ .type symbol, @function; \ - .ent symbol, 0; \ -symbol: .frame sp, framesize, rpc + .ent symbol, 0; \ +symbol: .frame sp, framesize, rpc; \ + .insn/* * END - mark end of function
@@ -86,7 +88,7 @@ symbol:#define FEXPORT (symbol) \ .globl symbol; \ .type symbol, @function; \ -symbol: +symbol: .insn/* * ABS - export absolute symbol
arch/mips/kernel/setup.c +4 -0
@@ -427,6 +427,10 @@ static void __init bootmem_init(void)continue ;default :/* Not usable memory */ +if (start > min_low_pfn && end < max_low_pfn) +reserve_bootmem (boot_mem_map.map[i].addr, + boot_mem_map.map[i].size, +BOOTMEM_DEFAULT );continue ; }
arch/mips/netlogic/common/irq.c +2 -2
@@ -275,7 +275,7 @@ asmlinkage void plat_irq_dispatch(void)do_IRQ (nlm_irq_to_xirq (node, i)); } -#ifdef CONFIG_OF +#ifdef CONFIG_CPU_XLP static const struct irq_domain_ops xlp_pic_irq_domain_ops = { .xlate = irq_domain_xlate_onetwocell, };
@@ -348,7 +348,7 @@ void __init arch_init_irq(void)#if defined(CONFIG_CPU_XLR )nlm_setup_fmn_irq ();#endif -#if defined(CONFIG_OF ) +#ifdef CONFIG_CPU_XLP of_irq_init (xlp_pic_irq_ids);#endif }
crypto/Kconfig +0 -1
@@ -290,7 +290,6 @@ config CRYPTO_XTS select CRYPTO_BLKCIPHER select CRYPTO_MANAGER select CRYPTO_GF128MUL - select CRYPTO_ECB help XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain, key size 256, 384 or 512 bits. This implementation currently
drivers/ata/Kconfig +3 -0
@@ -245,6 +245,7 @@ config SATA_SX4 config ATA_BMDMA bool "ATA BMDMA support" + depends on HAS_DMA default y help This option adds support for SFF ATA controllers with BMDMA
@@ -290,6 +291,7 @@ config SATA_DWC_VDEBUG config SATA_HIGHBANK tristate "Calxeda Highbank SATA support" + depends on HAS_DMA depends on ARCH_HIGHBANK || COMPILE_TEST help This option enables support for the Calxeda Highbank SoC's
@@ -299,6 +301,7 @@ config SATA_HIGHBANK config SATA_MV tristate "Marvell SATA support" + depends on HAS_DMA depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST select GENERIC_PHY
drivers/extcon/extcon-palmas.c +5 -0
@@ -150,6 +150,11 @@ static int palmas_usb_probe(struct platform_device *pdev)struct palmas_usb *palmas_usb;int status; +if (!palmas) { +dev_err (&pdev->dev,"failed to get valid parent\n" ); +return -EINVAL ; + } + palmas_usb =devm_kzalloc (&pdev->dev,sizeof (*palmas_usb),GFP_KERNEL );if (!palmas_usb)return -ENOMEM ;
drivers/gpu/drm/mgag200/mgag200_main.c +2 -0
@@ -138,6 +138,8 @@ static int mga_vram_init(struct mga_device *mdev) } mem =pci_iomap (mdev->dev->pdev,0 ,0 ); +if (!mem) +return -ENOMEM ; mdev->mc.vram_size =mga_probe_vram (mdev, mem);
drivers/gpu/drm/sti/sti_vtg.c +4 -0
@@ -303,6 +303,10 @@ static int vtg_probe(struct platform_device *pdev)return -ENOMEM ; } vtg->regs =devm_ioremap_nocache (dev, res->start,resource_size (res)); +if (!vtg->regs) { +DRM_ERROR ("failed to remap I/O memory\n" ); +return -ENOMEM ; + } np =of_parse_phandle (pdev->dev.of_node,"st,slave" ,0 );if (np) {
drivers/media/rc/imon.c +5 -0
@@ -2419,6 +2419,11 @@ static int imon_probe(struct usb_interface *interface,mutex_lock (&driver_lock); first_if =usb_ifnum_to_if (usbdev,0 ); +if (!first_if) { + ret = -ENODEV ; + goto fail; + } + first_if_ctx =usb_get_intfdata (first_if);if (ifnum ==0 ) {
drivers/media/usb/dvb-usb/dib0700_devices.c +12 -12
@@ -292,7 +292,7 @@ static int stk7700P2_frontend_attach(struct dvb_usb_adapter *adap) stk7700d_dib7000p_mt2266_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; } }
@@ -326,7 +326,7 @@ static int stk7700d_frontend_attach(struct dvb_usb_adapter *adap) stk7700d_dib7000p_mt2266_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; } }
@@ -479,7 +479,7 @@ static int stk7700ph_frontend_attach(struct dvb_usb_adapter *adap) &stk7700ph_dib7700_xc3028_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
@@ -1013,7 +1013,7 @@ static int stk7070p_frontend_attach(struct dvb_usb_adapter *adap) &dib7070p_dib7000p_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
@@ -1071,7 +1071,7 @@ static int stk7770p_frontend_attach(struct dvb_usb_adapter *adap) &dib7770p_dib7000p_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
@@ -3039,7 +3039,7 @@ static int nim7090_frontend_attach(struct dvb_usb_adapter *adap)if (state->dib7000p_ops.i2c_enumeration (&adap->dev->i2c_adap,1 ,0x10 , &nim7090_dib7000p_config) !=0 ) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; } adap->fe_adap[0 ].fe = state->dib7000p_ops.init (&adap->dev->i2c_adap,0x80 , &nim7090_dib7000p_config);
@@ -3092,7 +3092,7 @@ static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap)/* initialize IC 0 */ if (state->dib7000p_ops.i2c_enumeration (&adap->dev->i2c_adap,1 ,0x20 , &tfe7090pvr_dib7000p_config[0 ]) !=0 ) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
@@ -3122,7 +3122,7 @@ static int tfe7090pvr_frontend1_attach(struct dvb_usb_adapter *adap) i2c = state->dib7000p_ops.get_i2c_master (adap->dev->adapter[0 ].fe_adap[0 ].fe,DIBX000_I2C_INTERFACE_GPIO_6_7 ,1 );if (state->dib7000p_ops.i2c_enumeration (i2c,1 ,0x10 , &tfe7090pvr_dib7000p_config[1 ]) !=0 ) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
@@ -3197,7 +3197,7 @@ static int tfe7790p_frontend_attach(struct dvb_usb_adapter *adap) 1, 0x10, &tfe7790p_dib7000p_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; } adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap,
@@ -3292,7 +3292,7 @@ static int stk7070pd_frontend_attach0(struct dvb_usb_adapter *adap) stk7070pd_dib7000p_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
@@ -3367,7 +3367,7 @@ static int novatd_frontend_attach(struct dvb_usb_adapter *adap) stk7070pd_dib7000p_config) != 0) {err ("%s: state->dib7000p_ops.i2c_enumeration failed. Cannot continue\n" , __func__); -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; } }
@@ -3603,7 +3603,7 @@ static int pctv340e_frontend_attach(struct dvb_usb_adapter *adap)if (state->dib7000p_ops.dib7000pc_detection (&adap->dev->i2c_adap) ==0 ) {/* Demodulator not found for some reason? */ -dvb_detach (&state->dib7000p_ops); +dvb_detach (state->dib7000p_ops.set_wbd_ref);return -ENODEV ; }
drivers/net/ethernet/intel/igb/e1000_82575.c +11 -0
@@ -215,6 +215,17 @@ static s32 igb_init_phy_params_82575(struct e1000_hw *hw) hw->bus.func = (rd32 (E1000_STATUS ) &E1000_STATUS_FUNC_MASK ) >>E1000_STATUS_FUNC_SHIFT ; +/* Make sure the PHY is in a good state. Several people have reported +* firmware leaving the PHY's page select register set to something +* other than the default of zero, which causes the PHY ID read to +* access something other than the intended register. +*/ + ret_val = hw->phy.ops.reset (hw); +if (ret_val) { +hw_dbg ("Error resetting the PHY.\n" ); + goto out; + } +/* Set phy->phy_addr and phy->id. */ ret_val =igb_get_phy_id_82575 (hw);if (ret_val)
drivers/net/ethernet/intel/igb/e1000_i210.c +2 -2
@@ -699,9 +699,9 @@ static s32 igb_update_flash_i210(struct e1000_hw *hw) ret_val =igb_pool_flash_update_done_i210 (hw);if (ret_val) -hw_dbg ("Flash update complete\n" ); -else hw_dbg ("Flash update time out\n" ); +else +hw_dbg ("Flash update complete\n" ); out:return ret_val;
drivers/net/ethernet/intel/igb/igb_main.c +12 -9
@@ -3170,7 +3170,9 @@ static int __igb_close(struct net_device *netdev, bool suspending)static int igb_close (struct net_device *netdev) { -return __igb_close (netdev, false); +if (netif_device_present (netdev)) +return __igb_close (netdev, false); +return 0 ; }/**
@@ -7328,12 +7330,14 @@ static int __igb_shutdown(struct pci_dev *pdev, bool *enable_wake,int retval =0 ;#endif +rtnl_lock ();netif_device_detach (netdev);if (netif_running (netdev))__igb_close (netdev, true);igb_clear_interrupt_scheme (adapter); +rtnl_unlock ();#ifdef CONFIG_PM retval =pci_save_state (pdev);
@@ -7452,16 +7456,15 @@ static int igb_resume(struct device *dev)wr32 (E1000_WUS , ~0 ); -if (netdev->flags &IFF_UP ) { -rtnl_lock (); +rtnl_lock (); +if (!err &&netif_running (netdev)) err =__igb_open (netdev, true); -rtnl_unlock (); -if (err) -return err; - } -netif_device_attach (netdev); -return 0 ; +if (!err) +netif_device_attach (netdev); +rtnl_unlock (); + +return err; }#ifdef CONFIG_PM_RUNTIME
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +12 -11
@@ -5560,7 +5560,8 @@ static int ixgbe_close(struct net_device *netdev)ixgbe_ptp_stop (adapter); -ixgbe_close_suspend (adapter); +if (netif_device_present (netdev)) +ixgbe_close_suspend (adapter);ixgbe_fdir_filter_exit (adapter);
@@ -5605,14 +5606,12 @@ static int ixgbe_resume(struct pci_dev *pdev)if (!err &&netif_running (netdev)) err =ixgbe_open (netdev); -rtnl_unlock (); - -if (err) -return err; -netif_device_attach (netdev); +if (!err) +netif_device_attach (netdev); +rtnl_unlock (); - return 0; + return err; }#endif /* CONFIG_PM */
@@ -5627,14 +5626,14 @@ static int __ixgbe_shutdown(struct pci_dev *pdev, bool *enable_wake)int retval =0 ;#endif +rtnl_lock ();netif_device_detach (netdev); -rtnl_lock ();if (netif_running (netdev))ixgbe_close_suspend (adapter); -rtnl_unlock ();ixgbe_clear_interrupt_scheme (adapter); +rtnl_unlock ();#ifdef CONFIG_PM retval =pci_save_state (pdev);
@@ -8575,7 +8574,7 @@ skip_bad_vf_detection: }if (netif_running (netdev)) -ixgbe_down (adapter); +ixgbe_close_suspend (adapter);if (!test_and_set_bit (__IXGBE_DISABLED, &adapter->state))pci_disable_device (pdev);
@@ -8645,10 +8644,12 @@ static void ixgbe_io_resume(struct pci_dev *pdev) }#endif +rtnl_lock ();if (netif_running (netdev)) -ixgbe_up (adapter); +ixgbe_open (netdev);netif_device_attach (netdev); +rtnl_unlock (); } static const struct pci_error_handlers ixgbe_err_handler = {
drivers/scsi/lpfc/lpfc_attr.c +17 -0
@@ -5136,6 +5136,19 @@ lpfc_free_sysfs_attr(struct lpfc_vport *vport)* Dynamic FC Host Attributes Support */ +/** +* lpfc_get_host_symbolic_name - Copy symbolic name into the scsi host +* @shost: kernel scsi host pointer. +**/ +static void +lpfc_get_host_symbolic_name (struct Scsi_Host *shost) +{ +struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; + +lpfc_vport_symbolic_node_name (vport,fc_host_symbolic_name (shost), +sizeof fc_host_symbolic_name (shost)); +} +/** * lpfc_get_host_port_id - Copy the vport DID into the scsi host port id * @shost: kernel scsi host pointer.
@@ -5670,6 +5683,8 @@ struct fc_function_template lpfc_transport_functions = { .show_host_supported_fc4s = 1, .show_host_supported_speeds = 1, .show_host_maxframe_size = 1, + + .get_host_symbolic_name = lpfc_get_host_symbolic_name, .show_host_symbolic_name = 1,/* dynamic attributes the driver supports */
@@ -5737,6 +5752,8 @@ struct fc_function_template lpfc_vport_transport_functions = { .show_host_supported_fc4s = 1, .show_host_supported_speeds = 1, .show_host_maxframe_size = 1, + + .get_host_symbolic_name = lpfc_get_host_symbolic_name, .show_host_symbolic_name = 1,/* dynamic attributes the driver supports */
drivers/scsi/lpfc/lpfc_sli.c +3 -0
@@ -118,6 +118,8 @@ lpfc_sli4_wq_put(struct lpfc_queue *q, union lpfc_wqe *wqe)if (q->phba->sli3_options &LPFC_SLI4_PHWQ_ENABLED )bf_set (wqe_wqid, &wqe->generic.wqe_com, q->queue_id);lpfc_sli_pcimem_bcopy (wqe, temp_wqe, q->entry_size); +/* ensure WQE bcopy flushed before doorbell write */ +wmb ();/* Update the host index before invoking device */ host_index = q->host_index;
@@ -9772,6 +9774,7 @@ lpfc_sli_abort_iotag_issue(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, iabt->ulpCommand =CMD_CLOSE_XRI_CN ; abtsiocbp->iocb_cmpl = lpfc_sli_abort_els_cmpl; + abtsiocbp->vport = vport;lpfc_printf_vlog (vport,KERN_INFO ,LOG_SLI , "0339 Abort xri x%x, original iotag x%x, "
drivers/scsi/lpfc/lpfc_vport.c +8 -0
@@ -528,6 +528,12 @@ enable_vport(struct fc_vport *fc_vport)spin_lock_irq (shost->host_lock); vport->load_flag |=FC_LOADING ; +if (vport->fc_flag &FC_VPORT_NEEDS_INIT_VPI ) { +spin_unlock_irq (shost->host_lock); +lpfc_issue_init_vpi (vport); + goto out; + } + vport->fc_flag |=FC_VPORT_NEEDS_REG_VPI ;spin_unlock_irq (shost->host_lock);
@@ -548,6 +554,8 @@ enable_vport(struct fc_vport *fc_vport) }else {lpfc_vport_set_state (vport,FC_VPORT_FAILED ); } + +out:lpfc_printf_vlog (vport,KERN_ERR ,LOG_VPORT ,"1827 Vport Enabled.\n" );return VPORT_OK ;
drivers/staging/rtl8188eu/include/rtw_debug.h +1 -1
@@ -75,7 +75,7 @@ extern u32 GlobalDebugLevel; #define DBG_88E_LEVEL(_level, fmt, arg...) \ do { \ if (_level <= GlobalDebugLevel) \ - pr_info(DRIVER_PREFIX"ERROR " fmt, ##arg); \ + pr_info(DRIVER_PREFIX fmt, ##arg); \ } while (0)#define DBG_88E (...) \
drivers/target/iscsi/iscsi_target.c +1 -0
@@ -428,6 +428,7 @@ int iscsit_reset_np_thread(return 0 ; } np->np_thread_state =ISCSI_NP_THREAD_RESET ; +atomic_inc (&np->np_reset_count);if (np->np_thread) {spin_unlock_bh (&np->np_thread_lock);
drivers/target/iscsi/iscsi_target_core.h +1 -0
@@ -783,6 +783,7 @@ struct iscsi_np {int np_sock_type;enum np_thread_state_table np_thread_state;bool enabled; +atomic_t np_reset_count;enum iscsi_timer_flags_table np_login_timer_flags;u32 np_exports;enum np_flags_table np_flags;
drivers/target/iscsi/iscsi_target_login.c +5 -2
@@ -1275,9 +1275,11 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)flush_signals (current);spin_lock_bh (&np->np_thread_lock); -if (np->np_thread_state ==ISCSI_NP_THREAD_RESET ) { +if (atomic_dec_if_positive (&np->np_reset_count) >=0 ) { np->np_thread_state =ISCSI_NP_THREAD_ACTIVE ; +spin_unlock_bh (&np->np_thread_lock);complete (&np->np_restart_comp); +return 1 ; }else if (np->np_thread_state ==ISCSI_NP_THREAD_SHUTDOWN ) {spin_unlock_bh (&np->np_thread_lock); goto exit;
@@ -1310,7 +1312,8 @@ static int __iscsi_target_login_thread(struct iscsi_np *np) goto exit; }else if (rc <0 ) {spin_lock_bh (&np->np_thread_lock); -if (np->np_thread_state ==ISCSI_NP_THREAD_RESET ) { +if (atomic_dec_if_positive (&np->np_reset_count) >=0 ) { + np->np_thread_state =ISCSI_NP_THREAD_ACTIVE ;spin_unlock_bh (&np->np_thread_lock);complete (&np->np_restart_comp);iscsit_put_transport (conn->conn_transport);
drivers/usb/core/devio.c +14 -0
@@ -1649,6 +1649,18 @@ static int proc_unlinkurb(struct usb_dev_state *ps, void __user *arg)return 0 ; } +static void compute_isochronous_actual_length (struct urb *urb) +{ +unsigned int i; + +if (urb->number_of_packets >0 ) { + urb->actual_length =0 ; +for (i =0 ; i < urb->number_of_packets; i++) + urb->actual_length += + urb->iso_frame_desc[i].actual_length; + } +} +static int processcompl (struct async *as,void __user *__user *arg) {struct urb *urb = as->urb;
@@ -1656,6 +1668,7 @@ static int processcompl(struct async *as, void __user * __user *arg)void __user *addr = as->userurb;unsigned int i; +compute_isochronous_actual_length (urb);if (as->userbuffer && urb->actual_length) {if (copy_urb_data_to_user (as->userbuffer, urb)) goto err_out;
@@ -1825,6 +1838,7 @@ static int processcompl_compat(struct async *as, void __user * __user *arg)void __user *addr = as->userurb;unsigned int i; +compute_isochronous_actual_length (urb);if (as->userbuffer && urb->actual_length) {if (copy_urb_data_to_user (as->userbuffer, urb))return -EFAULT ;
drivers/usb/core/quirks.c +3 -0
@@ -214,6 +214,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Corsair Strafe RGB */ { USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT }, + /* Corsair K70 LUX */ + { USB_DEVICE(0x1b1c, 0x1b36), .driver_info = USB_QUIRK_DELAY_INIT }, + /* MIDI keyboard WORLDE MINI */ { USB_DEVICE(0x1c75, 0x0204), .driver_info = USB_QUIRK_CONFIG_INTF_STRINGS },
drivers/usb/serial/garmin_gps.c +20 -3
@@ -138,6 +138,7 @@ struct garmin_data {__u8 privpkt[4 *6 ];spinlock_t lock;struct list_head pktlist; +struct usb_anchor write_urbs; };
@@ -906,13 +907,19 @@ static int garmin_init_session(struct usb_serial_port *port) sizeof(GARMIN_START_SESSION_REQ), 0);if (status <0 ) -break ; + goto err_kill_urbs; }if (status >0 ) status =0 ; } +return status; + +err_kill_urbs: +usb_kill_anchored_urbs (&garmin_data_p->write_urbs); +usb_kill_urb (port->interrupt_in_urb); +return status; }
@@ -931,7 +938,6 @@ static int garmin_open(struct tty_struct *tty, struct usb_serial_port *port)spin_unlock_irqrestore (&garmin_data_p->lock, flags);/* shutdown any bulk reads that might be going on */ -usb_kill_urb (port->write_urb);usb_kill_urb (port->read_urb);if (garmin_data_p->state ==STATE_RESET )
@@ -954,7 +960,7 @@ static void garmin_close(struct usb_serial_port *port)/* shutdown our urbs */ usb_kill_urb (port->read_urb); -usb_kill_urb (port->write_urb); +usb_kill_anchored_urbs (&garmin_data_p->write_urbs);/* keep reset state so we know that we must start a new session */ if (garmin_data_p->state !=STATE_RESET )
@@ -1038,12 +1044,15 @@ static int garmin_write_bulk(struct usb_serial_port *port, }/* send it down the pipe */ +usb_anchor_urb (urb, &garmin_data_p->write_urbs); status =usb_submit_urb (urb,GFP_ATOMIC );if (status) {dev_err (&port->dev,"%s - usb_submit_urb(write bulk) failed with status = %d\n" , __func__, status); count = status; +usb_unanchor_urb (urb); +kfree (buffer); }/* we are done with this urb, so let the host driver
@@ -1401,9 +1410,16 @@ static int garmin_port_probe(struct usb_serial_port *port) garmin_data_p->state =0 ; garmin_data_p->flags =0 ; garmin_data_p->count =0 ; +init_usb_anchor (&garmin_data_p->write_urbs);usb_set_serial_port_data (port, garmin_data_p); status =garmin_init_session (port); +if (status) + goto err_free; + +return 0 ; +err_free: +kfree (garmin_data_p);return status; }
@@ -1413,6 +1429,7 @@ static int garmin_port_remove(struct usb_serial_port *port) {struct garmin_data *garmin_data_p =usb_get_serial_port_data (port); +usb_kill_anchored_urbs (&garmin_data_p->write_urbs);usb_kill_urb (port->interrupt_in_urb);del_timer_sync (&garmin_data_p->timer);kfree (garmin_data_p);
drivers/usb/serial/qcserial.c +1 -0
@@ -143,6 +143,7 @@ static const struct usb_device_id id_table[] = { {DEVICE_SWI(0x114f, 0x68a2)}, /* Sierra Wireless MC7750 */ {DEVICE_SWI(0x1199, 0x68a2)}, /* Sierra Wireless MC7710 */ {DEVICE_SWI(0x1199, 0x901c)}, /* Sierra Wireless EM7700 */ + {DEVICE_SWI(0x1199, 0x901e)}, /* Sierra Wireless EM7355 QDL */ {DEVICE_SWI(0x1199, 0x901f)}, /* Sierra Wireless EM7355 */ {DEVICE_SWI(0x1199, 0x9040)}, /* Sierra Wireless Modem */ {DEVICE_SWI(0x1199, 0x9051)}, /* Netgear AirCard 340U */
drivers/video/backlight/adp5520_bl.c +10 -2
@@ -332,10 +332,18 @@ static int adp5520_bl_probe(struct platform_device *pdev) }platform_set_drvdata (pdev, bl); - ret |=adp5520_bl_setup (bl); + ret =adp5520_bl_setup (bl); +if (ret) { +dev_err (&pdev->dev,"failed to setup\n" ); +if (data->pdata->en_ambl_sens) +sysfs_remove_group (&bl->dev.kobj, + &adp5520_bl_attr_group); +return ret; + } +backlight_update_status (bl); -return ret; +return 0 ; }static int adp5520_bl_remove (struct platform_device *pdev)
drivers/video/backlight/lcd.c +2 -2
@@ -226,6 +226,8 @@ struct lcd_device *lcd_device_register(const char *name, struct device *parent,dev_set_name (&new_ld->dev,"%s" , name);dev_set_drvdata (&new_ld->dev, devdata); + new_ld->ops = ops; + rc =device_register (&new_ld->dev);if (rc) {put_device (&new_ld->dev);
@@ -238,8 +240,6 @@ struct lcd_device *lcd_device_register(const char *name, struct device *parent,return ERR_PTR (rc); } - new_ld->ops = ops; -return new_ld; }EXPORT_SYMBOL (lcd_device_register);
include/dt-bindings/pinctrl/omap.h +2 -2
@@ -45,8 +45,8 @@#define PIN_OFF_NONE 0#define PIN_OFF_OUTPUT_HIGH (OFF_EN | OFFOUT_EN | OFFOUT_VAL)#define PIN_OFF_OUTPUT_LOW (OFF_EN | OFFOUT_EN) -#define PIN_OFF_INPUT_PULLUP (OFF_EN | OFF_PULL_EN | OFF_PULL_UP) -#define PIN_OFF_INPUT_PULLDOWN (OFF_EN | OFF_PULL_EN) +#define PIN_OFF_INPUT_PULLUP (OFF_EN | OFFOUT_EN | OFF_PULL_EN | OFF_PULL_UP) +#define PIN_OFF_INPUT_PULLDOWN (OFF_EN | OFFOUT_EN | OFF_PULL_EN)#define PIN_OFF_WAKEUPENABLE WAKEUP_EN/*
include/target/iscsi/iscsi_target_core.h +1 -0
@@ -784,6 +784,7 @@ struct iscsi_np {int np_sock_type;enum np_thread_state_table np_thread_state;bool enabled; +atomic_t np_reset_count;enum iscsi_timer_flags_table np_login_timer_flags;u32 np_exports;enum np_flags_table np_flags;
include/uapi/linux/rds.h +51 -51
189 lines not on this page · raw message
sound/drivers/vx/vx_pcm.c +5 -3
@@ -1015,7 +1015,7 @@ static void vx_pcm_capture_update(struct vx_core *chip, struct snd_pcm_substreamint size, space, count;struct snd_pcm_runtime *runtime = subs->runtime; -if (! pipe->prepared || (chip->chip_status &VX_STAT_IS_STALE )) +if (!pipe->running || (chip->chip_status &VX_STAT_IS_STALE ))return ; size = runtime->buffer_size -snd_pcm_capture_avail (runtime);
@@ -1048,8 +1048,10 @@ static void vx_pcm_capture_update(struct vx_core *chip, struct snd_pcm_substream/* ok, let's accelerate! */ int align = pipe->align *3 ; space = (count / align) * align; -vx_pseudo_dma_read (chip, runtime, pipe, space); - count -= space; +if (space >0 ) { +vx_pseudo_dma_read (chip, runtime, pipe, space); + count -= space; + } }/* read the rest of bytes */ while (count >0 ) {
sound/pci/vx222/vx222_ops.c +6 -6
@@ -264,12 +264,12 @@ static void vx2_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime,/* Transfer using pseudo-dma. */ -if (offset + count > pipe->buffer_bytes) { +if (offset + count >= pipe->buffer_bytes) {int length = pipe->buffer_bytes - offset; count -= length; length >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ -while (length-- >0 ) { +for (; length >0 ; length--) {outl (cpu_to_le32 (*addr), port); addr++; }
@@ -279,7 +279,7 @@ static void vx2_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, pipe->hw_ptr += count; count >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ -while (count-- >0 ) { +for (; count >0 ; count--) {outl (cpu_to_le32 (*addr), port); addr++; }
@@ -302,12 +302,12 @@ static void vx2_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime,vx2_setup_pseudo_dma (chip,0 );/* Transfer using pseudo-dma. */ -if (offset + count > pipe->buffer_bytes) { +if (offset + count >= pipe->buffer_bytes) {int length = pipe->buffer_bytes - offset; count -= length; length >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ -while (length-- >0 ) +for (; length >0 ; length--) *addr++ =le32_to_cpu (inl (port)); addr = (u32 *)runtime->dma_area; pipe->hw_ptr =0 ;
@@ -315,7 +315,7 @@ static void vx2_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, pipe->hw_ptr += count; count >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ -while (count-- >0 ) +for (; count >0 ; count--) *addr++ =le32_to_cpu (inl (port));vx2_release_pseudo_dma (chip);
sound/pcmcia/vx/vxp_ops.c +6 -6
@@ -369,12 +369,12 @@ static void vxp_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime,unsigned short *addr = (unsigned short *)(runtime->dma_area + offset);vx_setup_pseudo_dma (chip,1 ); -if (offset + count > pipe->buffer_bytes) { +if (offset + count >= pipe->buffer_bytes) {int length = pipe->buffer_bytes - offset; count -= length; length >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ -while (length-- >0 ) { +for (; length >0 ; length--) {outw (cpu_to_le16 (*addr), port); addr++; }
@@ -384,7 +384,7 @@ static void vxp_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, pipe->hw_ptr += count; count >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ -while (count-- >0 ) { +for (; count >0 ; count--) {outw (cpu_to_le16 (*addr), port); addr++; }
@@ -411,12 +411,12 @@ static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime,if (snd_BUG_ON (count %2 ))return ;vx_setup_pseudo_dma (chip,0 ); -if (offset + count > pipe->buffer_bytes) { +if (offset + count >= pipe->buffer_bytes) {int length = pipe->buffer_bytes - offset; count -= length; length >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ -while (length-- >0 ) +for (; length >0 ; length--) *addr++ =le16_to_cpu (inw (port)); addr = (unsigned short *)runtime->dma_area; pipe->hw_ptr =0 ;
@@ -424,7 +424,7 @@ static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, pipe->hw_ptr += count; count >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ -while (count-- >1 ) +for (; count >1 ; count--) *addr++ =le16_to_cpu (inw (port));/* Disable DMA */ pchip->regDIALOG &= ~VXP_DLG_DMAREAD_SEL_MASK ;