24 Nov, 2011

9 commits

  • * git://github.com/rustyrussell/linux:
    virtio-pci: make reset operation safer
    virtio-mmio: Correct the name of the guest features selector
    virtio: add HAS_IOMEM dependency to MMIO platform bus driver

    Linus Torvalds
     
  • virtio pci device reset actually just does an I/O
    write, which in PCI is really posted, that is it
    can complete on CPU before the device has received it.

    Further, interrupts might have been pending on
    another CPU, so device callback might get invoked after reset.

    This conflicts with how drivers use reset, which is typically:
    reset
    unregister
    a callback running after reset completed can race with
    unregister, potentially leading to use after free bugs.

    Fix by flushing out the write, and flushing pending interrupts.

    This assumes that device is never reset from
    its vq/config callbacks, or in parallel with being
    added/removed, document this assumption.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Rusty Russell

    Michael S. Tsirkin
     
  • Guest features selector spelling mistake.

    Cc: Pawel Moll
    Cc: Rusty Russell
    Cc: virtualization@lists.linux-foundation.org
    Signed-off-by: Sasha Levin
    Signed-off-by: Rusty Russell

    Sasha Levin
     
  • Fix this compile error on s390:

    CC [M] drivers/virtio/virtio_mmio.o
    drivers/virtio/virtio_mmio.c: In function 'vm_get_features':
    drivers/virtio/virtio_mmio.c:107:2: error: implicit declaration of function 'writel'

    Cc: Christian Borntraeger
    Signed-off-by: Heiko Carstens
    Acked-by: Pawel Moll
    Signed-off-by: Rusty Russell

    Heiko Carstens
     
  • * 'upstream-linus' of git://github.com/jgarzik/libata-dev:
    libata: fix build without BMDMA
    [libata] ahci_platform: fix DT probing

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci:
    PCI hotplug: shpchp: don't blindly claim non-AMD 0x7450 device IDs
    PCI: pciehp: wait 100 ms after Link Training check
    PCI: pciehp: wait 1000 ms before Link Training check
    PCI: pciehp: Retrieve link speed after link is trained
    PCI: Let PCI_PRI depend on PCI
    PCI: Fix compile errors with PCI_ATS and !PCI_IOV
    PCI / ACPI: Make acpiphp ignore root bridges using PCIe native hotplug

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    i2c: Make i2cdev_notifier_call static
    i2c: Delete ANY_I2C_BUS
    i2c: Fix device name for 10-bit slave address
    i2c-algo-bit: Generate correct i2c address sequence for 10-bit target

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
    regulator: TPS65910: Fix VDD1/2 voltage selector count

    Linus Torvalds
     
  • * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux: (31 commits)
    drm: integer overflow in drm_mode_dirtyfb_ioctl()
    drivers/gpu/vga/vgaarb.c: add missing kfree
    drm/radeon/kms/atom: unify i2c gpio table handling
    drm/radeon/kms: fix up gpio i2c mask bits for r4xx for real
    ttm: Don't return the bo reserved on error path
    drm/radeon/kms: add a CS ioctl flag not to rewrite tiling flags in the CS
    drm/i915: Fix inconsistent backlight level during disabled
    drm, i915: Fix memory leak in i915_gem_busy_ioctl().
    drm/i915: Use DPCD value for max DP lanes.
    drm/i915: Initiate DP link training only on the lanes we'll be using
    drm/i915: Remove trailing white space
    drm/i915: Try harder during dp pattern 1 link training
    drm/i915: Make DP prepare/commit consistent with DP dpms
    drm/i915: Let panel power sequencing hardware do its job
    drm/i915: Treat PCH eDP like DP in most places
    drm/i915: Remove link_status field from intel_dp structure
    drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_control
    drm/i915: Module parameters using '-1' as default must be signed type
    drm/i915: Turn on another required clock gating bit on gen6.
    drm/i915: Turn on a required 3D clock gating bit on Sandybridge.
    ...

    Linus Torvalds
     

23 Nov, 2011

