13 Jan, 2012

2 commits

  • Similar problem as in 481a8199142c050b72bff8a1956a49fd0a75bbe0 ("can:
    fix NOHZ local_softirq_pending 08 warning"). This fix replaces
    netif_rx() with netif_rx_ni() which has to be used from
    process/softirq context.

    Signed-off-by: Manfred Rudigier
    Signed-off-by: David S. Miller

    Manfred Rudigier
     
  • Introduce function mdiobus_alloc_size() as an alternative to mdiobus_alloc().
    Most callers of mdiobus_alloc() also allocate a private data structure, and
    then manually point bus->priv to this object. mdiobus_alloc_size()
    combines the two operations into one, which simplifies memory management.

    The original mdiobus_alloc() now just calls mdiobus_alloc_size(0).

    Signed-off-by: Timur Tabi
    Signed-off-by: David S. Miller

    Timur Tabi
     

11 Jan, 2012

3 commits


04 Jan, 2012

1 commit


20 Dec, 2011

1 commit


27 Nov, 2011

2 commits


22 Nov, 2011

1 commit


17 Nov, 2011

1 commit

  • Translating between ethtool advertisement settings and MII
    advertisements are common operations for ethernet drivers. This patch
    adds a set of helper functions that implements the conversion. The
    patch then modifies a couple of the drivers to use the new functions.

    Signed-off-by: Matt Carlson
    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Matt Carlson
     

16 Nov, 2011

1 commit

  • This patch adds phy reset functionality to mdio-gpio driver. Now
    mdio_gpio_platform_data has new member as function pointer which can be
    filled at the bsp level for a callback from phy infrastructure. Also the
    mdio-bitbang driver fills-in the reset function of mii_bus structure.

    Without this patch the bsp level code has to takecare of the reseting
    PHY's on the bus, which become bit hacky for every bsp and
    phy-infrastructure is ignored aswell.

    Signed-off-by: Srinivas Kandagatla
    Signed-off-by: David S. Miller

    Srinivas Kandagatla
     

01 Nov, 2011

1 commit


25 Oct, 2011

6 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1745 commits)
    dp83640: free packet queues on remove
    dp83640: use proper function to free transmit time stamping packets
    ipv6: Do not use routes from locally generated RAs
    |PATCH net-next] tg3: add tx_dropped counter
    be2net: don't create multiple RX/TX rings in multi channel mode
    be2net: don't create multiple TXQs in BE2
    be2net: refactor VF setup/teardown code into be_vf_setup/clear()
    be2net: add vlan/rx-mode/flow-control config to be_setup()
    net_sched: cls_flow: use skb_header_pointer()
    ipv4: avoid useless call of the function check_peer_pmtu
    TCP: remove TCP_DEBUG
    net: Fix driver name for mdio-gpio.c
    ipv4: tcp: fix TOS value in ACK messages sent from TIME_WAIT
    rtnetlink: Add missing manual netlink notification in dev_change_net_namespaces
    ipv4: fix ipsec forward performance regression
    jme: fix irq storm after suspend/resume
    route: fix ICMP redirect validation
    net: hold sock reference while processing tx timestamps
    tcp: md5: add more const attributes
    Add ethtool -g support to virtio_net
    ...

    Fix up conflicts in:
    - drivers/net/Kconfig:
    The split-up generated a trivial conflict with removal of a
    stale reference to Documentation/networking/net-modules.txt.
    Remove it from the new location instead.
    - fs/sysfs/dir.c:
    Fairly nasty conflicts with the sysfs rb-tree usage, conflicting
    with Eric Biederman's changes for tagged directories.

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (59 commits)
    MAINTAINERS: linux-m32r is moderated for non-subscribers
    linux@lists.openrisc.net is moderated for non-subscribers
    Drop default from "DM365 codec select" choice
    parisc: Kconfig: cleanup Kernel page size default
    Kconfig: remove redundant CONFIG_ prefix on two symbols
    cris: remove arch/cris/arch-v32/lib/nand_init.S
    microblaze: add missing CONFIG_ prefixes
    h8300: drop puzzling Kconfig dependencies
    MAINTAINERS: microblaze-uclinux@itee.uq.edu.au is moderated for non-subscribers
    tty: drop superfluous dependency in Kconfig
    ARM: mxc: fix Kconfig typo 'i.MX51'
    Fix file references in Kconfig files
    aic7xxx: fix Kconfig references to READMEs
    Fix file references in drivers/ide/
    thinkpad_acpi: Fix printk typo 'bluestooth'
    bcmring: drop commented out line in Kconfig
    btmrvl_sdio: fix typo 'btmrvl_sdio_sd6888'
    doc: raw1394: Trivial typo fix
    CIFS: Don't free volume_info->UNC until we are entirely done with it.
    treewide: Correct spelling of successfully in comments
    ...

    Linus Torvalds
     
  • If the PHY should disappear (for example, on an USB Ethernet MAC), then
    the driver would leak any undelivered time stamp packets. This commit
    fixes the issue by calling the appropriate functions to free any packets
    left in the transmit and receive queues.

    The driver first appeared in v3.0.

    Signed-off-by: Richard Cochran
    Acked-by: Eric Dumazet
    Cc:
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • The previous commit enforces a new rule for handling the cloned packets
    for transmit time stamping. These packets must not be freed using any other
    function than skb_complete_tx_timestamp. This commit fixes the one and only
    driver using this API.

    The driver first appeared in v3.0.

    Signed-off-by: Richard Cochran
    Acked-by: Eric Dumazet
    Cc:
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • David S. Miller
     
  • Since commit
    "7488876... dt/net: Eliminate users of of_platform_{,un}register_driver"
    there are two platform drivers named "mdio-gpio" registered.
    I renamed the of variant to "mdio-ofgpio".

    Signed-off-by: Dirk Eibach
    Signed-off-by: David S. Miller

    Dirk Eibach
     

