<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/target/linux/generic/files/drivers/net/phy, branch v17.01.2</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>Revert "kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)"</title>
<updated>2017-02-22T11:07:30+00:00</updated>
<author>
<name>Stijn Tintel</name>
<email>stijn@linux-ipv6.be</email>
</author>
<published>2017-02-22T10:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=349577adbf84ea8544838894a1edee7c13fd0dcd'/>
<id>349577adbf84ea8544838894a1edee7c13fd0dcd</id>
<content type='text'>
This reverts commit ec1a695daa7390a6c24e3b28d3956f194cba2cb5.

Revert the workaround, the problem was properly fixed in
237454991618e0e8b7ceb8a8a2a43fca12c1a454.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
(cherry picked from commit 5c49fecf72c9c10b1d302b0a9d4db3b4ce3c782c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit ec1a695daa7390a6c24e3b28d3956f194cba2cb5.

Revert the workaround, the problem was properly fixed in
237454991618e0e8b7ceb8a8a2a43fca12c1a454.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
(cherry picked from commit 5c49fecf72c9c10b1d302b0a9d4db3b4ce3c782c)
</pre>
</div>
</content>
</entry>
<entry>
<title>ar8216: flush ARL table during reset after init_globals</title>
<updated>2017-02-22T10:57:27+00:00</updated>
<author>
<name>Günther Kelleter</name>
<email>guenther.kelleter@devolo.de</email>
</author>
<published>2017-02-15T09:36:49+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=7fd494d4b23697a329dcde89df412edaaf96a83d'/>
<id>7fd494d4b23697a329dcde89df412edaaf96a83d</id>
<content type='text'>
commit 33b72b8e0faf7a39faabece584fd6da61cd8f8df
"ar8216: adjust ATU flushing in case of link changes"
introduced portwise flushing on link down events. Now the ARL table could
be in a chaotic state after boot where ar8xxx_sw_get_arl_table looped
forever (depending on the entries collected while booting).

Fixes FS#384.

Signed-off-by: Günther Kelleter &lt;guenther.kelleter@devolo.de&gt;
(cherry picked from commit 237454991618e0e8b7ceb8a8a2a43fca12c1a454)
Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 33b72b8e0faf7a39faabece584fd6da61cd8f8df
"ar8216: adjust ATU flushing in case of link changes"
introduced portwise flushing on link down events. Now the ARL table could
be in a chaotic state after boot where ar8xxx_sw_get_arl_table looped
forever (depending on the entries collected while booting).

Fixes FS#384.

Signed-off-by: Günther Kelleter &lt;guenther.kelleter@devolo.de&gt;
(cherry picked from commit 237454991618e0e8b7ceb8a8a2a43fca12c1a454)
Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)</title>
<updated>2017-02-01T14:40:19+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2017-01-13T15:38:22+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=ea43d60c180c0096f581e0b27c7f75ea08b0f36c'/>
<id>ea43d60c180c0096f581e0b27c7f75ea08b0f36c</id>
<content type='text'>
Running ar8327_get_arl_entry() early after boot leads to MDIO related system
lockups on several devices using this driver.

Since dumping the ARL table contens is an optional, uncritical feature, simply
disable the code for now.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Running ar8327_get_arl_entry() early after boot leads to MDIO related system
lockups on several devices using this driver.

Since dumping the ARL table contens is an optional, uncritical feature, simply
disable the code for now.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mvsw61xx: add support for MV88E6352</title>
<updated>2017-01-13T16:12:40+00:00</updated>
<author>
<name>Imre Kaloz</name>
<email>kaloz@openwrt.org</email>
</author>
<published>2017-01-12T21:50:06+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=f24ffb901e0408917748773b883841eca52eea05'/>
<id>f24ffb901e0408917748773b883841eca52eea05</id>
<content type='text'>
MV88E6352 is used on Linksys WRT3200ACM

Signed-off-by: Imre Kaloz &lt;kaloz@openwrt.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MV88E6352 is used on Linksys WRT3200ACM

