<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/net, branch v3.11.2</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.11.2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.11.2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2013-09-27T00:21:45Z</updated>
<entry>
<title>net: mvneta: properly disable HW PHY polling and ensure adjust_link() works</title>
<updated>2013-09-27T00:21:45Z</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2013-09-04T14:21:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5025e680a6cb1a1b61852ba1ae26a3049085d2f0'/>
<id>urn:sha1:5025e680a6cb1a1b61852ba1ae26a3049085d2f0</id>
<content type='text'>
commit 714086029116b6b0a34e67ba1dd2f0d1cf26770c upstream.

This commit fixes a long-standing bug that has been reported by many
users: on some Armada 370 platforms, only the network interface that
has been used in U-Boot to tftp the kernel works properly in
Linux. The other network interfaces can see a 'link up', but are
unable to transmit data. The reports were generally made on the Armada
370-based Mirabox, but have also been given on the Armada 370-RD
board.

The network MAC in the Armada 370/XP (supported by the mvneta driver
in Linux) has a functionality that allows it to continuously poll the
PHY and directly update the MAC configuration accordingly (speed,
duplex, etc.). The very first versions of the driver submitted for
review were using this hardware mechanism, but due to this, the driver
was not integrated with the kernel phylib. Following reviews, the
driver was changed to use the phylib, and therefore a software based
polling. In software based polling, Linux regularly talks to the PHY
over the MDIO bus, and sees if the link status has changed. If it's
the case then the adjust_link() callback of the driver is called to
update the MAC configuration accordingly.

However, it turns out that the adjust_link() callback was not
configuring the hardware in a completely correct way: while it was
setting the speed and duplex bits correctly, it wasn't telling the
hardware to actually take into account those bits rather than what the
hardware-based PHY polling mechanism has concluded. So, in fact the
adjust_link() callback was basically a no-op.

However, the network happened to be working because on the network
interfaces used by U-Boot for tftp on Armada 370 platforms because the
hardware PHY polling was enabled by the bootloader, and left enabled
by Linux. However, the second network interface not used for tftp (or
both network interfaces if the kernel is loaded from USB, NAND or SD
card) didn't had the hardware PHY polling enabled.

This patch fixes this situation by:

 (1) Making sure that the hardware PHY polling is disabled by clearing
     the MVNETA_PHY_POLLING_ENABLE bit in the MVNETA_UNIT_CONTROL
     register in the driver -&gt;probe() function.

 (2) Making sure that the duplex and speed selections made by the
     adjust_link() callback are taken into account by clearing the
     MVNETA_GMAC_AN_SPEED_EN and MVNETA_GMAC_AN_DUPLEX_EN bits in the
     MVNETA_GMAC_AUTONEG_CONFIG register.

This patch has been tested on Armada 370 Mirabox, and now both network
interfaces are usable after boot.