20 Oct, 2011

1 commit

  • The Vitesse driver was using the RGMII_ID interface type to determine if
    skew was necessary. However, we want to move away from using that
    interface type, as it's really a property of the board's PHY connection.
    However, some boards depend on it, so we want to support it, while
    allowing new boards to use the more flexible "fixups" approach. To do
    this, we extract the code which adds skew into its own function, and
    call that function when RGMII_ID has been selected.

    Another side-effect of this change is that if your PHY has skew set
    already, it doesn't clear it. This way, the fixup code can modify the
    register without config_init then clearing it.

    Signed-off-by: Andy Fleming
    Signed-off-by: David S. Miller

    Andy Fleming
     

19 Oct, 2011

1 commit


08 Oct, 2011

1 commit


01 Oct, 2011

2 commits


29 Sep, 2011

1 commit

  • The driver has two warning messages that might be triggered
    by normal use cases. When they appear, the messages give the
    impression of a never ending series of errors.

    This commit changes them to debug messages instead.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     

28 Sep, 2011

1 commit


27 Sep, 2011

2 commits

  • This commit adds one step support to the phyter. When enabled, the
    hardware does not provide time stamps for transmitted sync messages but
    instead inserts the stamp into the outgoing packet.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • This patch enables six external event channels and one periodic output.
    One GPIO is reserved for synchronizing multiple PHYs. The assignment
    of GPIO functions can be changed via a module parameter.

    The code supports multiple simultaneous events by inducing a PTP clock
    event for every channel marked in the PHY's extended status word.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     

22 Sep, 2011

1 commit

  • Conflicts:
    MAINTAINERS
    drivers/net/Kconfig
    drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
    drivers/net/ethernet/broadcom/tg3.c
    drivers/net/wireless/iwlwifi/iwl-pci.c
    drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c
    drivers/net/wireless/rt2x00/rt2800usb.c
    drivers/net/wireless/wl12xx/main.c

    David S. Miller
     

21 Sep, 2011

1 commit


27 Aug, 2011

2 commits

  • The is does a general cleanup of the drivers/net/ Kconfig and
    Makefile. This patch create a "core" option and places all
    the networking core drivers into this option (default is yes
    for this option). In addition, it alphabitizes the Kconfig
    driver options.

    As a side cleanup, found that the arcnet, token ring, and PHY
    Kconfig options were a tri-state option and should have been
    a bool option.

    Signed-off-by: Jeff Kirsher

    Jeff Kirsher
     
  • According to the DP83865 datasheet we need to clear
    the interrupt status bit by writing a 1 to the
    corresponding bit in INT_CLEAR (2:0 are reserved).

    Proposed and tested by Thorsten.

    Signed-off-by: Thorsten Schubert
    Signed-off-by: Giuseppe Cavallaro
    Signed-off-by: David S. Miller

    Giuseppe CAVALLARO
     

08 Aug, 2011

1 commit

  • The dp83640 buffers receive time stamps from special PHY status frames,
    matching them to received PTP packets in a work queue. Because the timeout
    for orphaned time stamps is so long and the buffer is so small, the driver
    can drop time stamps under moderate PTP traffic.

    This commit fixes the issue by decreasing the timeout to (at least) one
    timer tick and increasing the buffer size.

    Signed-off-by: Richard Cochran
    Cc:
    Signed-off-by: David S. Miller

    Richard Cochran
     

27 Jul, 2011

1 commit

  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     

21 Jun, 2011

1 commit


17 Jun, 2011

4 commits

  • Compile tested.
    remove unnecessary code that matches this coccinelle pattern
    if (...)
    return ret;
    return ret;

    Signed-off-by: Greg Dietsche
    Signed-off-by: David S. Miller

    Greg Dietsche
     
  • The dp83640 PHY provides time stamp and other information via special
    PHY status frames. Previously, the driver decoded the frames and then
    let the network stack drop them. This works fine when the PTP messages
    come over UDP.

    However, when receiving PTP messages via L2 packets, this creates a
    problem. The status frames use the official PTP destination MAC address,
    and so they are delivered to user space along with the "real" frames,
    causing confusion for applications.

    This commit fixes the issue by simply dropping the PHY status frames
    in the driver.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • If two eternal time stamp events occur at nearly the same time, the
    phyter will add an extra word into the status frame. This commit fixes
    the parsing code to recognize and skip over the extra word.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     
  • This PHY is available integrated into BCM63xx series SOCs only.

    Signed-off-by: Ralf Baechle

    drivers/net/phy/Kconfig | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)
    Acked-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Ralf Baechle
     

24 May, 2011

1 commit

  • If the dp83640 driver is not built as a module, the
    MODULE_DEVICE_TABLE reference to dp83640_tbl nops out.

    Since the table isn't referenced elsewhere, it it causes
    the following warning:
    drivers/net/phy/dp83640.c:1095: warning: ‘dp83640_tbl’ defined but not used

    This apparently is common with mdio_device_id table structures,
    and is avoided by using __maybe_unused annotation.

    Signed-off-by: John Stultz

    John Stultz