{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/openwrt/issues/1055","repository_url":"https://api.github.com/repos/openwrt/openwrt","labels_url":"https://api.github.com/repos/openwrt/openwrt/issues/1055/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/openwrt/issues/1055/comments","events_url":"https://api.github.com/repos/openwrt/openwrt/issues/1055/events","html_url":"https://github.com/openwrt/openwrt/pull/1055","id":332785189,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MTgzMTMw","number":1055,"title":"ath79: fix irq cascade driver and add wmac for ar934x","user":{"login":"981213","id":3888062,"node_id":"MDQ6VXNlcjM4ODgwNjI=","avatar_url":"https://avatars2.githubusercontent.com/u/3888062?v=4","gravatar_id":"","url":"https://api.github.com/users/981213","html_url":"https://github.com/981213","followers_url":"https://api.github.com/users/981213/followers","following_url":"https://api.github.com/users/981213/following{/other_user}","gists_url":"https://api.github.com/users/981213/gists{/gist_id}","starred_url":"https://api.github.com/users/981213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/981213/subscriptions","organizations_url":"https://api.github.com/users/981213/orgs","repos_url":"https://api.github.com/users/981213/repos","events_url":"https://api.github.com/users/981213/events{/privacy}","received_events_url":"https://api.github.com/users/981213/received_events","type":"User","site_admin":false},"labels":[{"id":927495841,"node_id":"MDU6TGFiZWw5Mjc0OTU4NDE=","url":"https://api.github.com/repos/openwrt/openwrt/labels/ath79","name":"ath79","color":"0043e4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-15T13:58:57Z","updated_at":"2018-06-16T17:04:23Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openwrt/openwrt/pulls/1055","html_url":"https://github.com/openwrt/openwrt/pull/1055","diff_url":"https://github.com/openwrt/openwrt/pull/1055.diff","patch_url":"https://github.com/openwrt/openwrt/pull/1055.patch"},"body":"Add the missing enable and disable function.\r\nRemove dummy mask and unmask function and use the one provided by irq_dummy_chip.\r\nAllow interrupt status register being defined from dts and add ddr_wb_flush for ar934x/qca953x.\r\nTested on Qihoo C301 (AR9344 + QCA9882), both PCIE and WMAC works fine."},"comment":{"url":"https://api.github.com/repos/openwrt/openwrt/issues/comments/397825938","html_url":"https://github.com/openwrt/openwrt/pull/1055#issuecomment-397825938","issue_url":"https://api.github.com/repos/openwrt/openwrt/issues/1055","id":397825938,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzgyNTkzOA==","user":{"login":"981213","id":3888062,"node_id":"MDQ6VXNlcjM4ODgwNjI=","avatar_url":"https://avatars2.githubusercontent.com/u/3888062?v=4","gravatar_id":"","url":"https://api.github.com/users/981213","html_url":"https://github.com/981213","followers_url":"https://api.github.com/users/981213/followers","following_url":"https://api.github.com/users/981213/following{/other_user}","gists_url":"https://api.github.com/users/981213/gists{/gist_id}","starred_url":"https://api.github.com/users/981213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/981213/subscriptions","organizations_url":"https://api.github.com/users/981213/orgs","repos_url":"https://api.github.com/users/981213/repos","events_url":"https://api.github.com/users/981213/events{/privacy}","received_events_url":"https://api.github.com/users/981213/received_events","type":"User","site_admin":false},"created_at":"2018-06-16T17:04:23Z","updated_at":"2018-06-16T17:04:23Z","author_association":"CONTRIBUTOR","body":"The following can get gmac1 and builtin switch work, However I'm unable to enable gmac0 which connected directly to phy0 or phy4 of the builtin switch and should be polling data from mdio1.\r\n```\r\n&mdio1 {\r\n\tstatus = \"okay\";\r\n\tphy4-mii-enable;\r\n\r\n\tphy4: ethernet-phy@4 {\r\n\t\treg = <0>;\r\n\t\tphy-mode = \"mii\";\r\n\t};\r\n};\r\n\r\n&eth0 {\r\n\tstatus = \"okay\";\r\n\tphy-mode = \"mii\";\r\n\r\n\tphy-handle = <&phy4>;\r\n\r\n\tgmac-config {\r\n\t\tdevice = <&gmac>;\r\n\t\tswitch-phy-swap = <1>;\r\n\t};\r\n};\r\n\r\n&eth1 {\r\n\tstatus = \"okay\";\r\n\tphy-mode = \"gmii\";\r\n\r\n\tfixed-link {\r\n\t\tspeed = <1000>;\r\n\t\tfull-duplex;\r\n\t};\r\n};\r\n```\r\ndmesg here:\r\n```\r\n[    0.585894] ag71xx 19000000.eth: invalid MAC address, using random address\r\n[    1.222662] ag71xx 19000000.eth: Could not connect to PHY device\r\n[    1.228989] ag71xx 1a000000.eth: invalid MAC address, using random address\r\n[    2.201930] libphy: mdio: probed\r\n[    2.208751] mdio-bus.0: Found an AR934X built-in switch\r\n[    2.255737] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]\r\n[    2.265486] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII\r\n```\r\n"}}
{"actor":{"display_login":"981213"}}