Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756814AbbHZOuS (ORCPT ); Wed, 26 Aug 2015 10:50:18 -0400 Received: from mail-bn1bon0114.outbound.protection.outlook.com ([157.56.111.114]:56076 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756374AbbHZOuM (ORCPT ); Wed, 26 Aug 2015 10:50:12 -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: [PATCH] net: phy: fixed: propagate fixed link values to struct Date: Wed, 26 Aug 2015 17:48:28 +0300 Message-ID: <1440600508-7531-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;BY2FFO11FD011;1:fmPpxtxG5AXWHVPBZexMrZrnoLWSEHIOB8Z3NKzq3HX8Flb+ngtviURF51PlNtMNhyRx9P2jGCFUlBeCNg0fCzEnAz0WO8S7+5X/qifyE5nze5IAOSSQEinMTI8Nr11rwd/0MdO64WRleYFB53ksZ0IIyYz7U1b4s4IT4LoUuoMZ+AN6ou3kFAVWBxI6aaV3sOGoIgWtwA1E9qXFDaLHFUQXHJ/n3Miqk4udGESSW9E97aIm1yn6ytIV4NlQwKe8bbhm3zYX/pyV5O1aU8wYLbNWkr1q4/yPUtiERUPk7TklRW/+3EXbBaWG58RmurAdqLz58yQqLiV2YTC2q8Ia6ZR+72F6XgPYwOt4Ha0elKj8g8wO7I363J0vuFGk35Djix1tFFCq4HfI1rb7bSGdQGs9XCTqvmemyrqI1XDG3KU= X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(3050300001)(339900001)(199003)(189002)(19580395003)(69596002)(85426001)(50466002)(6806004)(5001960100002)(50986999)(50226001)(86362001)(189998001)(48376002)(43066003)(47776003)(107886002)(33646002)(19580405001)(49486002)(87936001)(5001770100001)(64706001)(81156007)(77156002)(68736005)(106466001)(53806999)(77096005)(105606002)(229853001)(104016003)(36756003)(62966003)(5003940100001)(46102003)(5001860100001)(5007970100001)(5001830100001)(97736004)(4001540100001)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR03MB557;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;DM2PR03MB557;2:B56vwOugeBYkmJomfGxgyw49+Kckoc3z+Z6wepchuAgUig1X05YL3iBItQyOZDUZxcCGHtEy8e2OOMq4lt93yPzRJwbZ32nq/BjQEaJ6Ftdd1m/0K2TJfLGwRvvrJ2A8H6elmXqOXUmhuViY9mTDsJ4l7o+SUzeukFtOSPccUu0=;3:M8Q4o4aN0i+NBj61SFUmaAkavVUMPF6Umtgp1vLvcuI8v5VxDOT/LSbIQ9KcbCm7X22JiiXrNRvHR1byHf47SSwkdy+TsiFJ6aYtKuBTXSColyrd5pK3PantF8eXlLhCF7z+6sV/kXVn+dl7lpmJptsifvIPpOtlz5b5kw0qqh7fhW8QzjKuhjiFQl3A1lcyjEmUYBtp0pfxd64O8BpM+FM78pz50HqMOshzekQuGto=;25:NBNQ02GVNnnc3hRPvn3coI7hkOmk9N38WcnOsfZ04ipaMDuNpYRgnHUS03wBoy1aEIhWicrQkkRBjk5ekHqvNKBbw3LVbEOUFvddUGgYvGilBBDNNVK8HPPhNPYfnazSmD+EmpqHzFuQn9omLhAgN4fMMWR1n1AFTDq6zyDX5PQjcXzZ/zMjcBdufQqlXz4wXb2T6MEBNMfuUZqGZS2FGV65wDG4ouTwPKlfZNIXJbZhhViWZoOc+z6gbfbpVTsEjwZdsL+HKwPrqO4oC4uNcg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB557; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB557;20:SV8u4ivPzsO4UHM7Ev+qAUGie0HwFmT6LvHKEf7426Qv62JZMIo5vVGsNieuV5ev4iGKBOtbavp7/C6QAAfjIEQ0ugQt9kPHQ0vctuVwbx59/FnBW3PxZ1p7XR0IdK7T0Ysb6Q76GOddQmEhuk/Z7BJBjS1NIkY2zj+Z5hMNkaIi6w9qYpjO4JbV1jdc1f1I/1AyhKs/VnNfRoT/svlgWZFDZKmRGEywB6Rdap9E3NoDcaK5Gjwf5tgEz9/Wixbh4lmI0LZgcDdYRtwHKYtzO9FekrMSt3BwvWXPsy27XRdi/37qfLG5UzhiJhL0VVRcQosEKQJYA86FNDx44dwbJPChqylIpH6EVwYQv5sjlHE=;4:hk7fTBLr/OfwJFASTqvG8DQhQ+twHLWRtGPviCE94126+9dF/WQL4Dc4memKYNflMH6u52q2k62u7DPeMImdOSWMX+Aa3S9EPSgP+1Q2yBzbOSiyqLhIlJ97Ff8CX1x3Wr8I/W2nkc8wMAT3For41/spuwYuV1ROK9wy/DmKYpq7wBe1qro7enbziiYyfzW+x2kh3RNLaRIZdpO9fMuXBpk6O6dJ0dYxwXGu///47SasRHOsAAzXSc91iHaSGlyA6jFiW5YJE7/BxeYxuIf1p5c4m6HJ1wS60NiEkUt1Rwbuk8nvUjCj73QJe/uhhF06 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(8121501046)(5005006)(3002001);SRVR:DM2PR03MB557;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB557; X-Forefront-PRVS: 0680FADD48 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR03MB557;23:c4l87EIzgKUQEsD/n7fg85lMPfJd6XrEArFLI0i7TZ?= =?us-ascii?Q?QJkTWR2HeVoF2XH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DYw?= =?us-ascii?Q?CHZWb0NFno8qY1GKtV6h2Vcn9H43MY2riyHJLdrGOSA1R/nTKzXtpYRwz8di?= =?us-ascii?Q?vH1rK7UrHF3NNzPb0pKzKwY2EWn70ct0mKdCUlWa3REVujwrBrm5cNtVWzEu?= =?us-ascii?Q?c24QJOnX8zlt6lLQWrMCgLIUFKw9/++9nn+6+X9OZ1agAbvlSwf/1SVysc+S?= =?us-ascii?Q?BFIE/P08w4M1mhUIWTObKBuNGgIpfP4jLcIJj5mKQNCZ4k1LclxZb9Tcs4z/?= =?us-ascii?Q?3kmxG83IYWKS5N4R7IsrVY24X96ON3aC2E5qZANdESoXHGc1c9Yb2lBw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB557;5:2sHQnhkwdsK+YwzaErMiNLja/pS0FEN5PKkfZ56XbqVRW6sKS0QiO/hHEM5Cb52yoDDR5kL47n9UXMMSEzyMFepXWZcKTjW0SBVrxdkBEfiD3hPVCe89A20zs8CyetTuSeheGb43x/27GrrRnA/CFg==;24:HZXYZ+HiR1me30C35jHLK6Whaitthcb1xF1FktLmgG+IU58W5gy6d/indC6s5FubYSJ/2YYwbGpZJWPmh023BWiKarWtmyVbpoBZWb6d0Bk=;20:j1coam01qW0hyQNi/AY2DXWZIu24zbEv+ekFkHm0+h0LmfJm13Bqww5DBtjbDfSn0j1A85H5C4gX8SLCuAVCDQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2015 14:50:08.2143 (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: DM2PR03MB557 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 37 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 --- 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..20731fc 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 */ + if (status->link) { + phy->link = 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/