14 commits

  • Count of selector voltage is required for regulator_set_voltage
    to work via set_voltage_sel. VDD1/2 currently have it as zero,
    so regulator_set_voltage won't work for VDD1/2.
    Update count (n_voltages) for VDD1/2.

    Output Voltage = (step value * 12.5 mV + 562.5 mV) * gain

    With above expr, number of voltages that can be selected is
    step value count * gain count

    constant for gain count will be called VDD1_2_NUM_VOLT_COARSE

    existing constant for step value count is VDD1_2_NUM_VOLTS,
    use VDD1_2_NUM_VOLT_FINE instead to make clear that step value
    is not the only component in deciding selectable voltage count

    Signed-off-by: Afzal Mohammed
    Signed-off-by: Mark Brown

    Afzal Mohammed
     
  • The function i2cdev_notifier_call is used only in i2c-dev file
    making it static.
    Also removes the following sparse warning

    drivers/i2c/i2c-dev.c:582:5: warning: symbol 'i2cdev_notifier_call'
    was not declared. Should it be static?

    Signed-off-by: Shubhrajyoti D
    Signed-off-by: Jean Delvare

    Shubhrajyoti D
     
  • 10-bit addresses overlap with traditional 7-bit addresses, leading in
    device name collisions. Add an arbitrary offset to 10-bit addresses to
    prevent this collision. The offset was chosen so that the address is
    still easily recognizable.

    Signed-off-by: Jean Delvare
    Acked-by: Wolfram Sang

    Jean Delvare
     
  • The wrong bits were put on the wire, fix that.

    This fixes kernel bug #42562.

    Signed-off-by: Sheng-Hui J. Chu
    Cc: stable@kernel.org
    Signed-off-by: Jean Delvare

    Jeffrey (Sheng-Hui) Chu
     
  • There is a potential integer overflow in drm_mode_dirtyfb_ioctl()
    if userspace passes in a large num_clips. The call to kmalloc would
    allocate a small buffer, and the call to fb->funcs->dirty may result
    in a memory corruption.

    Reported-by: Haogang Chen
    Signed-off-by: Xi Wang
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie

    Xi Wang
     
  • This reverts commit dc9372808412edbc653a675a526c2ee6c0c14a91.

    As requested by Ben Herrenschmidt:
    "This breaks some powerpc platforms at least. The practice of having
    a node provide an explicit "interrupt-parent" property pointing to
    itself is an old trick that we've used in the past to allow a
    device-node to have interrupts routed to different controllers.

    In that case, the node also contains an interrupt-map, so the node is
    its own parent, the interrupt resolution hits the map, which then can
    route each individual interrupt to a different parent."

    Grant says:
    "Ah, nuts, yes that is broken then. Yes, please revert the commit and
    Rob & I will come up with a better solution.

    Rob, I think it can be done by explicitly checking for np ==
    desc->interrupt_parent in of_irq_init() instead of relying on
    of_irq_find_parent() returning NULL."

    Requested-by: Benjamin Herrenschmidt
    Acked-by: Grant Likely
    Cc: Rob Herring
    Cc: devicetree-discuss@lists.ozlabs.org
    Cc: linuxppc-dev
    Cc: Tanmay Inamdar
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    mount_subtree() pointless use-after-free
    iio: fix a leak due to improper use of anon_inode_getfd()
    microblaze: bury asm/namei.h

    Linus Torvalds
     
  • kbuf is a buffer that is local to this function, so all of the error paths
    leaving the function should release it.

    Signed-off-by: Julia Lawall
    Cc: Jesper Juhl
    Signed-off-by: Andrew Morton
    Signed-off-by: Dave Airlie

    Julia Lawall
     
  • Split the quirks and i2c_rec assignment into separate
    functions used by both radeon_lookup_i2c_gpio() and
    radeon_atombios_i2c_init(). This avoids duplicating code
    and cases where quirks were only added to one of the
    functions.

    Signed-off-by: Alex Deucher
    Cc: Jean Delvare
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • Fixes i2c test failures when i2c_algo_bit.bit_test=1.

    The hw doesn't actually require a mask, so just set it
    to the default mask bits for r1xx-r4xx radeon ddc.

    I missed this part the first time through.

    Signed-off-by: Alex Deucher
    Cc: stable@kernel.org
    Cc: Jean Delvare
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • An unlikely race could case a bo to be returned reserved on an error path.

    Signed-off-by: Thomas Hellstrom
    Reviewed-by: Jerome Glisse
    Signed-off-by: Dave Airlie

    Thomas Hellstrom
     
  • * 'drm-intel-fixes' of git://people.freedesktop.org/~keithp/linux: (25 commits)
    drm/i915: Fix inconsistent backlight level during disabled
    drm, i915: Fix memory leak in i915_gem_busy_ioctl().
    drm/i915: Use DPCD value for max DP lanes.
    drm/i915: Initiate DP link training only on the lanes we'll be using
    drm/i915: Remove trailing white space
    drm/i915: Try harder during dp pattern 1 link training
    drm/i915: Make DP prepare/commit consistent with DP dpms
    drm/i915: Let panel power sequencing hardware do its job
    drm/i915: Treat PCH eDP like DP in most places
    drm/i915: Remove link_status field from intel_dp structure
    drm/i915: Move common PCH_PP_CONTROL setup to ironlake_get_pp_control
    drm/i915: Module parameters using '-1' as default must be signed type
    drm/i915: Turn on another required clock gating bit on gen6.
    drm/i915: Turn on a required 3D clock gating bit on Sandybridge.
    drm/i915: enable cacheable objects on Ivybridge
    drm/i915: add constants to size fence arrays and fields
    drm/i915: Ivybridge still has fences!
    drm/i915: forcewake warning fixes in debugfs
    drm/i915: Fix object refcount leak on mmappable size limit error path.
    drm/i915: Use mode_config.mutex in ironlake_panel_vdd_work
    ...

    Dave Airlie
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: ams_delta_serio - include linux/module.h
    Input: elantech - adjust hw_version detection logic
    Input: i8042 - add HP Pavilion dv4s to 'notimeout' and 'nomux' blacklists

    Linus Torvalds
     
  • * git://www.linux-watchdog.org/linux-watchdog:
    watchdog: fix initialisation printout in s3c2410_wdt
    watchdog: Don't overwrite error value in wm831x_wdt_set_timeout()
    watchdog: adx_wdt.c: remove driver

    Linus Torvalds
     