Signed-off-by: Imre Kaloz &lt;kaloz@openwrt.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: fix invalid bounds check imported from ChromeOS (FS#347)</title>
<updated>2016-12-23T18:24:14+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2016-12-23T18:15:14+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=29cc927ef5a6d2f1e8de0d3d9fc67877aa4b6af7'/>
<id>29cc927ef5a6d2f1e8de0d3d9fc67877aa4b6af7</id>
<content type='text'>
The priv-&gt;vlan_id member is of size AR8X16_MAX_VLANS, not AR8X16_MAX_PORTS,
so check for the proper maximum value in order to avoid capping valid VLAN IDs
to 7 (AR8X16_MAX_PORTS - 1).

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The priv-&gt;vlan_id member is of size AR8X16_MAX_VLANS, not AR8X16_MAX_PORTS,
so check for the proper maximum value in order to avoid capping valid VLAN IDs
to 7 (AR8X16_MAX_PORTS - 1).

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: ar8327: modify some configuration of switch</title>
<updated>2016-12-01T14:47:43+00:00</updated>
<author>
<name>Pavel Kubelun</name>
<email>be.dissent@gmail.com</email>
</author>
<published>2015-02-12T01:49:08+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=94e4ee5395b437e9ddaec8cdea47c1a4a9ba0c01'/>
<id>94e4ee5395b437e9ddaec8cdea47c1a4a9ba0c01</id>
<content type='text'>
Imported from https://source.codeaurora.org/quic/qsdk/system/openwrt/commit/?h=korg/linux-3.4.y/release/arugula_bb_cs&amp;id=2be4f8a8b205ae1a37db44839864451ebe893e6e
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

Enable flow control of LAN and WAN ports to
get better performance.
Setup pvid as 0 for all ports during initialisation
to avoid confusion during system or switch INIT.
Disable PORT MAC before config MAC to avoid it work abnormal.
This change is for IR-054144, IR-057315.

Change-Id: I345f3dffa59ad3f97150e09692723da12a7b1067
Signed-off-by: Zou Shunxiang &lt;shunxian@codeaurora.org&gt;
Signed-off-by: xiaofeis &lt;xiaofeis@codeaurora.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Imported from https://source.codeaurora.org/quic/qsdk/system/openwrt/commit/?h=korg/linux-3.4.y/release/arugula_bb_cs&amp;id=2be4f8a8b205ae1a37db44839864451ebe893e6e
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

Enable flow control of LAN and WAN ports to
get better performance.
Setup pvid as 0 for all ports during initialisation
to avoid confusion during system or switch INIT.
Disable PORT MAC before config MAC to avoid it work abnormal.
This change is for IR-054144, IR-057315.

Change-Id: I345f3dffa59ad3f97150e09692723da12a7b1067
Signed-off-by: Zou Shunxiang &lt;shunxian@codeaurora.org&gt;
Signed-off-by: xiaofeis &lt;xiaofeis@codeaurora.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: ar8216: address security vulnerabilities in swconfig &amp; ar8216</title>
<updated>2016-12-01T14:47:43+00:00</updated>
<author>
<name>Pavel Kubelun</name>
<email>be.dissent@gmail.com</email>
</author>
<published>2016-11-28T15:10:05+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=5a69f596027ff45d9daf7c6584a8a9d4f7ea0770'/>
<id>5a69f596027ff45d9daf7c6584a8a9d4f7ea0770</id>
<content type='text'>
Imported from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/e1aaf7ec008a97311867f0a7d0418e4693fecfd4%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: net: ar8216: address security vulnerabilities in swconfig &amp; ar8216

This patch does the following changes:
*address the security vulnerabilities in both swconfig framework and in
 ar8216 driver (many bound check additions, and turned swconfig structure
 signed element into unsigned when applicable)
*address a couple of whitespaces and indendation issues

BUG=chrome-os-partner:33096
TEST=none

Change-Id: I94ea78fcce8c1932cc584d1508c6e3b5dfb93ce9
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/236490
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Commit-Queue: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Imported from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/e1aaf7ec008a97311867f0a7d0418e4693fecfd4%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: net: ar8216: address security vulnerabilities in swconfig &amp; ar8216

This patch does the following changes:
*address the security vulnerabilities in both swconfig framework and in
 ar8216 driver (many bound check additions, and turned swconfig structure
 signed element into unsigned when applicable)
*address a couple of whitespaces and indendation issues

BUG=chrome-os-partner:33096
TEST=none

Change-Id: I94ea78fcce8c1932cc584d1508c6e3b5dfb93ce9
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/236490
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Commit-Queue: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: ar8216: prevent device duplication in ar8xxx_dev_list</title>
<updated>2016-12-01T14:47:43+00:00</updated>
<author>
<name>Pavel Kubelun</name>
<email>be.dissent@gmail.com</email>
</author>
<published>2016-11-28T12:31:38+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=a3454d1929abb452102ad7639ade192caf98719e'/>
<id>a3454d1929abb452102ad7639ade192caf98719e</id>
<content type='text'>
Import from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/fd7b89dd464a4afffa04ff2e17c771dfe95668cf%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: drivers: ar8216: prevent device duplication in ar8xxx_dev_list

If probe is called twice, once for PHY0 and a second time for PHY4,
the same switch device will be added twice to ar8xxx_dev_list, while
supposedly this list should have one element per hardware switch present
in the system.

While no negative impact have been observed, it does happen if a
platform instanciates these two PHYs from device-tree, as an example.

Change-Id: Iddcbdf7d4adacb0af01975b73f8e56b4582e894e
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/234790
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Import from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/fd7b89dd464a4afffa04ff2e17c771dfe95668cf%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: drivers: ar8216: prevent device duplication in ar8xxx_dev_list

If probe is called twice, once for PHY0 and a second time for PHY4,
the same switch device will be added twice to ar8xxx_dev_list, while
supposedly this list should have one element per hardware switch present
in the system.

While no negative impact have been observed, it does happen if a
platform instanciates these two PHYs from device-tree, as an example.

Change-Id: Iddcbdf7d4adacb0af01975b73f8e56b4582e894e
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/234790
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: ar8216: hold ar8xxx_dev_list_lock during use_count--</title>
<updated>2016-12-01T14:47:43+00:00</updated>
<author>
<name>Pavel Kubelun</name>
<email>be.dissent@gmail.com</email>
</author>
<published>2016-11-28T12:21:42+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=eb049d3777ce6e50ae830a41f9308c270cb26858'/>
<id>eb049d3777ce6e50ae830a41f9308c270cb26858</id>
<content type='text'>
Import from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/c3fd96a7b87da23979d8569ce45447f8419ca303%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: drivers: ar8216: hold ar8xxx_dev_list_lock during use_count--

It is possible for the remove() callback to run twice in parallel, which
could result into --use_count returning only 1 in both cases and the
rest of the unregistration path to never be reached.

This case has never been observed in practice, but we will fix
preventively to make the code more robust.

BUG=chrome-os-partner:33096
TEST=none

Change-Id: If09abe27fdb2037f514f8674418bafaab3cbdef6
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/232870
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Import from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/c3fd96a7b87da23979d8569ce45447f8419ca303%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: drivers: ar8216: hold ar8xxx_dev_list_lock during use_count--

It is possible for the remove() callback to run twice in parallel, which
could result into --use_count returning only 1 in both cases and the
rest of the unregistration path to never be reached.

This case has never been observed in practice, but we will fix
preventively to make the code more robust.

BUG=chrome-os-partner:33096
TEST=none

Change-Id: If09abe27fdb2037f514f8674418bafaab3cbdef6
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/232870
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: ar8327: replace sprintf() by scnprintf()</title>
<updated>2016-12-01T14:47:43+00:00</updated>
<author>
<name>Pavel Kubelun</name>
<email>be.dissent@gmail.com</email>
</author>
<published>2016-11-28T12:14:50+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=65b20d8b64bb5c6d8b9375d3952899b6aaaa302e'/>
<id>65b20d8b64bb5c6d8b9375d3952899b6aaaa302e</id>
<content type='text'>
Import from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/fd0c41c7b9327ce003f44df38ce42556fb177b17%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: drivers: ar8216: replace sprintf() by scnprintf()

BUG=chrome-os-partner:33096
TEST=none

Change-Id: Ib82035c9f2769a86d3e90f9573a09e5700ff5676
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/232829
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Import from https://chromium.googlesource.com/chromiumos/third_party/kernel/+/fd0c41c7b9327ce003f44df38ce42556fb177b17%5E%21/#F0
Signed-off-by: Pavel Kubelun &lt;be.dissent@gmail.com&gt;

CHROMIUM: drivers: ar8216: replace sprintf() by scnprintf()

BUG=chrome-os-partner:33096
TEST=none

Change-Id: Ib82035c9f2769a86d3e90f9573a09e5700ff5676
Signed-off-by: Mathieu Olivari &lt;mathieu@codeaurora.org&gt;
Reviewed-on: https://chromium-review.googlesource.com/232829
Reviewed-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Tested-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
Reviewed-by: Toshi Kikuchi &lt;toshik@chromium.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