[ Problem introduced by commit c5aff18 ("net: mvneta: driver for
  Marvell Armada 370/XP network unit") ]

Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Cc: Willy Tarreau &lt;w@1wt.eu&gt;
Cc: Jochen De Smet &lt;jochen.armkernel@leahnim.org&gt;
Cc: Peter Sanford &lt;psanford@nearbuy.io&gt;
Cc: Ethan Tuttle &lt;ethan@ethantuttle.com&gt;
Cc: Chény Yves-Gael &lt;yves@cheny.fr&gt;
Cc: Ryan Press &lt;ryan@presslab.us&gt;
Cc: Simon Guinot &lt;simon.guinot@sequanux.org&gt;
Cc: vdonnefort@lacie.com
Acked-by: Jason Cooper &lt;jason@lakedaemon.net&gt;
Tested-by: Vincent Donnefort &lt;vdonnefort@gmail.com&gt;
Tested-by: Yves-Gael Cheny &lt;yves@cheny.fr&gt;
Tested-by: Gregory CLEMENT &lt;gregory.clement@free-electrons.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ath9k: avoid accessing MRC registers on single-chain devices</title>
<updated>2013-09-27T00:21:45Z</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2013-08-13T10:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c661b37a34b6449d533c109472e19c7b005d164b'/>
<id>urn:sha1:c661b37a34b6449d533c109472e19c7b005d164b</id>
<content type='text'>
commit a1c781bb20ac1e03280e420abd47a99eb8bbdd3b upstream.

They are not implemented, and accessing them might trigger errors

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ath9k: fix rx descriptor related race condition</title>
<updated>2013-09-27T00:21:45Z</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2013-08-10T13:59:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=452c0dc821996470f847ac57dd3ca51a34a4c017'/>
<id>urn:sha1:452c0dc821996470f847ac57dd3ca51a34a4c017</id>
<content type='text'>
commit e96542e55a2aacf4bdeccfe2f17b77c4895b4df2 upstream.

Similar to a race condition that exists in the tx path, the hardware
might re-read the 'next' pointer of a descriptor of the last completed
frame. This only affects non-EDMA (pre-AR93xx) devices.

To deal with this race, defer clearing and re-linking a completed rx
descriptor until the next one has been processed.

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ath9k: always clear ps filter bit on new assoc</title>
<updated>2013-09-27T00:21:45Z</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2013-08-06T12:18:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6b8aad8df84daa0175627f36b2f299ba8e7b55e6'/>
<id>urn:sha1:6b8aad8df84daa0175627f36b2f299ba8e7b55e6</id>
<content type='text'>
commit 026d5b07c03458f9c0ccd19c3850564a5409c325 upstream.

Otherwise in some cases, EAPOL frames might be filtered during the
initial handshake, causing delays and assoc failures.

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>brcmsmac: Fix WARNING caused by lack of calls to dma_mapping_error()</title>
<updated>2013-09-27T00:21:44Z</updated>
<author>
<name>John W. Linville</name>
<email>linville@tuxdriver.com</email>
</author>
<published>2013-08-09T17:36:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=1bb32952f9ec5a841d199d82a8c70328b0ee5cb6'/>
<id>urn:sha1:1bb32952f9ec5a841d199d82a8c70328b0ee5cb6</id>
<content type='text'>
commit 67d0cf50bd32b66eab709871714e55725ee30ce4 upstream.

The driver fails to check the results of DMA mapping in twp places,
which results in the following warning:

[   28.078515] ------------[ cut here ]------------
[   28.078529] WARNING: at lib/dma-debug.c:937 check_unmap+0x47e/0x930()
[   28.078533] bcma-pci-bridge 0000:0e:00.0: DMA-API: device driver failed to check map error[device address=0x00000000b5d60d6c] [size=1876 bytes] [mapped as
 single]
[   28.078536] Modules linked in: bnep bluetooth vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) ipv6 b43 brcmsmac rtl8192cu rtl8192c_common rtlwifi mac802
11 brcmutil cfg80211 snd_hda_codec_conexant rng_core snd_hda_intel kvm_amd snd_hda_codec ssb kvm mmc_core snd_pcm snd_seq snd_timer snd_seq_device snd k8temp
 cordic joydev serio_raw hwmon sr_mod sg pcmcia pcmcia_core soundcore cdrom i2c_nforce2 i2c_core forcedeth bcma snd_page_alloc autofs4 ext4 jbd2 mbcache crc1
6 scsi_dh_alua scsi_dh_hp_sw scsi_dh_rdac scsi_dh_emc scsi_dh ata_generic pata_amd
[   28.078602] CPU: 1 PID: 2570 Comm: NetworkManager Tainted: G           O 3.10.0-rc7-wl+ #42
[   28.078605] Hardware name: Hewlett-Packard HP Pavilion dv2700 Notebook PC/30D6, BIOS F.27 11/27/2008
[   28.078607]  0000000000000009 ffff8800bbb03ad8 ffffffff8144f898 ffff8800bbb03b18
[   28.078612]  ffffffff8103e1eb 0000000000000002 ffff8800b719f480 ffff8800b7b9c010
[   28.078617]  ffffffff824204c0 ffffffff81754d57 0000000000000754 ffff8800bbb03b78
[   28.078622] Call Trace:
[   28.078624]  &lt;IRQ&gt;  [&lt;ffffffff8144f898&gt;] dump_stack+0x19/0x1b
[   28.078634]  [&lt;ffffffff8103e1eb&gt;] warn_slowpath_common+0x6b/0xa0
[   28.078638]  [&lt;ffffffff8103e2c1&gt;] warn_slowpath_fmt+0x41/0x50
[   28.078650]  [&lt;ffffffff8122d7ae&gt;] check_unmap+0x47e/0x930
[   28.078655]  [&lt;ffffffff8122de4c&gt;] debug_dma_unmap_page+0x5c/0x70
[   28.078679]  [&lt;ffffffffa04a808c&gt;] dma64_getnextrxp+0x10c/0x190 [brcmsmac]
[   28.078691]  [&lt;ffffffffa04a9042&gt;] dma_rx+0x62/0x240 [brcmsmac]
[   28.078707]  [&lt;ffffffffa0479101&gt;] brcms_c_dpc+0x211/0x9d0 [brcmsmac]
[   28.078717]  [&lt;ffffffffa046d927&gt;] ? brcms_dpc+0x27/0xf0 [brcmsmac]
[   28.078731]  [&lt;ffffffffa046d947&gt;] brcms_dpc+0x47/0xf0 [brcmsmac]
[   28.078736]  [&lt;ffffffff81047dcc&gt;] tasklet_action+0x6c/0xf0
--snip--
[   28.078974]  [&lt;ffffffff813891bd&gt;] SyS_sendmsg+0xd/0x20
[   28.078979]  [&lt;ffffffff81455c24&gt;] tracesys+0xdd/0xe2
[   28.078982] ---[ end trace 6164d1a08148e9c8 ]---
[   28.078984] Mapped at:
[   28.078985]  [&lt;ffffffff8122c8fd&gt;] debug_dma_map_page+0x9d/0x150
[   28.078989]  [&lt;ffffffffa04a9322&gt;] dma_rxfill+0x102/0x3d0 [brcmsmac]
[   28.079001]  [&lt;ffffffffa047a13d&gt;] brcms_c_init+0x87d/0x1100 [brcmsmac]
[   28.079010]  [&lt;ffffffffa046d851&gt;] brcms_init+0x21/0x30 [brcmsmac]
[   28.079018]  [&lt;ffffffffa04786e0&gt;] brcms_c_up+0x150/0x430 [brcmsmac]

As the patch adds a new failure mechanism to dma_rxfill(). When I changed the
comment at the start of the routine to add that information, I also polished
the wording.

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: Brett Rudley &lt;brudley@broadcom.com&gt;
Cc: Franky (Zhenhui) Lin &lt;frankyl@broadcom.com&gt;
Cc: Hante Meuleman &lt;meuleman@broadcom.com&gt;
Cc: brcm80211-dev-list@broadcom.com
Acked-by: Arend van Spriel &lt;arend@broadcom.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>mwifiex: do not create AP and P2P interfaces upon driver loading</title>
<updated>2013-09-14T14:06:46Z</updated>
<author>
<name>Bing Zhao</name>
<email>bzhao@marvell.com</email>
</author>
<published>2013-08-19T23:10:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ae7ab51a0ad97b41a3e173a52af033dd9e5eb118'/>
<id>urn:sha1:ae7ab51a0ad97b41a3e173a52af033dd9e5eb118</id>
<content type='text'>
commit 1211c961170cedb21c30d5bb7e2033c8720b38db upstream.

Bug 60747 - 1286:2044 [Microsoft Surface Pro]
    Marvell 88W8797 wifi show 3 interface under network
https://bugzilla.kernel.org/show_bug.cgi?id=60747

This issue was also reported previously by OLPC and some folks from
the community.

There are 3 network interfaces with different types being created
when mwifiex driver is loaded:

1. mlan0 (infra. STA)
2. uap0 (AP)
3. p2p0 (P2P_CLIENT)

The Network Manager attempts to use all 3 interfaces above without
filtering the managed interface type. As the result, 3 identical
interfaces are displayed under network manager. If user happens to
click on an entry under which its interface is uap0 or p2p0, the
association will fail.

Work around it by removing the creation of AP and P2P interfaces
at driver loading time. These interfaces can be added with 'iw' or
other applications manually when they are needed.

Signed-off-by: Bing Zhao &lt;bzhao@marvell.com&gt;
Signed-off-by: Avinash Patil &lt;patila@marvell.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>net: fec: fix time stamping logic after napi conversion</title>
<updated>2013-08-30T22:01:19Z</updated>
<author>
<name>Richard Cochran</name>
<email>richardcochran@gmail.com</email>
</author>
<published>2013-08-30T18:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0affdf347ffc0c3a4595661c091e8cc5f1346e92'/>
<id>urn:sha1:0affdf347ffc0c3a4595661c091e8cc5f1346e92</id>
<content type='text'>
Commit dc975382 "net: fec: add napi support to improve proformance"
converted the fec driver to the napi model. However, that commit
forgot to remove the call to skb_defer_rx_timestamp which is only
needed in non-napi drivers.

(The function napi_gro_receive eventually calls netif_receive_skb,
which in turn calls skb_defer_rx_timestamp.)

This patch should also be applied to the 3.9 and 3.10 kernels.

Signed-off-by: Richard Cochran &lt;richardcochran@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: xilinx: fix memleak</title>
<updated>2013-08-28T22:24:31Z</updated>
<author>
<name>Libo Chen</name>
<email>clbchenlibo.chen@huawei.com</email>
</author>
<published>2013-08-26T03:30:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=282a1dffc1b9976cdf1b0eea3f6f68fda23a7c7e'/>
<id>urn:sha1:282a1dffc1b9976cdf1b0eea3f6f68fda23a7c7e</id>
<content type='text'>
decrease device_node refcount np1 in err case.

Signed-off-by: Libo Chen &lt;libo.chen@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: usb: Add HP hs2434 device to ZLP exception table</title>
<updated>2013-08-28T22:22:15Z</updated>
<author>
<name>Rob Gardner</name>
<email>robmatic@gmail.com</email>
</author>
<published>2013-08-25T22:02:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=03803a59e32453ee5737c6096a295f748f03cc49'/>
<id>urn:sha1:03803a59e32453ee5737c6096a295f748f03cc49</id>
<content type='text'>
This patch adds another entry (HP hs2434 Mobile Broadband) to the list
of exceptional devices that require a zero length packet in order to
function properly. This list was added in commit 844e88f0. The hs2434
is manufactured by Sierra Wireless, who also produces the MC7710,
which the ZLP exception list was created for in the first place. So
hopefully it is just this one producer's devices that will need this
workaround.

Tested on a DM1-4310NR HP notebook, which does not function without this
change.

Signed-off-by: Rob Gardner &lt;robmatic@gmail.com&gt;
Acked-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: stmmac: fixed the pbl setting with DT</title>
<updated>2013-08-28T21:41:49Z</updated>
<author>
<name>Byungho An</name>
<email>bh74.an@samsung.com</email>
</author>
<published>2013-08-24T06:31:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=64c3b252e9fc8256ef7b1b99ba60492163cd06e8'/>
<id>urn:sha1:64c3b252e9fc8256ef7b1b99ba60492163cd06e8</id>
<content type='text'>
This patch fixed the pbl(programmable burst length) setting
using DT. Even though the default pbl is 8, If there is no
pbl property in device tree file, pbl is set 0 and it causes
bandwidth degradation.

Signed-off-by: Byungho An &lt;bh74.an@samsung.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
