<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rtl819xx/target/linux/generic/files/drivers/net/phy, branch mini3g</title>
<subtitle>Realtek rtl819xx port to OpenWrt</subtitle>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/'/>
<entry>
<title>generic: ar8216: set delay values for SGMII mode on AR8327</title>
<updated>2012-11-23T20:55:26+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-23T20:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=54ea3b2ac59a200b6b30759bf2a69ca52e5e595b'/>
<id>54ea3b2ac59a200b6b30759bf2a69ca52e5e595b</id>
<content type='text'>
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34315 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34315 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: introduce ar8216_mib_op helper</title>
<updated>2012-11-22T10:33:03+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-22T10:33:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=442227fcf267604ade254b6d77e37883411d40ad'/>
<id>442227fcf267604ade254b6d77e37883411d40ad</id>
<content type='text'>
The ar8216_mib_{capture,flush} functions are similar.
Move the common code into a helper and use that from
the original functions.

This change also fixes a lockdep warning in
ar8216_mib_flush.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34297 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ar8216_mib_{capture,flush} functions are similar.
Move the common code into a helper and use that from
the original functions.

This change also fixes a lockdep warning in
ar8216_mib_flush.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34297 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>swconfig: make it compatible with 3.7</title>
<updated>2012-11-21T17:38:11+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-21T17:38:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=def4db18869161bbd7c5b4203e164286a48c3398'/>
<id>def4db18869161bbd7c5b4203e164286a48c3398</id>
<content type='text'>
swconfig does not compile with 3.7 because

struct netlink_notify-&gt;pid    has been renamed to
struct netlink_notify-&gt;portid

and

struct genl_info-&gt;snd_pid     has been renamed to
struct genl_info-&gt;snd_portid

Use the new names and add compatibility patches
to 3.3 and 3.6.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34288 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
swconfig does not compile with 3.7 because

struct netlink_notify-&gt;pid    has been renamed to
struct netlink_notify-&gt;portid

and

struct genl_info-&gt;snd_pid     has been renamed to
struct genl_info-&gt;snd_portid

Use the new names and add compatibility patches
to 3.3 and 3.6.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34288 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: fix port number check in 'ar8xxx_mib_work_func'</title>
<updated>2012-11-20T20:40:04+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-20T20:40:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=62d84c033a815fa954993d44806bfe2c2cf84cff'/>
<id>62d84c033a815fa954993d44806bfe2c2cf84cff</id>
<content type='text'>
Also add a WARN_ON to 'ar8216_mib_fetch_port_stat'

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34283 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add a WARN_ON to 'ar8216_mib_fetch_port_stat'

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34283 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: remove an unblanced mutex_unlock call</title>
<updated>2012-11-20T20:40:03+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-20T20:40:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=e0cb5a2b6c83d2f318c3deea0df253de7f075beb'/>
<id>e0cb5a2b6c83d2f318c3deea0df253de7f075beb</id>
<content type='text'>
Fixes the following warning:

[   94.080000]
[   94.080000] =====================================
[   94.080000] [ BUG: bad unlock balance detected! ]
[   94.080000] 3.3.8 #2 Tainted: G           O
[   94.080000] -------------------------------------
[   94.080000] swconfig/1220 is trying to release lock (&amp;priv-&gt;mib_lock) at:
[   94.080000] [&lt;801df8f4&gt;] ar8216_sw_get_port_mib+0x138/0x16c
[   94.080000] but there are no more locks to release!
[   94.080000]
[   94.080000] other info that might help us debug this:
[   94.080000] 2 locks held by swconfig/1220:
[   94.080000]  #0:  (genl_mutex){+.+...}, at: [&lt;80222430&gt;] genl_rcv+0x14/0x34
[   94.080000]  #1:  (&amp;dev-&gt;sw_mutex){+.+...}, at: [&lt;801da018&gt;] swconfig_get_dev+0x88/0xb4
[   94.080000]
[   94.080000] stack backtrace:
[   94.080000] Call Trace:
[   94.080000] [&lt;8028dc58&gt;] dump_stack+0x8/0x34
[   94.080000] [&lt;800a5128&gt;] print_unlock_inbalance_bug+0xe0/0xfc
[   94.080000] [&lt;800a82c0&gt;] lock_release+0x18c/0x1c8
[   94.080000] [&lt;80292074&gt;] __mutex_unlock_slowpath+0xd8/0x17c
[   94.080000] [&lt;801df8f4&gt;] ar8216_sw_get_port_mib+0x138/0x16c
[   94.080000] [&lt;801db688&gt;] swconfig_get_attr+0xbc/0x394
[   94.080000] [&lt;8022261c&gt;] genl_rcv_msg+0x1cc/0x214
[   94.080000] [&lt;80221a18&gt;] netlink_rcv_skb+0x6c/0xe8
[   94.080000] [&lt;80222440&gt;] genl_rcv+0x24/0x34
[   94.080000] [&lt;80221370&gt;] netlink_unicast+0x15c/0x22c
[   94.080000] [&lt;8022175c&gt;] netlink_sendmsg+0x240/0x2d0
[   94.080000] [&lt;801ef544&gt;] sock_sendmsg+0x84/0x9c
[   94.080000] [&lt;801f0648&gt;] __sys_sendmsg+0x1cc/0x270
[   94.080000] [&lt;801f207c&gt;] sys_sendmsg+0x48/0x7c
[   94.080000] [&lt;8006ad78&gt;] stack_done+0x20/0x40
[   94.080000]

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34282 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes the following warning:

