26 Feb, 2010

1 commit

  • * 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: (41 commits)
    of: remove undefined request_OF_resource & release_OF_resource
    of/sparc: Remove sparc-local declaration of allnodes and devtree_lock
    of: move definition of of_chosen into common code.
    of: remove unused extern reference to devtree_lock
    of: put default string compare and #a/s-cell values into common header
    of/flattree: Don't assume HAVE_LMB
    of: protect linux/of.h with CONFIG_OF
    proc_devtree: fix THIS_MODULE without module.h
    of: Remove old and misplaced function declarations
    of/flattree: Make the kernel accept ePAPR style phandle information
    of/flattree: endian-convert members of boot_param_header
    of: assume big-endian properties, adding conversions where necessary
    of: use __be32 for cell value accessors
    of/flattree: use OF_ROOT_NODE_{SIZE,ADDR}_CELLS DEFAULT for fdt parsing
    of/flattree: use callback to setup initrd from /chosen
    proc_devtree: include linux/of.h
    of: make set_node_proc_entry private to proc_devtree.c
    of: include linux/proc_fs.h
    of/flattree: merge early_init_dt_scan_memory() common code
    of: add 'of_' prefix to machine_is_compatible()
    ...

    Linus Torvalds
     

23 Feb, 2010

6 commits


20 Feb, 2010

3 commits

  • The temperature and voltage limits currently set on these boards are
    too conservative and will cause the driver to stop the net device
    erroneously in some systems.

    Based on a review of the chip datasheets and advice from the designer
    of these boards:

    - Raise the maximum board temperatures to the specified maximum ambient
    temperatures for their PHYs plus the expected temperature bias of the
    board
    - Raise the maximum controller temperature to 90 degrees
    - Lower the minimum temperatures to 0 degrees
    - Widen the voltage tolerances to at least +/- 10%

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Ben Hutchings
     
  • efx_mcdi_poll() uses positive error numbers, matching the MCDI
    protocol. It must negate the result of efx_mcdi_poll_reboot() which
    returns the usual negative error numbers.

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Ben Hutchings
     
  • The HT extension channel settings require priv->staging_rxon.channel to be
    accurate. However, iwl_set_rxon_ht was being called before iwl_set_rxon_channel
    and thus HT40 could be broken unless another call to iwl_mac_config came in.

    This problem was recently introduced by "iwlwifi: Fix to set correct ht
    configuration"

    The particular setting in which I noticed this was monitor mode:

    iwconfig wlan0 mode monitor
    ifconfig wlan0 up
    ./iw wlan0 set channel 64 HT40-
    #./iw wlan0 set channel 64 HT40-
    tcpdump -i wlan0 -y IEEE802_11_RADIO

    would only catch HT40 packets if I issued the IW command twice.

    From visual inspection, iwl_set_rxon_channel does not depend on
    iwl_set_rxon_ht, so simply swapping them should be safe and fixes this problem.

    Signed-off-by: Daniel Halperin
    Acked-by: Wey-Yi Guy
    Signed-off-by: Reinette Chatre
    CC: stable@kernel.org
    Signed-off-by: John W. Linville

    Dan Halperin
     

17 Feb, 2010

1 commit


16 Feb, 2010

2 commits


15 Feb, 2010

1 commit


13 Feb, 2010

2 commits

  • From: Steve Hodgson

    Commit 357d46a17e54c9a87e0e6ef3930ff4ab2d232b81 "sfc: QT202x: Remove
    unreliable MMD check at initialisation" broke initialisation of the
    SFE4002. efx_mdio_reset_mmd() returns a positive value rather than 0
    on success. The above commit causes this value to be propagated up
    by qt202x_reset_phy(), which is treated as a failure by its callers.
    Change qt202x_reset_phy() to return 0 if successful.

    The PCI layer treats >0 as "fail, but please call remove() anyway",
    which means that unloading the driver would cause a crash. Add a
    WARN_ON() on the failure path of efx_pci_probe() to provide early
    warning if there are any other cases where we do this.

    Signed-off-by: Ben Hutchings
    Signed-off-by: David S. Miller

    Steve Hodgson
     
  • Previous patch "use paged Rx" broke AMSDU Rx functionality. If an AP
    sends out A-MSDU packets the station will crash. Fix it by linearizing
    skbuff for AMSDU packet before handing it to mac80211 since mac80211
    doesn't support paged skbuff.

    This fixes http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2155

    Reported-by: Norbert Preining
    Signed-off-by: Shanyu Zhao
    Acked-by: Zhu Yi
    Signed-off-by: Reinette Chatre
    Signed-off-by: John W. Linville

    Shanyu Zhao
     

11 Feb, 2010

5 commits


10 Feb, 2010

2 commits


09 Feb, 2010