22 Nov, 2011

6 commits

  • * 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    staging: fix more ET131X build errors
    staging: et131x depends on NET
    staging: slicoss depends on NET
    linux-next: et131x: Fix build error when CONFIG_PM_SLEEP not enabled

    Linus Torvalds
     
  • * 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (48 commits)
    USB: Fix Corruption issue in USB ftdi driver ftdi_sio.c
    USB: option: add PID of Huawei E173s 3G modem
    OHCI: final fix for NVIDIA problems (I hope)
    USB: option: release new PID for ZTE 3G modem
    usb: Netlogic: Fix HC_LENGTH call in ehci-xls.c
    USB: storage: ene_ub6250: fix compile warnings
    USB: option: add id for 3G dongle Model VT1000 of Viettel
    USB: serial: pl2303: rm duplicate id
    USB: pch_udc: Change company name OKI SEMICONDUCTOR to LAPIS Semiconductor
    USB: pch_udc: Support new device LAPIS Semiconductor ML7831 IOH
    usb-storage: Accept 8020i-protocol commands longer than 12 bytes
    USB: quirks: adding more quirky webcams to avoid squeaky audio
    powerpc/usb: fix type cast for address of ioremap to compatible with 64-bit
    USB: at91: at91-ohci: fix set/get power
    USB: cdc-acm: Fix disconnect() vs close() race
    USB: add quirk for Logitech C600 web cam
    USB: EHCI: fix HUB TT scheduling issue with iso transfer
    USB: XHCI: resume root hubs when the controller resumes
    USB: workaround for bug in old version of GCC
    USB: ark3116 initialisation fix
    ...

    Linus Torvalds
     
  • * 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    TTY: ldisc, wait for ldisc infinitely in hangup
    TTY: ldisc, move wait idle to caller
    TTY: ldisc, allow waiting for ldisc arbitrarily long
    Revert "tty/serial: Prevent drop of DCD on suspend for Tegra UARTs"
    RS485: fix inconsistencies in the meaning of some variables
    pch_uart: Fix DMA resource leak issue
    serial,mfd: Fix CMSPAR setup
    tty/serial: Prevent drop of DCD on suspend for Tegra UARTs
    pch_uart: Change company name OKI SEMICONDUCTOR to LAPIS Semiconductor
    pch_uart: Support new device LAPIS Semiconductor ML7831 IOH
    pch_uart: Fix hw-flow control issue
    tty: hvc_dcc: Fix duplicate character inputs
    jsm: Change maintainership

    Linus Torvalds
     
  • * 'driver-core-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    drivers/base/node.c: fix compilation error with older versions of gcc
    uio: documentation fixups
    device.h: Fix struct member documentation

    Linus Torvalds
     
  • * 'char-misc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    misc: ad525x_dpot: Fix AD8400 spi transfer size.
    pch_phub: Fix MAC address writing issue for LAPIS ML7831
    pch_phub: Improve ADE(Address Decode Enable) control
    pch_phub: Change company name OKI SEMICONDUCTOR to LAPIS Semiconductor
    pch_phub: Support new device LAPIS Semiconductor ML7831 IOH
    pcie-gadget-spear: Add "platform:" prefix for platform modalias
    MAINTAINERS: add CHAR and MISC driver maintainers

    Linus Torvalds
     
  • it can fail and in that case ->release() will *not* be called...

    Signed-off-by: Al Viro

    Al Viro
     