[   94.080000]
[   94.080000] =====================================
[   94.080000] [ BUG: bad unlock balance detected! ]
[   94.080000] 3.3.8 #2 Tainted: G           O
[   94.080000] -------------------------------------
[   94.080000] swconfig/1220 is trying to release lock (&amp;priv-&gt;mib_lock) at:
[   94.080000] [&lt;801df8f4&gt;] ar8216_sw_get_port_mib+0x138/0x16c
[   94.080000] but there are no more locks to release!
[   94.080000]
[   94.080000] other info that might help us debug this:
[   94.080000] 2 locks held by swconfig/1220:
[   94.080000]  #0:  (genl_mutex){+.+...}, at: [&lt;80222430&gt;] genl_rcv+0x14/0x34
[   94.080000]  #1:  (&amp;dev-&gt;sw_mutex){+.+...}, at: [&lt;801da018&gt;] swconfig_get_dev+0x88/0xb4
[   94.080000]
[   94.080000] stack backtrace:
[   94.080000] Call Trace:
[   94.080000] [&lt;8028dc58&gt;] dump_stack+0x8/0x34
[   94.080000] [&lt;800a5128&gt;] print_unlock_inbalance_bug+0xe0/0xfc
[   94.080000] [&lt;800a82c0&gt;] lock_release+0x18c/0x1c8
[   94.080000] [&lt;80292074&gt;] __mutex_unlock_slowpath+0xd8/0x17c
[   94.080000] [&lt;801df8f4&gt;] ar8216_sw_get_port_mib+0x138/0x16c
[   94.080000] [&lt;801db688&gt;] swconfig_get_attr+0xbc/0x394
[   94.080000] [&lt;8022261c&gt;] genl_rcv_msg+0x1cc/0x214
[   94.080000] [&lt;80221a18&gt;] netlink_rcv_skb+0x6c/0xe8
[   94.080000] [&lt;80222440&gt;] genl_rcv+0x24/0x34
[   94.080000] [&lt;80221370&gt;] netlink_unicast+0x15c/0x22c
[   94.080000] [&lt;8022175c&gt;] netlink_sendmsg+0x240/0x2d0
[   94.080000] [&lt;801ef544&gt;] sock_sendmsg+0x84/0x9c
[   94.080000] [&lt;801f0648&gt;] __sys_sendmsg+0x1cc/0x270
[   94.080000] [&lt;801f207c&gt;] sys_sendmsg+0x48/0x7c
[   94.080000] [&lt;8006ad78&gt;] stack_done+0x20/0x40
[   94.080000]

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34282 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: add missing locking calls</title>
<updated>2012-11-20T20:40:00+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-20T20:40:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=908b076d38670abea61fcef90f46f432cadaf1f1'/>
<id>908b076d38670abea61fcef90f46f432cadaf1f1</id>
<content type='text'>
Fixes the following lockdep warning:

[   19.160000] ------------[ cut here ]------------
[   19.160000] WARNING: at drivers/net/phy/ar8216.c:322 ar8216_rmw+0x54/0xa4()
[   19.170000] Modules linked in: nf_defrag_ipv4 nf_conntrack ehci_hcd
sd_mod pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multip
ort xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp
x_tables ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) at
h9k_hw(O) ath(O) mac80211(O) usbcore usb_common scsi_mod nls_base crc7
crc_itu_t crc_ccitt cfg80211(O) compat(O) arc4 aes_generic cry
pto_blkcipher cryptomgr aead crypto_hash crypto_algapi ledtrig_timer
ledtrig_default_on leds_gpio gpio_button_hotplug(O)
[   19.210000] Call Trace:
[   19.220000] [&lt;8028dc38&gt;] dump_stack+0x8/0x34
[   19.220000] [&lt;80072da0&gt;] warn_slowpath_common+0x78/0xa4
[   19.230000] [&lt;80072de4&gt;] warn_slowpath_null+0x18/0x24
[   19.230000] [&lt;801de820&gt;] ar8216_rmw+0x54/0xa4
[   19.240000] [&lt;801df460&gt;] ar8216_mib_capture+0x70/0xd0
[   19.240000] [&lt;801df944&gt;] ar8xxx_mib_work_func+0x34/0x98
[   19.250000] [&lt;80089a7c&gt;] process_one_work+0x28c/0x460
[   19.250000] [&lt;8008a630&gt;] worker_thread+0x22c/0x334
[   19.260000] [&lt;8008e544&gt;] kthread+0x88/0x90
[   19.260000] [&lt;80065020&gt;] kernel_thread_helper+0x10/0x18
[   19.270000]
[   19.270000] ---[ end trace 22e9d696adfa6a08 ]---

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34281 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes the following lockdep warning:

[   19.160000] ------------[ cut here ]------------
[   19.160000] WARNING: at drivers/net/phy/ar8216.c:322 ar8216_rmw+0x54/0xa4()
[   19.170000] Modules linked in: nf_defrag_ipv4 nf_conntrack ehci_hcd
sd_mod pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multip
ort xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp
x_tables ppp_async ppp_generic slhc ath9k(O) ath9k_common(O) at
h9k_hw(O) ath(O) mac80211(O) usbcore usb_common scsi_mod nls_base crc7
crc_itu_t crc_ccitt cfg80211(O) compat(O) arc4 aes_generic cry
pto_blkcipher cryptomgr aead crypto_hash crypto_algapi ledtrig_timer
ledtrig_default_on leds_gpio gpio_button_hotplug(O)
[   19.210000] Call Trace:
[   19.220000] [&lt;8028dc38&gt;] dump_stack+0x8/0x34
[   19.220000] [&lt;80072da0&gt;] warn_slowpath_common+0x78/0xa4
[   19.230000] [&lt;80072de4&gt;] warn_slowpath_null+0x18/0x24
[   19.230000] [&lt;801de820&gt;] ar8216_rmw+0x54/0xa4
[   19.240000] [&lt;801df460&gt;] ar8216_mib_capture+0x70/0xd0
[   19.240000] [&lt;801df944&gt;] ar8xxx_mib_work_func+0x34/0x98
[   19.250000] [&lt;80089a7c&gt;] process_one_work+0x28c/0x460
[   19.250000] [&lt;8008a630&gt;] worker_thread+0x22c/0x334
[   19.260000] [&lt;8008e544&gt;] kthread+0x88/0x90
[   19.260000] [&lt;80065020&gt;] kernel_thread_helper+0x10/0x18
[   19.270000]
[   19.270000] ---[ end trace 22e9d696adfa6a08 ]---

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34281 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: add MIB counter support for the AR8216 switch as well</title>
<updated>2012-11-18T16:21:00+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-18T16:21:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=bf59a262d15c8f517715c13c3014789a109b214c'/>
<id>bf59a262d15c8f517715c13c3014789a109b214c</id>
<content type='text'>
Thanks to Jonas Gorski for the reference URL.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34245 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks to Jonas Gorski for the reference URL.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34245 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: rename AR8216_*_STATS_* defines</title>
<updated>2012-11-18T16:20:56+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-18T16:20:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=c541c7e4930d605cf266c145ffc28599875d6593'/>
<id>c541c7e4930d605cf266c145ffc28599875d6593</id>
<content type='text'>
The names are misleading, those are only valid from
AR8236. The AR8216 chip uses different offsets.

Thanks to Jonas Gorski for the report.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34244 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The names are misleading, those are only valid from
AR8236. The AR8216 chip uses different offsets.

Thanks to Jonas Gorski for the report.

Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34244 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic ar8216: allow to read/reset MIB counters via swconfig</title>
<updated>2012-11-18T12:26:35+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-18T12:26:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=182478490a63f7d81a9cc4ce07741fd0175bc54d'/>
<id>182478490a63f7d81a9cc4ce07741fd0175bc54d</id>
<content type='text'>
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34243 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34243 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
<entry>
<title>generic: ar8216: use dynamically allocated private data in ar8216_probe</title>
<updated>2012-11-18T12:26:34+00:00</updated>
<author>
<name>juhosg</name>
<email>juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73</email>
</author>
<published>2012-11-18T12:26:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.advem.lv/rtl819xx/commit/?id=42670d4d0fe615ba550abc067df90e4d75c04e22'/>
<id>42670d4d0fe615ba550abc067df90e4d75c04e22</id>
<content type='text'>
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34242 3c298f89-4303-0410-b956-a3cf2f4a3e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34242 3c298f89-4303-0410-b956-a3cf2f4a3e73
</pre>
</div>
</content>
</entry>
</feed>