4 commits

  • machine is compatible is an OF-specific call. It should have
    the of_ prefix to protect the global namespace.

    Signed-off-by: Grant Likely
    Acked-by: Michal Simek

    Grant Likely
     
  • Test the value that was just allocated rather than the previously tested one.

    A simplified version of the semantic match that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @r@
    expression *x;
    expression e;
    identifier l;
    @@

    if (x == NULL || ...) {
    ... when forall
    return ...; }
    ... when != goto l;
    when != x = e
    when != &x
    *x == NULL
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: David S. Miller

    Julia Lawall
     
  • Verify the HW checksum state for frames handed to GRO processing.

    Signed-off-by: Divy Le Ray
    Signed-off-by: David S. Miller

    Divy Le Ray
     
  • iwl_set_rxon_ht() only get called in iwl_post_associate(); which cause
    possible incorrect ht configuration. Adding the call in iwl_mac_config() if
    IEEE80211_CONF_CHANGE_CHANNEL flag is set to re-configure and send rxon
    command.

    Fixes
    http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2146

    Signed-off-by: Wey-Yi Guy
    Signed-off-by: Reinette Chatre
    CC: stable@kernel.org
    Signed-off-by: John W. Linville

    Wey-Yi Guy
     

05 Feb, 2010

1 commit

  • This change corrects an issue that will cause false hangs when using either
    82575 or 82580 in legacy interrupt mode. The issue is caused when there is
    a slow traffic flow and an "ethtool -r" is executed while using legacy or
    MSI interrupts. MSI-X is not affected by this issue due to the fact that
    we were already reconfiguring the vectors after reset.

    If possible it would be best to push this for net-2.6 since it is resolving
    a bug but if that is not possible then net-next-2.6 will be fine.

    Signed-off-by: Alexander Duyck
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Alexander Duyck
     

04 Feb, 2010

6 commits

  • a developer had complained of getting lots of warnings:

    "eth16 selects TX queue 98, but real number of TX queues is 64"

    http://www.mail-archive.com/e1000-devel@lists.sourceforge.net/msg02200.html

    As there was no follow up on that bug, I am submitting this
    patch assuming that the other return points will not return
    invalid txq's, and also that this fixes the bug (not tested).

    Signed-off-by: Krishna Kumar
    Signed-off-by: Jesse Brandeburg
    Acked-by: Peter P Waskiewicz Jr
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Krishna Kumar
     
  • Commit e5a43549f7a58509a91b299a51337d386697b92c (ixgbe: remove
    skb_dma_map/unmap calls from driver) looks to have introduced a bug in
    ixgbe_tx_map. If we get an error from a PCI DMA call, we loop backwards
    through count until it becomes -1 and return that.

    The caller of ixgbe_tx_map expects 0 on error, so return that instead.

    Signed-off-by: Anton Blanchard
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Anton Blanchard
     
  • o context resources can be in used, while resource cleanup is in progress,
    during fw recover.
    o Null pointer execption can occur in send_cmd_desc, if fw recovery
    module frees tx ring without rtnl lock.
    o Same applies to ethtool register dump.

    Signed-off-by: Amit Kumar Salecha
    Signed-off-by: David S. Miller

    Amit Kumar Salecha
     
  • For NX2031, first try to scrub interrupt before requesting firmware
    reset. Return statement was missing after scrubbbing interrupt.

    Signed-off-by: Vernon Mauery
    Signed-off-by: Amit Kumar Salecha
    Signed-off-by: David S. Miller

    Amit Kumar Salecha
     
  • The book keeping structure for transmit always had the flags value
    cleared so transmit DMA maps were never released correctly.
    Based on patch by Jarek Poplawski, problem observed by Michael Breuer.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    stephen hemminger
     
  • Commit c7ab5ef9bcd281135c21b4732c9be779585181be entitled "b43: implement
    short slot and basic rate handling" reduced the transmit throughput for
    my BCM4311 device from 18 Mb/s to 0.7 Mb/s. The basic rate handling
    portion is OK, the problem is in the short slot handling.

    Prior to this change, the short slot enable/disable routines were never
    called. Experimentation showed that the critical part was changing the
    value at offset 0x0010 in the shared memory. This is supposed to contain
    the 802.11 Slot Time in usec, but if it is changed from its initial value
    of zero, performance is destroyed. On the other hand, changing the value
    in the MMIO register corresponding to the Interframe Slot Time increased
    performance from 18 to 22 Mb/s. A BCM4306/3 also shows dramatic
    improvement of the transmit rate from 5.3 to 19.0 Mb/s.

    Other changes in the patch include removal of the magic number for the
    MMIO register, and allowing the slot time to be set for any PHY operating
    in the 2.4 GHz band. Previously, the routine was executed only for G PHYs.

    Signed-off-by: Larry Finger
    Cc: Stable [Any stable version back through 2.6.28]
    Signed-off-by: John W. Linville

    Larry Finger
     

02 Feb, 2010

1 commit


29 Jan, 2010

2 commits

  • Commit 37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71 ("usbnet: Set link down
    initially for drivers that update link state") changed the initial link
    state in cdc_ether and other drivers based on the understanding that the
    devices they support generate link change interrupts. However, this is
    optional in the CDC Ethernet protocol, and two users have reported in
    that the link state
    for their devices remains down. Therefore, revert the change in
    cdc_ether.

    Signed-off-by: Ben Hutchings
    Tested-by: Avi Rozen
    Signed-off-by: David S. Miller

    Ben Hutchings
     
  • Noticed by Ben Hutchings.

    Signed-off-by: David S. Miller

    David S. Miller
     

28 Jan, 2010

3 commits