Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754032AbbGTMS5 (ORCPT ); Mon, 20 Jul 2015 08:18:57 -0400 Received: from mail-bl2on0140.outbound.protection.outlook.com ([65.55.169.140]:40992 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750783AbbGTMSz convert rfc822-to-8bit (ORCPT ); Mon, 20 Jul 2015 08:18:55 -0400 From: Madalin-Cristian Bucur To: Joakim Tjernlund , "linuxppc-dev@lists.ozlabs.org" , "netdev@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" Subject: RE: [PATCH RFC 02/10] dpaa_eth: add support for DPAA Ethernet Thread-Topic: [PATCH RFC 02/10] dpaa_eth: add support for DPAA Ethernet Thread-Index: AQHQbJe2LWr01iCNrECqTTVPTBGDP53kqW4AgAAAugCAAESOIA== Date: Mon, 20 Jul 2015 12:18:52 +0000 Message-ID: References: <1427905196-27778-1-git-send-email-madalin.bucur@freescale.com> <1437378870.10831.12.camel@transmode.se> <1437379026.10831.14.camel@transmode.se> In-Reply-To: <1437379026.10831.14.camel@transmode.se> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: transmode.se; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.166.1] x-microsoft-exchange-diagnostics: 1;BL2PR03MB546;5:BJ/VJZ4A59Lh5oqircQR68FFPjDKOMTN94S0hrf2lWHf3MzCysLXv7Y+DOyLR4h+tBrFMBZ8TYG4QnRWLBC91geWbFUCMvPmsQKCHQvhdK/H+/E1o5Q8tiZ3SzPmniCFXsnWK4/AswfaYw30aVZI0A==;24:WgQYzyFs1xgqlplrOxJ+WosAq0+GyL391c13LUiXFzmIs7ZNtYsg7nZV5+WShvHgPLVJTHB/JK2kyI+TgEoNuYEGru6Oam+/etm+oseaQ/g=;20:8ZXHE81ckb6kIcbTIMo7HlJX0GQ5x2a9ssEsEQGUWRRxjHgpCwD3MLi+iL/UzwQoA5wfz4yjqk4Mw/iH/cRZ5w== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB546;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB338; bl2pr03mb546: X-MS-Exchange-Organization-RulesExecuted x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BL2PR03MB546;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB546; x-forefront-prvs: 0643BDA83C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(377424004)(24454002)(13464003)(2501003)(5003600100002)(2900100001)(5001960100002)(189998001)(40100003)(77156002)(122556002)(62966003)(15975445007)(102836002)(2201001)(19580395003)(87936001)(19580405001)(2950100001)(86362001)(5002640100001)(2656002)(77096005)(99286002)(74316001)(106116001)(66066001)(50986999)(33656002)(92566002)(76176999)(54356999)(46102003)(76576001)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB546;H:BL2PR03MB545.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2015 12:18:52.6075 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB546 X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB338;2:gScN/6jtbFp7l5MTNmKy5KyYMDBOl0mkmuf+DvqXDvH9bWbkZcayarY8b+BN9ki7;3:rysYd9RShayhGHm2DFwnSzJxG3cqwsrj66sIaSQAC1IFTC6TpDZwytZzR30sk5LwcVVPw/FC5nqaa0lTu5nxOpU51WMn0mH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UpyyaRBM1Y1BSaEynkh+I8zXPdDu7IsyVWQB8vuPrk+fGSPBxWznPvUl8DhA4Qfw1lyCT3VLSjA3KP8y1jdZS0BlDKEeWNhnm3+I9ey86QRQugizYU13tvy2yaxXyvtcKHjph8ME8u1aRsFmm1VjfLXunR5GLKjatRu4lk9p+TGuy8IFat+bGc BL2PR03MB338: X-MS-Exchange-Organization-RulesExecuted X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2760 Lines: 66 Hi Joakim > -----Original Message----- > From: Joakim Tjernlund [mailto:joakim.tjernlund@transmode.se] > Sent: Monday, July 20, 2015 10:57 AM > To: linuxppc-dev@lists.ozlabs.org; netdev@vger.kernel.org; Bucur Madalin- > Cristian-B32716 > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH RFC 02/10] dpaa_eth: add support for DPAA Ethernet > > On Mon, 2015-07-20 at 09:54 +0200, Joakim Tjernlund wrote: > > On Wed, 2015-04-01 at 19:19 +0300, Madalin Bucur wrote: > > > This introduces the Freescale Data Path Acceleration Architecture > > > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > > > BMan, PAMU and FMan drivers to deliver Ethernet connectivity on > > > the Freescale DPAA QorIQ platforms. > > > > > > Signed-off-by: Madalin Bucur > > > --- > > .... > > > + snprintf(net_dev->name, IFNAMSIZ, "fm%d-mac%d", > > > + dpa_mac_fman_index_get(pdev), > > > + dpa_mac_hw_index_get(pdev)); > > > > Should ethernet drivers dictate interface name in user space nowadays? > > I would prefer if you didn't. The preformatted interface name was thought as a helper for quick interface identification. It also ensures constant naming of the interfaces, i.e. if you add/remove PCI network cards. One can make use of udev rules to override default interface names ("eth%d") in userspace. Another reason for using this is that the interface name was also used for the debugfs file name and when compiling dpaa_eth as a module there was a problem with udev concurrently renaming interfaces from eth0 to something like fmx-macy, making the next probed DPAA interface temporarily get the eth0 name (before being renamed fmx-macw). Subsequently, the debugfs_create_file(net_dev->name,...) call failed because of duplicated names. If this is considered more of a bug than a feature, I can remove it and only change the naming of the debugfs entries to avoid the udev issue. > > I am trying these patches on a custom T1042 board using Linux 4.1 but > > I cannot get Fixed PHY to work: > > libphy: PHY fixed-0:00 not found > > fsl_dpa dpaa-ethernet.2 eth2: Could not connect to PHY fixed-0:00 > > fsl_dpa dpaa-ethernet.2 eth2: init_phy() = -19 > > > > Not sure what I have missed here, any ideas? > > I meant I am using > http://git.freescale.com/git/cgit.cgi/ppc/upstream/linux.git/ > on top of 4.1 > > Jocke Please make sure you have CONFIG_FIXED_PHY=y in your .config. Can you please share the device tree part where you've added the fixed-link entry? Madalin -- 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/