Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755936AbbLDLfG (ORCPT ); Fri, 4 Dec 2015 06:35:06 -0500 Received: from mail-bl2on0057.outbound.protection.outlook.com ([65.55.169.57]:65476 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752222AbbLDLfC (ORCPT ); Fri, 4 Dec 2015 06:35:02 -0500 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; cavium.com; dkim=none (message not signed) header.d=none;cavium.com; dmarc=none action=none header.from=opensource.altera.com; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dinguyen@opensource.altera.com; Date: Fri, 4 Dec 2015 05:27:35 -0600 From: Dinh Nguyen X-X-Sender: dinguyen@linux-builds1 To: Andrew Lunn CC: David Daney , Pavel Machek , Florian Fainelli , "David S. Miller" , , , "linux-kernel@vger.kernel.org" Subject: Re: SoCFPGA ethernet broken In-Reply-To: <20151204015057.GB28005@lunn.ch> Message-ID: References: <561FF9E2.30102@opensource.altera.com> <56200687.9040903@gmail.com> <562005AD.8020903@opensource.altera.com> <56200BD7.8020505@gmail.com> <20151203204811.GB14427@amd> <5660B2EC.1050705@caviumnetworks.com> <5660CD87.5050603@opensource.altera.com> <20151204011050.GC26934@lunn.ch> <20151204015057.GB28005@lunn.ch> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR11CA0008.namprd11.prod.outlook.com (10.141.240.18) To CY1PR03MB1376.namprd03.prod.outlook.com (25.163.16.30) X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1376;2:nscEh/VwyC4IBaAHJEqpQIKkjaQVi3OtrIE/wXjnXx5EQxSTijzz+Njn7shJcJhGbeQbhQjndJOez1nwt8SiFfu/k21LGNKvvu60mfXYQdB0EnZPvS5i9OXr5czVIJp0xUCdY+02HZff65GOmbq9/g==;3:X+WFnANuqkm9G/4e3yA3T29MgCeD+CvOpUYd6KMOzzOK562svvCzRAtS87intEkh2y12qbKTqJ4g3+J7pPU64WnPBL6O88pIhkOlmIihySo6DB9Qcd9Pje5zJ5mxheFm;25:2MrildQwrNLnhLjhkRxKCWbFKHOijBqzHatNCMWA75X6AgWhUjKTOmHmSL+e2Y/Bqao058fTMNqirxeeb01x6mB1jiS452n/2hHKPJajGkKkfnNPGc7O+3XMOOcu30j1QaOLs5U7Y7IM/RYERXGDNyl9ORZxqqkN/jgLKrb0+xXeer4JXMkYhVTORnYl0seGPIyTOu9HQnqefiKUbmm535CkcORmq5BiNG5B1hQf6R1KXRH2DzF4HVPIBUPDXuJTbhmexcURgz6ayIKNOnRJsQ==;20:vseY9tqD0Il6Jh4zWpwo5VecNMIbXJkgVi2xz0tDLPiaRy5GJbGyKdPlF6g3Hh4zMuGhozo2tE6fME1cHrUYau1hPf1ZtAt8nvdvnMw/4UXRCAPmU+44ljKZvQJ0ZxFvBNDaMpMMqk+/6Af+Vb8sQuTjkOThjl7Q1oRBuJFU4ps= X-Microsoft-Antispam-Untrusted: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1376; X-LD-Processed: fbd72e03-d4a5-4110-adce-614d51f2077a,ExtAddr,ExtAddr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001);SRVR:CY1PR03MB1376;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1376;BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(10201501046)(3002001);SRVR:CY1PR0301MB2075;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB2075; X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1376;4:hTIRK1bGw6xT+UCRmja3z6UVLmFAwx+c6LNjzoqfVGOyT3hscl3kU9mjK6elmBuk6OZ3WxqXxKnejAQwfoxwT8US0etlIzj16HlkrjdWwFxzh1yjKXPqJZY0g22+vM+uSLUYDgWWeJ7gCYVhsofR9XScU5kSOrh6/7TuslYpkjQ2GJC2L0OJUY2Wq6oDZVGjJ7rirOaI5qd6+kHa4HjhBB4imxxc5NnPpeJyHQeNP70/imaNDW+/e0aZXyC5U3wYPo4O7mLCETTWZaXbi3I3fyhlQDMi3db8Lu1brW2imecsQs6fwjk32CnJPl1rqwt8w9d/C9bFaCqC8MBNnx9bJ2s0ABae7e4LyxH4wP6lEN77ZSPeh5d3XRkSgmR9Wg63 X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(24454002)(199003)(189002)(77096005)(5890100001)(87976001)(586003)(6116002)(2950100001)(50466002)(66066001)(5004730100002)(33716001)(3846002)(23726003)(15975445007)(47776003)(86362001)(5008740100001)(575784001)(1096002)(53416004)(83506001)(5001960100002)(110136002)(76176999)(97736004)(42186005)(4001350100001)(54356999)(50986999)(81156007)(122386002)(19580395003)(40100003)(105586002)(93886004)(106356001)(101416001)(92566002)(46406003)(69596002)(19580405001)(189998001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB1376;H:linux-builds1.altera.com;FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;CY1PR03MB1376;23:gvZYtchIRxcKSuj1g2NmX+VFqTJEd+e14rS17wiz6?= =?us-ascii?Q?EZx215vN0/JYRdbegbbgi2RF3HlMre+CGlfvc6lwWo6YuYmuzQi88mWmKd+n?= =?us-ascii?Q?ust0LsLGdSZfgsQhSpaJxQblBFTExs3TiPgiTxA1Yyh6xYr49GN8VKxmnCTW?= =?us-ascii?Q?vD7S1pgsA4O4nTcPucfIU3UrIeeEZwtQywM5USUZk71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9rsPdg2igPOnHczMD+eas3cPSwkmZI1v1zmMAKHj7kO8x4?= =?us-ascii?Q?vzZM1dQJq/TFECteIofPvtIqO15zwbsPS69X+I8qSKS8S1p9gNCDhA1rbwW8?= =?us-ascii?Q?A6BJCUV/YpOlmY=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1376;5:+JnabUHH+cl9mfoUUtHgJX9P7VVMyHyEmP9MHM+HtoHGRDE9PyOYK8ohva4t5Rs+cW0ZioBeSP7dgnLtY4hnXjVsM2XrDcmXULQmPH0ba71uOBI7IeLxdirBnTIIicOs9Is1oErgGF7DYYGWB3RhjA==;24:+8N22jmLxBD3uICZEJ7KMsI3hPGV6DgaKTCgkV68VdXo3AA+LnCVml03n5QJ9s+kMaQ1HoHZWo4dS1Yw+2H097KBlLuhKd4HwTWgDG58a0M=;20:CUBqb3y1fYjUZOrt9XWi4gBd8Vc6f/XA02RAhJeq7jSzzQ7816A7WSg5qNnSED0+wu1lWKS2ydOz6drD9Of8aEnBFZ2bz9OE+5fH3JzYZHsjH5Z4oGpg7VR2qJD5BX/xem18VYEtknf2Jmm5jad7Ve5BT8TN03WtJVl2qIlrVVs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1376 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BY2FFO11FD007.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD007;1:S98261JLG7oX6QBxCakOMfS52JD+b2FXwUkgmGH9vD2s0AokoP+bTxndAOxWjO9gZh+fRXVy4WoF3963LNrNRS6WQnFFjat9EdzpA29GdVRgOSMeN5rBqJVaMh5cr6eu6APxNutALxB0B5lsmDln64A5hcnkHFpJhXNAlF/Szj6LUoC7TZeGcVHTVdi7PEuhwcypF1MImtcxzbLethOC7NEQXxgEaFUkaY0sSd8G9nJdT+f4WzPPrcsmh6uRLfaXSdiQ7l3mFNmG+6hdcwYuZvsb9ELwPmJmWhci8STlkWMRz/3ccw1Xq/DJcRNXdJEPauSblx8BkuNOGw++hTlp2U+/tEM9lfbaypDlDo1VhFK3GoBQeWY3ZtoxmE85pZLXkDpTXnrXRZ+u/N60BfNa+rbM60vrwG0fyD5d4fYfnkM= X-Forefront-Antispam-Report: CIP:66.35.236.227;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(24454002)(189002)(4001350100001)(2950100001)(110136002)(81156007)(40100003)(23726003)(106466001)(575784001)(122386002)(86362001)(21840400001)(33716001)(105606002)(586003)(85426001)(16796002)(1220700001)(97736004)(5890100001)(6116002)(5008740100001)(5004730100002)(3846002)(6070500001)(53416004)(83506001)(92566002)(77096005)(15975445007)(189998001)(47776003)(19580395003)(93886004)(19580405001)(5001960100002)(6806005)(11100500001)(87936001)(1096002)(50986999)(50466002)(76176999)(54356999)(46406003)(66066001)(7099028);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB2075;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB2075;2:1Fy0GLYUumTiMszIj6wH23IO6yMzi+1QGfhPmz/y/jjwAp8JBUqJL9FlKyoS6JU1Npe+E2qv5azyVZd83U3W8ycW4iZc15f6j9Y8NahnV6L8HnPZuAzwVD9fCjE+DNM/ppbJMSxBGla/rNNEWxkocQ==;3:IKsqu2rcmwHYcICWZbRf7pgK4lK1ncsxm6iqf9h5WJKQDqrBUtx2WRtC0zdbstYYk3JClYRculp+buJPZR3ykjlA3azjktDeJO2HJsmuefLQw4LN5G0VAriX8XUt09ynKCFUESwQvCpBpJqOGDdDuF/BlG/jaunY4qFQFRXg8XYoZJim601BzbjXM6mo+BYmMNFq67VeCkAXOEuqZga0Y9BVwe/xkZgVoGBHlRaHZyc=;25:mO4PGkxn8yELkVwUY4LmJz54a0ONijuYigMqeKwT46foRRUkzVQpZxrtWf21c5KeUxaYydYN5H8G4ij7JTGS10T0Wg9n+ZD2yybfza6KCs+7dWxOEXGJYP25bgE6c037MvHU82txzKBwHMIcv+3zQ640DPqiaquCoNJU1VBKiN6euo8lzmZwhTsZYLkLot+sRKaI9x8LAQ4U9QoPf6HDy8Cufg/lx263pDmuJUASco5+B7zYgH6uM7RbmZeEHH3m+GXWSlOEFBTba428oDKNjg==;20:Xp9P19pBGNNsBdjA7h49T22d5P4mbEs29/16EKq/zF4LMpWSJJBdpPb2B1j0gxLyIJFWhmcJ8IyPBdjo2nL5WwpxFHMLGQjz0j+OZsVICMNP/hhs30MnXLh+882/om45LyJbmYCFlAKhde0VwF0rH5R0R3Txh7lKUJD1FJ2FfOI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB2075; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB2075;4:YerCtYk+vSljhbOvUD+VlzyYs2bkK05riu0BTLEFPh6IGoto12ZGJGBquoXv2NxwTne9TkzWqSvM7Eum6/LCe0XZYN1lrTgPPw2RpsB5PyKwi8Sy/OqExE7mvYtYsKJgm+cVVq5vS/FZe7B9JOogWEIlQFI8MWvRoDqDhrp72hk4crh6PmYt6NCxmyufyUjDawRNxBYCK5cLmfGLvTFQaDOE+wkfry7IxKJondmuczLAmIC5E+WxzyB1q4v3s0ovIMNLU+8JY6lpqGQY78sFhxsDFmC6/zJzx/6LPBBhSdzrskaLMn/x/z3+JSFuz9ir+WAZIeYlkbJR9/olJxtkdVbyrGOq5u/uHTEYn3eoOicIw84bwpuOYdKwP+Fb6drU X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB2075;23:wUkJBYupbR6E+P9wQGJTQAw98NDQiPETIJA4tnG?= =?us-ascii?Q?ndiud0PAGTLmslIoBYXiMat68/v8qY9HWHyCPvMK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hnGJYmMPtuJlB4WlN4ggXgXFDd+9ju0Yy9i0WLQvo9iIt7?= =?us-ascii?Q?l8/Y4vSE94GP7yOEd5zuRsN880FmNSJv2f8Lxb9QU+SfNUZSbZIWPqOwhRv3?= =?us-ascii?Q?UGROLIqeeXG1FueozbAIq7NZxQ9x1lmRXcQgc2GAaOhfFRnUFxXE1TwUFDt8?= =?us-ascii?Q?soS33HV17ub5OUGFie2goQe515ksksvaDgAJssbkxgFCyeClZoN2Pn1Y64Vz?= =?us-ascii?Q?RwHlig5S0ImnzvAMzx21DOjOTyIE1w1YLA6373U1Knjve3N2UNJKzM19sgM4?= =?us-ascii?Q?npfAcm+VEd5RcFQrVYdHnvfIbljU4UigksX/JCa664rteZ317SrZb82EhmIl?= =?us-ascii?Q?HrUC6bnorJHqrNY4L1mTWFsMOmITgOLcsgCxGckSijvjo8EStFAFlrrsimFS?= =?us-ascii?Q?UclxJ7GJLx59Lf2N3VzEc02Oo5A6QLaN6LEB5LqfWcLlx+rBK?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB2075;5:X8SU1h7d479AUVBAE2Sx/G7xMzYhln32gvuOuQbk3JpjDZTZyALFoLdJMkZ9Po7ByUOa6em6/drow01IDQSNKC6KgSqVzwD+ZBzSMLQweb0WQ3v9yQ2k2M9HoUzrucddJHIX6FwkzyT5VUxeroUytQ==;24:JWA62oKK4U4X9dKs7NpA72YUKouIXSLLSZm3cTCc9YzbK3DdsI7yYJg+oCuIMPjatA8J1BDZ7boVceZGyrQLp0ZbKqnhOT9XkyzICfsWrw4=;20:2H7rfnckh93rWGjJRKoCaWfYzogmtgGPOlPgC4ZGsv0+iO5HAAhK6kvZ/pKMu+8kuShgGN0xjdMhTKZo3+aYPJnMLPdJ9wmI7531UBR/2bk45tix/nyp1rxOD7gm6Gw+YJiAYX/PiWmvemZgNNN6rr4tEG0eJna3TDUosT1NGew= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2015 11:34:58.4946 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.227];Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB2075 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3320 Lines: 93 Hi Andrew, On Fri, 4 Dec 2015, Andrew Lunn wrote: > On Fri, Dec 04, 2015 at 02:10:50AM +0100, Andrew Lunn wrote: > > > > FWIW: My initial patch to address the failure worked with the original DTB. > > > > > > Can I ask what patch are you referring to? I was sidetracked for a while > > > on this issue, but I still see it failing as of v4.4-rc3. I'll try to > > > get back to debugging this. > > > > Hi Dinh > > > > There are two different patches: > > > > https://lkml.org/lkml/2015/10/16/669 > > > > and > > > > https://www.mail-archive.com/netdev@vger.kernel.org/msg83183.html > > > > Although the first one works, it keeps searching up and up and up, so > > you could in theory put the phy properties a lot higher than the MAC. > > > > The second patch restricts where it looks for the phy properties to > > only the MAC. But it does not work. We would like to understand why it > > does not work. > > Hi Dinh > > Please could you run this patch and let us know what it outputs. > > Thanks > Andrew > > diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c > index cf6312fafea5..d7ddc0bb0e7f 100644 > --- a/drivers/net/phy/micrel.c > +++ b/drivers/net/phy/micrel.c > @@ -26,6 +26,7 @@ > #include > #include > #include > +#include > #include > #include > > @@ -339,9 +340,19 @@ static int ksz9021_config_init(struct phy_device *phydev) > { > const struct device *dev = &phydev->dev; > const struct device_node *of_node = dev->of_node; > + const struct device *dev_walker; > > - if (!of_node && dev->parent->of_node) > - of_node = dev->parent->of_node; > + dev_info(dev, "dev->parent: %s\n", dev_name(dev->parent)); > + dev_info(dev, "phydev->attached_dev->dev: %s\n", dev_name(&phydev->attached_dev->dev)); > + > + dev_walker = &phydev->dev; > + do { > + of_node = dev_walker->of_node; > + dev_info(dev, "walking: %s %p\n", > + dev_name(dev_walker), of_node); > + dev_walker = dev_walker->parent; > + > + } while (!of_node && dev_walker); > > if (of_node) { > ksz9021_load_values_from_of(phydev, of_node, > Here is the output from the above patch: [ 1.042049] mmc0: new high speed SDHC card at address aaaa [ 1.048017] mmcblk0: mmc0:aaaa SU32G 29.7 GiB [ 1.053506] mmcblk0: p1 p2 p3 p4 [ 1.057708] dwc2 ffb40000.usb: Configuration mismatch. Forcing host mode [ 1.064418] dwc2 ffb40000.usb: no platform data or transceiver defined [ 1.070966] Micrel KSZ9021 Gigabit PHY stmmac-0:04: dev->parent: stmmac-0 [ 1.077746] Micrel KSZ9021 Gigabit PHY stmmac-0:04: phydev->attached_dev->dev: eth0 [ 1.085389] Micrel KSZ9021 Gigabit PHY stmmac-0:04: walking: stmmac-0:04 (null) [ 1.092841] Micrel KSZ9021 Gigabit PHY stmmac-0:04: walking: stmmac-0 (null) [ 1.100042] Micrel KSZ9021 Gigabit PHY stmmac-0:04: walking: ff702000.ethernet ef9f3538 [ 1.133638] Sending DHCP requests .. [ 5.104138] socfpga-dwmac ff702000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx BR, Dinh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/