21 Nov, 2011

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (86 commits)
    ipv4: fix redirect handling
    ping: dont increment ICMP_MIB_INERRORS
    sky2: fix hang in napi_disable
    sky2: enforce minimum ring size
    bonding: Don't allow mode change via sysfs with slaves present
    f_phonet: fix page offset of first received fragment
    stmmac: fix pm functions avoiding sleep on spinlock
    stmmac: remove spin_lock in stmmac_ioctl.
    stmmac: parameters auto-tuning through HW cap reg
    stmmac: fix advertising 1000Base capabilties for non GMII iface
    stmmac: use mdelay on timeout of sw reset
    sky2: version 1.30
    sky2: used fixed RSS key
    sky2: reduce default Tx ring size
    sky2: rename up/down functions
    sky2: pci posting issues
    sky2: fix hang on shutdown (and other irq issues)
    r6040: fix check against MCRO_HASHEN bit in r6040_multicast_list
    MAINTAINERS: change email address for shemminger
    pch_gbe: Move #include of module.h
    ...

    Linus Torvalds
     
  • * 'fixes' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm:
    ARM: wire up process_vm_writev and process_vm_readv syscalls
    ARM: 7160/1: setup: avoid overflowing {elf,arch}_name from proc_info_list
    ARM: 7158/1: add new MFP implement for NUC900
    ARM: 7157/1: fix a building WARNING for nuc900
    ARM: 7156/1: l2x0: fix compile error on !CONFIG_USE_OF
    ARM: 7155/1: arch.h: Declare 'pt_regs' locally
    ARM: 7154/1: mach-bcmring: fix build error in dma.c
    ARM: 7153/1: mach-bcmring: fix build error in core.c
    ARM: 7152/1: distclean: Remove generated .dtb files
    ARM: 7150/1: Allow kernel unaligned accesses on ARMv6+ processors
    ARM: 7149/1: spi/pl022: Enable clock in probe
    Revert "ARM: 7098/1: kdump: copy kernel relocation code at the kexec prepare stage"

    Linus Torvalds
     
  • * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    PM / Suspend: Fix bug in suspend statistics update
    PM / Hibernate: Fix the early termination of test modes
    PM / shmobile: Fix build of sh7372_pm_init() for CONFIG_PM unset
    PM Sleep: Do not extend wakeup paths to devices with ignore_children set
    PM / driver core: disable device's runtime PM during shutdown
    PM / devfreq: correct Kconfig dependency
    PM / devfreq: fix use after free in devfreq_remove_device
    PM / shmobile: Avoid restoring the INTCS state during initialization
    PM / devfreq: Remove compiler error after irq.h update
    PM / QoS: Properly use the WARN() macro in dev_pm_qos_add_request()
    PM / Clocks: Only disable enabled clocks in pm_clk_suspend()
    ARM: mach-shmobile: sh7372 A3SP no_suspend_console fix
    PM / shmobile: Don't skip debugging output in pd_power_up()

    Linus Torvalds
     

20 Nov, 2011

2 commits

  • This adds a new optional chunk to the CS ioctl that specifies optional flags
    to the CS parser. Why this is useful is explained below. Note that some regs
    no longer need the NOP relocation packet if this feature is enabled.
    Tested on r300g and r600g with this flag disabled and enabled.

    Assume there are two contexts sharing the same mipmapped tiled texture.
    One context wants to render into the first mipmap and the other one
    wants to render into the last mipmap. As you probably know, the hardware
    has a MACRO_SWITCH feature, which turns off macro tiling for small mipmaps,
    but that only applies to samplers.
    (at least on r300-r500, though later hardware likely behaves the same)

    So we want to just re-set the tiling flags before rendering (writing
    packets), right? ... No. The contexts run in parallel, so they may
    set the tiling flags simultaneously and then fire their command streams
    also simultaneously. The last one setting the flags wins, the other one
    loses.

    Another problem is when one context wants to render into the first and
    the last mipmap in one CS. Impossible. It must flush before changing
    tiling flags and do the rendering into the smaller mipmaps in another CS.

    Yet another problem is that writing copy_blit in userspace would be a mess
    involving re-setting tiling flags to please the kernel, and causing races
    with other contexts at the same time.

    The only way out of this is to send tiling flags with each CS, ideally
    with each relocation. But we already do that through the registers.
    So let's just use what we have in the registers.

    Signed-off-by: Marek Olšák
    Signed-off-by: Dave Airlie

    Marek Olšák
     
  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    hwmon: (exynos4_tmu) Fix Kconfig dependency

    [ Merging code in-flight, just because I can. What timezone should I
    use? - Linus ]

    Linus Torvalds
     

