Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756793AbbHZPAc (ORCPT ); Wed, 26 Aug 2015 11:00:32 -0400 Received: from mail-bl2on0119.outbound.protection.outlook.com ([65.55.169.119]:43218 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753050AbbHZPAa (ORCPT ); Wed, 26 Aug 2015 11:00:30 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; From: Madalin Bucur To: , CC: , , , Madalin Bucur Subject: [v2] net: phy: fixed: propagate fixed link values to struct Date: Wed, 26 Aug 2015 17:58:47 +0300 Message-ID: <1440601127-7663-1-git-send-email-madalin.bucur@freescale.com> X-Mailer: git-send-email 1.5.6.5 Reply-To: X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD039;1:nh+hiuu2s6qsQwqvc2FiQNkT3LR1m/RqGmHo1BKQ9YEu+WX/pPfAkrhYGwNgZK4cPI1hCbo4kf8jhAIX4KqVKWzkvxm7T971pZYhL5JYI/Kn/1QvSbncRly5BlJXooX3B4K1GVaKLr3Q7n1P7oitBHhzRu61vFVYJnSNfpkA29L/GIzbTXA20CGFm/XtcRMg3ATwpQF0tdjbtOdQDDVIwDs7bw3uRiMifOJEMfpxw8S/02K3m4vFYoPH2b/XElTBAuT92h1pPvSOskT5WJtK+DEodtwCebQSZK8VLX3ct0Vlh3KKwNE4/otKjl+TP95yoW5SpbKqLY/OzoFhDDYXqBGnxwve9IaTArXl+/rju8pJQYS+nKzqETHLVydLYCsJW7yOt+xs43Qrbj9JcArsEyfNyMq2Tupx2VGPzo7QUF4= X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(3050300001)(199003)(189002)(5007970100001)(19580395003)(77096005)(189998001)(85426001)(5001860100001)(106466001)(5001830100001)(5001770100001)(229853001)(36756003)(4001540100001)(81156007)(43066003)(68736005)(50226001)(97736004)(64706001)(69596002)(5003940100001)(107886002)(48376002)(5001960100002)(62966003)(87936001)(46102003)(33646002)(19580405001)(47776003)(104016003)(6806004)(105606002)(77156002)(50466002)(53806999)(86362001)(49486002)(50986999)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB550;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB550;2:hf1nUnsJNgW52leAjDbcQ0lz05OgYgset1MzL+smMd7gZyIj31cUxSNk8ce3j5Qh2Vdeh6lKWGOlj4UPC4kQCsRpoLRg7lJZcUt505F+OuM4reAVZYNy+GF48Be2xycRCyWL6LgOhc1JV3lv4I0VyW9B6ZJHkIqZzEQEInh/N3k=;3:x7nSDJe0zCIh9atzdZ5rbnyXeDEiA4ydW4rJR3JC5a1kaPQtRNHBjDGL2d23dOl7z2XOcbtISdkY2Acux0rtNzi9wcDZcm3pYCbfGcA6ZUlFFtJQ2hZgNT3fgIJMePdTZk8FIVaFOQZy/orlp030HY2f/WqjnJ5QkAyNS6Fl2UHKDa+eaimVQo34/LlIc6AkBkAfwWtt8PcEwrSAkKIUj3Ov24A1AIXCmQeh2rY9Mq4=;25:yWwPa61fDRWRhn4rtGhqttZykpAzD9out9vZP3af1rBaS2y7GmpQ9yhhsOat/9MulMQYVNAVXoYI1Uohcn9Km/WM3ShzOFUewXgq5yQKIGEWc0wh+XzkGi9UrRh4D7HP6+JDw1iAeF2UM2IG+hfdmUB+OYtfpxZWUp1BkoFr+laTgyKk5r68OIiow+p/ZEkoHHuxSTP60UF0570I2yfP7QeU7vrsnT2zSYR3EXwKNOGn+DLZbqcmFxChGivHoyO6+Z/bprRXb8LRAQ/F9j31YA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB550; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB550;20:96JQuokZkPX10TSYgvS+TiErcz4ESgM9pnFqT1HMMhhAHum43hWK/52bZ4OqnV5+U9HM1GFylmmcSNPP9Mx6m8An1mLLhYDqr07g2odXs/OvTPrZZFlUqzG5AlpvO45hb0DsoUCqyfGHla8Y1PC5838pgv4oyMUGAWuz2tRvV3gTHUBhoHUi3PO33DTHtKAbDGOnoYkA3lumeJiOcsVIxl7Oxq/AX1ePtJlNsE9j5y+NlxZkMRpPyXkD5vNaduRFBnwTrTLqb1t9Gd3ceck0J8UlEbFweOvgGWnw0nuPLIyPYKo3TAvlr+nlVsAFNrvJxx2H2a+OXH4GA6CjBtq88i0EldofjwAWBiNaJWRKuEw=;4:m+bmCw6c/UVQpDZ64VfXVeDqrBd1T6Y77SvSbNWhFTtqBGTnI6AqW+KFi8NY8+Ys4/uhdqtotmdtIo+bvBRT7PrwSMSsR7yAKKUjFuwl2tgu7Vzkol3HbiTkBbw1xhcL3t8k34/UfsLCWoDjDl8sJUk5Wto2RQGM6hUcDweKSkSBemcMS+q0lAIqm6AvoXSDXLTgRO9HLqPm7rGzXR8YIY5Ch31BIDq5m0LieGzmtuIBmKsYjHeeq+qYmZ1Da0PHwAovRQ9AWiq2t4ZbuDFGBAVDniWL1g17cfBdrEM3+g/0ijXD9mIhoDvDNLJm85Ge X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(8121501046)(3002001);SRVR:BLUPR03MB550;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB550; X-Forefront-PRVS: 0680FADD48 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB550;23:hHSPRD/K+kaCSpQyJ1R1vw3AvQg6aWaGA0pWT48RwJ?= =?us-ascii?Q?RDMX65SR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?us-ascii?Q?k6tgHJtO76j55rOK9KtQlMA/Uzrcn4ZHU2tyA6V/K9uO4EWxgBaaKw2cvfgC?= =?us-ascii?Q?TIIatEq8yLpJsAe8QOz1Mru0nYmgWHkz/koY3Zwh/LcWlLw0fefh20z/WqxO?= =?us-ascii?Q?ONjkw+vf5SGpKBGdrFKGRBBc2sCs2y7baWodJp3naj1PPlKL9qRi32K4pfhd?= =?us-ascii?Q?6HP9/0v65OpThAdpnYk3vJ0dfrMH1P155552coYmQ5vLlrGa4RKdzLpDRQTf?= =?us-ascii?Q?Sdd+pbEaYr6XID9BeeZll+byBXhZ3fs7poFJQG+prp/Rk1Bm/0vp0HgQ=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB550;5:S40vqicO0Ath2Kx1Hpj34zfOcxzQkUyUIbNfn369BsDc7w40fjsskRHExnLw7377i49eqM6eOVdghV5iPoZ/r2L+iL+2FTdykA9bFXsZmrkJfCymsDPHWVS/R/eBwM+IewkYYIuuHwl4aCZQhivatw==;24:6JFnm+jQsF4Z8tID4tluK7ks2NHB+M0Qc03Lu7b1SQ0cxqwLBSjYR/rXFA9UKy79/LuuofJDCR+r1eul+bcUeb4ZhGZbCQE8pEWMD1RyPvE=;20:SzcLbqUZsUp6VfZwJq2lJhu30+MOhF7lfZ002f+jqW7elNGfF1ME3MLsWLXBu8+iesU9K/3aBTuOpz2dNtuTzw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2015 15:00:26.3587 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB550 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1184 Lines: 39 The fixed link values parsed from the device tree are stored in the struct fixed_phy member status. The struct phy_device members speed, duplex were not updated. Signed-off-by: Madalin Bucur --- v2: always setting phy->link, thanks Stas drivers/net/phy/fixed_phy.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index 479b93f..99d9bc1 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c @@ -292,6 +292,15 @@ struct phy_device *fixed_phy_register(unsigned int irq, return ERR_PTR(-EINVAL); } + /* propagate the fixed link values to struct phy_device */ + phy->link = status->link; + if (status->link) { + phy->speed = status->speed; + phy->duplex = status->duplex; + phy->pause = status->pause; + phy->asym_pause = status->asym_pause; + } + of_node_get(np); phy->dev.of_node = np; -- 1.7.11.7 -- 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/