01 Mar, 2016

1 commit


29 Feb, 2016

1 commit

  • T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=03 Dev#= 5 Spd=12 MxCh= 0
    D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
    P: Vendor=04ca ProdID=3014 Rev=00.02
    C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
    I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
    I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

    BugLink: https://bugs.launchpad.net/bugs/1546694

    Signed-off-by: Dmitry Tunin
    Signed-off-by: Marcel Holtmann
    Cc: stable@vger.kernel.org

    Dmitry Tunin
     

26 Feb, 2016

1 commit

  • This patch fixes the return value in a case which should never occur.
    Instead returning "-EINVAL" we return LOWPAN_IPHC_DAM_00 which is
    invalid on context based addresses. Also change the WARN_ON_ONCE to
    WARN_ONCE which was suggested by Dan Carpenter.

    Reported-by: Dan Carpenter
    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     

24 Feb, 2016

22 commits

  • This driver implements support for iBT2.1 Bluetooth controller embedded
    in the AG620 communication combo. The controller needs to be configured
    with bddata and can be patched with a binary patch file (pbn).
    These operations are performed in manufacturing mode.

    Signed-off-by: Loic Poulain
    Signed-off-by: Marcel Holtmann

    Loic Poulain
     
  • Bool variable 'fail' is always non-negative, it indicates an error if it
    is true.

    The problem has been detected using coccinelle script
    scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci

    Signed-off-by: Andrzej Hajda
    Acked-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Andrzej Hajda
     
  • In case of multicast address we need to set always the LOWPAN_IPHC_M bit
    and if a destination context identifier was found for a multicast
    address then we need to set the LOWPAN_IPHC_DAC as well.

    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • This patch fixed the return value of netdev notifier. If the command is
    a don't care a NOTIFY_DONE should be returned. If the command matched a
    NOTIFY_OK should be returned.

    Reviewed-by: Stefan Schmidt
    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • This patch introduce support for IPHC stateful address compression. It
    will offer the context table via one debugfs entry.
    This debugfs has and directory for each cid entry for the context table.
    Inside each cid directory there exists the following files:

    - "active": If the entry is added or deleted. The context table is
    original a list implementation, this flag will indicate if the
    context is part of list or not.
    - "prefix": The ipv6 prefix.
    - "prefix_length": The prefix length for the prefix.
    - "compression": The compression flag according RFC6775.

    This part should be moved into sysfs after some testing time.

    Also the debugfs entry contains a "show" file which is a pretty-printout
    for the current context table information.

    Reviewed-by: Stefan Schmidt
    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • Destroying the workqueue before unregistering the net device caused a
    kernel oops

    Signed-off-by: Koen Zandberg
    Acked-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Koen Zandberg
     
  • This patch adds a missing reg for writeable stuff for regmap.

    Cc: Alan Ott
    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • This patch force always to set "is_tx_from_off", when calibration
    timeout was not occurred. In case of error handling the is_tx_from_off
    can be inside in an invalid state.

    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • The resource "ctx" can be still used by at86rf230_async_state_change, we
    need to free it at the complete handler of the async state change to
    avoid a use after free.

    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • I got report about that sometimes the WARN_ON occurs there which should
    never happen. I came to the conclusion that the mac header is there but
    inside the headroom of skb. The skb->len information doesn't contain the
    information about the headroom length and skb->len is lesser than two.

    We check now if the skb_mac_header pointer is set and the room between
    mac header pointer and tail pointer.

    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • This patch updates my e-mail address and other pending information for
    802.15.4 subsystem which are not correct anymore.

    Signed-off-by: Alexander Aring
    Signed-off-by: Marcel Holtmann

    Alexander Aring
     
  • When the HCI_AUTO_OFF flag is cleared, the power_off delayed work need
    to be cancel or HCI will be powered off even if it's managed.

    Signed-off-by: Wei-Ning Huang
    Signed-off-by: Marcel Holtmann

    Wei-Ning Huang
     
  • T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=02 Dev#= 3 Spd=12 MxCh= 0
    D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
    P: Vendor=0489 ProdID=e095 Rev=00.01
    C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
    I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
    I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

    This device requires ar3k/AthrBT_0x31010100.dfu and
    ar3k/ramps_0x31010100_40.dfu firmware files that are not in
    linux-firmware yet.

    BugLink: https://bugs.launchpad.net/bugs/1542944

    Signed-off-by: Dmitry Tunin
    Signed-off-by: Marcel Holtmann
    Cc: stable@vger.kernel.org

    Dmitry Tunin
     
  • If the call to request_firmware() fails in btbcm_setup_patchram(),
    the BCM chip will be operating with its default firmware.

    In this case, btbcm_setup_patchram() should not return immediately
    but instead should skip to btbcm_check_bdaddr() and quirk setup.

    Signed-off-by: Petri Gynther
    Signed-off-by: Marcel Holtmann

    Petri Gynther
     
  • Recent macbooks (early 2015) with BCM43241 use this ACPI ID. Add it to the
    list of supported devices.

    Reported-by: Leif Liddy
    Signed-off-by: Mika Westerberg
    Signed-off-by: Marcel Holtmann

    Mika Westerberg
     
  • This ACPI ID is used at least by HP for their Omni 10 5600eg tablet.

    Signed-off-by: J.J. Meijer
    Signed-off-by: Marcel Holtmann

    J.J. Meijer
     
  • T: Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
    D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
    P: Vendor=13d3 ProdID=3395 Rev=00.01
    C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
    I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
    I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

    BugLink: https://bugs.launchpad.net/bugs/1542564

    Reported-and-tested-by: Christopher Simerly
    Signed-off-by: Dmitry Tunin
    Signed-off-by: Marcel Holtmann
    Cc: stable@vger.kernel.org

    Dmitry Tunin
     
  • A return value of the intel_wait_booting() function compared with
    a constant ETIMEDOUT instead of -ETIMEDOUT.

    Signed-off-by: Anton Protopopov
    Signed-off-by: Marcel Holtmann

    Anton Protopopov
     
  • Recently a managed version of led_trigger_register was introduced.
    Using devm_led_trigger_register allows to simplify the LED trigger code.

    Signed-off-by: Heiner Kallweit
    Signed-off-by: Marcel Holtmann

    Heiner Kallweit
     
  • Fixed a coding style issue. Added a blank link after declaration.

    Signed-off-by: Bhumika Goyal
    Signed-off-by: Marcel Holtmann

    Bhumika Goyal
     
  • Add support for LED triggers to the Bluetooth subsystem and add kernel
    config symbol BT_LEDS for it.

    For now one trigger for indicating "HCI is powered up" is supported.

    Signed-off-by: Heiner Kallweit
    Signed-off-by: Marcel Holtmann

    Heiner Kallweit
     
  • We were changing return values and accidentally made
    rocker_world_port_obj_vlan_add() into a no-op.

    Fixes: fccd84d44912 ('rocker: return -EOPNOTSUPP for undefined world ops')
    Signed-off-by: Dan Carpenter
    Acked-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Dan Carpenter
     

