<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/target/linux/ramips/files/drivers/net, branch mtk-20170518</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>move files to files-3.7</title>
<updated>2013-04-03T09:58:44+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2013-04-03T09:58:44+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=d4db00205d726f9faca3147cb345518ec5406aab'/>
<id>d4db00205d726f9faca3147cb345518ec5406aab</id>
<content type='text'>
Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;

SVN-Revision: 36161
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;

SVN-Revision: 36161
</pre>
</div>
</content>
</entry>
<entry>
<title>fix for non-blinking LAN LEDs</title>
<updated>2013-01-28T18:06:31+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2013-01-28T18:06:31+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=756a7c5451672562ac0c301134a0886f819fb20b'/>
<id>756a7c5451672562ac0c301134a0886f819fb20b</id>
<content type='text'>
https://dev.openwrt.org/ticket/12830

SVN-Revision: 35359
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://dev.openwrt.org/ticket/12830

SVN-Revision: 35359
</pre>
</div>
</content>
</entry>
<entry>
<title>ramips: ramips_eth: use Kconfig definition to enable debug</title>
<updated>2012-11-25T14:25:54+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2012-11-25T14:25:54+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=57b7879a4e9202e8f34e42a437b0bcf6c9219550'/>
<id>57b7879a4e9202e8f34e42a437b0bcf6c9219550</id>
<content type='text'>
The Kconfig identifier to enable debugging in the driver was different from the
actually used one. Fix that.

Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

SVN-Revision: 34332
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Kconfig identifier to enable debugging in the driver was different from the
actually used one. Fix that.

Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

SVN-Revision: 34332
</pre>
</div>
</content>
</entry>
<entry>
<title>move ethernet hw init to init/uninit functions</title>
<updated>2012-11-12T21:35:01+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2012-11-12T21:35:01+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=ced0cf3a94053f43671e2e46fbba45f0214f9741'/>
<id>ced0cf3a94053f43671e2e46fbba45f0214f9741</id>
<content type='text'>
This should fix the stalled irq problem seen by several people.
This is not the real fix, but rather moves the bug to the un/init patch of the driver.
The real bug still needs to be fixed, but this workaround should be suffcient to make
the ethernet stable.

SVN-Revision: 34177
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should fix the stalled irq problem seen by several people.
This is not the real fix, but rather moves the bug to the un/init patch of the driver.
The real bug still needs to be fixed, but this workaround should be suffcient to make
the ethernet stable.

SVN-Revision: 34177
</pre>
</div>
</content>
</entry>
<entry>
<title>add ethernet support for rt5350</title>
<updated>2012-09-25T14:47:08+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2012-09-25T14:47:08+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=34d57ebd8b1c5674bc59c7ab1f0dd0b3b8a50684'/>
<id>34d57ebd8b1c5674bc59c7ab1f0dd0b3b8a50684</id>
<content type='text'>
SVN-Revision: 33548
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 33548
</pre>
</div>
</content>
</entry>
<entry>
<title>make ramips ethernet use a register mapping table</title>
<updated>2012-09-25T14:46:58+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2012-09-25T14:46:58+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=af0cd7693728014b076c9cef8688f8ff4d3b8e4d'/>
<id>af0cd7693728014b076c9cef8688f8ff4d3b8e4d</id>
<content type='text'>
SVN-Revision: 33547
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 33547
</pre>
</div>
</content>
</entry>
<entry>
<title>ramips: Add missing andmask to ramips_esw register read for recv_good value.</title>
<updated>2012-09-05T20:08:43+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2012-09-05T20:08:43+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=d8b2fef763050c6d5900845729d770545f51fbc6'/>
<id>d8b2fef763050c6d5900845729d770545f51fbc6</id>
<content type='text'>
Add missing andmask to ramips_esw register read for recv_good value.

Without the mask, recv_bad leaks into the recv_good packet count.
Didn't notice the bug before since you don't usually get bad
packets, so I only saw it when I was playing with overlength packets
earlier...

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33322
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing andmask to ramips_esw register read for recv_good value.