19 Nov, 2011

6 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
    cy82c693: fix PCI device selection
    icside: DMA support fix
    IDE: Don't powerdown Compaq Triflex IDE device on suspend
    piix: ICH7 MWDMA1 errata

    Linus Torvalds
     
  • ET131X is a network device, so it should depend on
    NETDEVICES. (This part won't be needed when the driver
    moves to drivers/net/.) It also uses PHYLIB interfaces,
    so it should select PHYLIB. Fixes these build errors:

    ERROR: "phy_connect" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_find_first" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_register" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_alloc" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_stop" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_start" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_free" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_unregister" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_print_status" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_gset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_sset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_mii_ioctl" [drivers/staging/et131x/et131x.ko] undefined!

    Signed-off-by: Randy Dunlap
    Acked-by: : Mark Einon
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • ET131X uses netdev interfaces so it should depend on NET.

    Fixes these build errors:
    ERROR: "ethtool_op_get_link" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "eth_validate_addr" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "register_netdev" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_connect" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_find_first" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_register" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_alloc" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "alloc_etherdev_mqs" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "netif_device_detach" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_stop" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "netif_device_attach" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_start" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "free_netdev" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_free" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "mdiobus_unregister" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "unregister_netdev" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "__netif_schedule" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_print_status" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "dev_kfree_skb_any" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "dev_alloc_skb" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "netif_rx" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "eth_type_trans" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "skb_put" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_gset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_ethtool_sset" [drivers/staging/et131x/et131x.ko] undefined!
    ERROR: "phy_mii_ioctl" [drivers/staging/et131x/et131x.ko] undefined!

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • The slicoss driver uses network interfaces so it should depend
    on NET. Fixes the following build errors:

    ERROR: "eth_change_mtu" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "eth_validate_addr" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "register_netdev" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "alloc_etherdev_mqs" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "__netif_schedule" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "netif_rx" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "eth_type_trans" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "skb_put" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "skb_pull" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "__alloc_skb" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "free_netdev" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "unregister_netdev" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "consume_skb" [drivers/staging/slicoss/slicoss.ko] undefined!
    ERROR: "dev_kfree_skb_irq" [drivers/staging/slicoss/slicoss.ko] undefined!

    Signed-off-by: Randy Dunlap
    Cc: Lior Dotan
    Cc: Christopher Harrer
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Randy Dunlap reports that the ex131x driver doesn't build when CONFIG_PM_SLEEP is not enabled.
    This bug was introduced when moving code around to remove some forward declarations earlier, the #endif part of #ifdef CONFIG_PM_SLEEP was not moved at the same time. Now fixed by moving it to its proper place.

    Reported-by: Randy Dunlap
    Signed-off-by: Mark Einon
    Acked-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Mark Einon
     
  • Fix for ftdi_set_termios() glitching output

    ftdi_set_termios() is constantly setting the baud rate, data bits and parity
    unnecessarily on every call, . When called while characters are being
    transmitted can cause the FTDI chip to corrupt the serial port bit stream
    output by stalling the output half a bit during the output of a character.
    Simple fix by skipping this setting if the baud rate/data bits/parity are
    unchanged.

    Signed-off-by: Andrew Worsley
    Cc: stable
    ----

    I had a brief run with strace on the getty and it was doing ioctl()s on
    each call but it didn't look relavant to the problem. I think the issue is
    that XON/XOFF flow control was being implmented via hardware - for the ixoff
    to allow the user to use XON/XOFF to control output. Unfortunately it would
    send 3 Control URBs updating all of the settings after each piece of input

    I am trying to work around the issue of gmail messing with the tab/spacing
    by submitting via SMTP via gmail which I believe should fix the issue.

    The patch is against v3.2-rc2 and compiles - but no additional testing in
    this kernel has been done.

    Thanks

    Andrew
    Signed-off-by: Greg Kroah-Hartman

    Andrew Worsley