23 Feb, 2016

7 commits

  • Conflicts:
    drivers/net/phy/bcm7xxx.c
    drivers/net/phy/marvell.c
    drivers/net/vxlan.c

    All three conflicts were cases of simple overlapping changes.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Pull networking fixes from David Miller:
    "Looks like a lot, but mostly driver fixes scattered all over as usual.

    Of note:

    1) Add conditional sched in nf conntrack in cleanup to avoid NMI
    watchdogs. From Florian Westphal.

    2) Fix deadlock in nfnetlink cttimeout, also from Floarian.

    3) Fix handling of slaves in bonding ARP monitor validation, from Jay
    Vosburgh.

    4) Callers of ip_cmsg_send() are responsible for freeing IP options,
    some were not doing so. Fix from Eric Dumazet.

    5) Fix per-cpu bugs in mvneta driver, from Gregory CLEMENT.

    6) Fix vlan handling in mv88e6xxx DSA driver, from Vivien Didelot.

    7) bcm7xxx PHY driver bug fixes from Florian Fainelli.

    8) Avoid unaligned accesses to protocol headers wrt. GRE, from
    Alexander Duyck.

    9) SKB leaks and other problems in arc_emac driver, from Alexander
    Kochetkov.

    10) tcp_v4_inbound_md5_hash() releases listener socket instead of
    request socket on error path, oops. Fix from Eric Dumazet.

    11) Missing socket release in pppoe_rcv_core() that seems to have
    existed basically forever. From Guillaume Nault.

    12) Missing slave_dev unregister in dsa_slave_create() error path,
    from Florian Fainelli.

    13) crypto_alloc_hash() never returns NULL, fix return value check in
    __tcp_alloc_md5sig_pool. From Insu Yun.

    14) Properly expire exception route entries in ipv4, from Xin Long.

    15) Fix races in tcp/dccp listener socket dismantle, from Eric
    Dumazet.

    16) Don't set IFF_TX_SKB_SHARING in vxlan, geneve, or GRE, it's not
    legal. These drivers modify the SKB on transmit. From Jiri Benc.

    17) Fix regression in the initialziation of netdev->tx_queue_len.
    From Phil Sutter.

    18) Missing unlock in tipc_nl_add_bc_link() error path, from Insu Yun.

    19) SCTP port hash sizing does not properly ensure that table is a
    power of two in size. From Neil Horman.

    20) Fix initializing of software copy of MAC address in fmvj18x_cs
    driver, from Ken Kawasaki"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (129 commits)
    bnx2x: Fix 84833 phy command handler
    bnx2x: Fix led setting for 84858 phy.
    bnx2x: Correct 84858 PHY fw version
    bnx2x: Fix 84833 RX CRC
    bnx2x: Fix link-forcing for KR2
    net: ethernet: davicom: fix devicetree irq resource
    fmvj18x_cs: fix incorrect indexing of dev->dev_addr[] when copying the MAC address
    Driver: Vmxnet3: Update Rx ring 2 max size
    net: netcp: rework the code for get/set sw_data in dma desc
    soc: ti: knav_dma: rename pad in struct knav_dma_desc to sw_data
    net: ti: netcp: restore get/set_pad_info() functionality
    MAINTAINERS: Drop myself as xen netback maintainer
    sctp: Fix port hash table size computation
    can: ems_usb: Fix possible tx overflow
    Bluetooth: hci_core: Avoid mixing up req_complete and req_complete_skb
    net: bcmgenet: Fix internal PHY link state
    af_unix: Don't use continue to re-execute unix_stream_read_generic loop
    unix_diag: fix incorrect sign extension in unix_lookup_by_ino
    bnxt_en: Failure to update PHY is not fatal condition.
    bnxt_en: Remove unnecessary call to update PHY settings.
    ...

    Linus Torvalds
     
  • …l/git/groeck/linux-staging

    Pull hwmon fixes from Guenter Roeck:
    "Two fixes headed for stable:

    - Remove an unnecessary speed_index lookup for thermal hook in the
    gpio-fan driver. The unnecessary speed lookup can hog the system.

    - Handle negative conversion values correctly in the ads1015 driver"

    * tag 'hwmon-for-linus-v4.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    hwmon: (gpio-fan) Remove un-necessary speed_index lookup for thermal hook
    hwmon: (ads1015) Handle negative conversion values correctly

    Linus Torvalds
     
  • Pull rdma fixes from Doug Ledford:
    "One ocrdma fix:

    - The new CQ API support was added to ocrdma, but they got the arming
    logic wrong, so without this, transfers eventually fail when they
    fail to arm the interrupt properly under load

    Two related fixes for mlx4:

    - When we added the 64bit extended counters support to the core IB
    code, they forgot to update the RoCE side of the mlx4 driver (the
    IB side they properly updated).

    I debated whether or not to include these patches as they could be
    considered feature enablement patches, but the existing code will
    blindy copy the 32bit counters, whether any counters were requested
    at all (a bug).

    These two patches make it (a) check to see that counters were
    requested and (b) copy the right counters (the 64bit support is
    new, the 32bit is not). For that reason I went ahead and took
    them"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma:
    IB/mlx4: Add support for the port info class for RoCE ports
    IB/mlx4: Add support for extended counters over RoCE ports
    RDMA/ocrdma: Fix arm logic to align with new cq API

    Linus Torvalds
     
  • Pull i2c fixes from Wolfram Sang:
    "Some bugfixes from I2C for you:

    A fix for a RuntimePM regression with OMAP, a fix to enable TCO for
    Lewisburg platforms, and a typo fix while we are here"

    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    i2c: i801: Adding Intel Lewisburg support for iTCO
    i2c: uniphier: fix typos in error messages
    i2c: omap: Fix PM regression with deferred probe for pm_runtime_reinit

    Linus Torvalds
     
  • We can already use yylval in the lexer for encoding the BPF extension
    number, so that the parser rules can be further reduced to a single one
    for each B/H/W case.

    Signed-off-by: Ray Bellis
    Signed-off-by: Daniel Borkmann
    Signed-off-by: David S. Miller

    Ray Bellis
     
  • While building keystone_defconfig of arm we are getting build failure
    with the error:

    drivers/net/ethernet/ti/netcp_core.c:1846:31: error: invalid type argument of '->' (have 'struct tc_to_netdev')
    if (handle != TC_H_ROOT || tc->type != TC_SETUP_MQPRIO)
    ^
    drivers/net/ethernet/ti/netcp_core.c:1851:35: error: invalid type argument of '->' (have 'struct tc_to_netdev')
    (dev->real_num_tx_queues < tc->tc))
    ^
    drivers/net/ethernet/ti/netcp_core.c:1855:8: error: invalid type argument of '->' (have 'struct tc_to_netdev')
    if (tc->tc) {
    ^
    drivers/net/ethernet/ti/netcp_core.c:1856:28: error: invalid type argument of '->' (have 'struct tc_to_netdev')
    netdev_set_num_tc(dev, tc->tc);
    ^
    drivers/net/ethernet/ti/netcp_core.c:1857:21: error: invalid type argument of '->' (have 'struct tc_to_netdev')
    for (i = 0; i < tc->tc; i++)
    ^
    drivers/net/ethernet/ti/netcp_core.c: At top level:
    drivers/net/ethernet/ti/netcp_core.c:1879:2: warning: initialization from incompatible pointer type
    .ndo_setup_tc = netcp_setup_tc,
    ^

    The callback of ndo_setup_tc should be:
    int (*ndo_setup_tc)(struct net_device *dev, u32 handle, __be16 protocol,
    struct tc_to_netdev *tc);

    But we missed marking the last argument as a pointer.

    Fixes: 16e5cc647173 ("net: rework setup_tc ndo op to consume general tc operand")
    CC: John Fastabend
    Signed-off-by: Sudip Mukherjee
    Signed-off-by: David S. Miller

    Sudip Mukherjee
     

22 Feb, 2016

8 commits