Without the mask, recv_bad leaks into the recv_good packet count.
Didn't notice the bug before since you don't usually get bad
packets, so I only saw it when I was playing with overlength packets
earlier...

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33322
</pre>
</div>
</content>
</entry>
<entry>
<title>ramips: Use doubletagging to disable ramips_esw vlan by default, it seems more reliable.</title>
<updated>2012-09-05T20:08:42+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2012-09-05T20:08:42+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=04c6143ca977a71c39dcf471f5a60d93890df649'/>
<id>04c6143ca977a71c39dcf471f5a60d93890df649</id>
<content type='text'>
Use doubletagging to disable ramips_esw vlan by default, it seems
more reliable.

Daniel Golle found an issue where sometimes (possibly only for
RT3352) the default vlan disable method (clearing en_vlan, untag,
doubletag and putting all ports into vlan 0) doesn't work and the
packets get sent out vlan-tagged with vlan 0.

Instead switch to using the doubletagging method (allow doubletagged
packets, put all ports into vlan 0 with untag enabled) by default.

Unless someone figures out a way to really globally disable vlan for
this switch, this seems like the best (most reliable) option.

I did some tests regarding maximum packet size and did not see any

difference between the two methods, both allow for slightly bigger packets
than the ramips_main.c ethernet driver (ping stops going through
above "ping -s 1472" (1514 bytes), on the switch packets are recv_good until
"ping -s 1490", or about 1532 bytes).

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33321
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use doubletagging to disable ramips_esw vlan by default, it seems
more reliable.

Daniel Golle found an issue where sometimes (possibly only for
RT3352) the default vlan disable method (clearing en_vlan, untag,
doubletag and putting all ports into vlan 0) doesn't work and the
packets get sent out vlan-tagged with vlan 0.

Instead switch to using the doubletagging method (allow doubletagged
packets, put all ports into vlan 0 with untag enabled) by default.

Unless someone figures out a way to really globally disable vlan for
this switch, this seems like the best (most reliable) option.

I did some tests regarding maximum packet size and did not see any

difference between the two methods, both allow for slightly bigger packets
than the ramips_main.c ethernet driver (ping stops going through
above "ping -s 1472" (1514 bytes), on the switch packets are recv_good until
"ping -s 1490", or about 1532 bytes).

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33321
</pre>
</div>
</content>
</entry>
<entry>
<title>ramips: Power down phy on disabled switch ports</title>
<updated>2012-08-29T10:37:45+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2012-08-29T10:37:45+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=bc4763a399f91c564ea712466102d51b742ea3a8'/>
<id>bc4763a399f91c564ea712466102d51b742ea3a8</id>
<content type='text'>
Power down phy on disabled switch ports.

Haven't measured this myself yet, but according to this
http://www.8devices.com/community/viewtopic.php?f=6&amp;t=156
it can save about 300mW of power.

[juhosg: fix checkpatch warning]

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33304
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Power down phy on disabled switch ports.

Haven't measured this myself yet, but according to this
http://www.8devices.com/community/viewtopic.php?f=6&amp;t=156
it can save about 300mW of power.

[juhosg: fix checkpatch warning]

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33304
</pre>
</div>
</content>
</entry>
<entry>
<title>ramips: Rename POC registers</title>
<updated>2012-08-29T10:37:41+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2012-08-29T10:37:41+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=bb0785880acf5a681ab5df492b60636c0eddceab'/>
<id>bb0785880acf5a681ab5df492b60636c0eddceab</id>
<content type='text'>
Rename POC registers.

The current code uses POC1-POC3.

The datasheet uses:
POC1: Port Control 0
POC1: Port Control 1
POC2: Port Control 2

So the first POC1 is a typo that should have been POC0, rename the
registers to POC0-POC2 accordingly.

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33302
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename POC registers.

The current code uses POC1-POC3.

The datasheet uses:
POC1: Port Control 0
POC1: Port Control 1
POC2: Port Control 2

So the first POC1 is a typo that should have been POC0, rename the
registers to POC0-POC2 accordingly.

Signed-off-by: Tobias Diedrich &lt;ranma+openwrt@tdiedrich.de&gt;

SVN-Revision: 33302
</pre>
</div>
</content>
</entry>
</feed>
