Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753065AbbHEO7y (ORCPT ); Wed, 5 Aug 2015 10:59:54 -0400 Received: from mail-bl2on0137.outbound.protection.outlook.com ([65.55.169.137]:23017 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750954AbbHEO7w (ORCPT ); Wed, 5 Aug 2015 10:59:52 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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 0/2] of: fsl/fman: reuse the fixed node parsing code Date: Wed, 5 Aug 2015 17:42:23 +0300 Message-ID: <1438785745-15517-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;BY2FFO11FD040;1:Y7kKm2ExM3xbAI3FIoeiau7Gy2dRi4t0/XuGF/4GvHMOFvlKBj0vhqbzXvvAuQMv+X2jB8IFmzLqnRmVmdwbD+d21s5XFx33KipzG5J4hvutBdbxvj7pcq71xnbyiVRwWeRNA9XiRAxKCaZLfimvQ1vdQMqh+RJ+z6tODii55BFR5BnBdtkq/A+IuIPtON/+/vLFLPMoNp1m86w+wZ0tzHCXwNJhRtkk9qM5xZv3OrmhnaV/tBAAbhOy7yceSqziVoqMLf/bGJnI04mxGlCh9lhoDiTXAfIEGkpyN9lWUK9Ge39JrGM1hdNGBbDNRssHsiKcBee1dbDliTv+tJwaew== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(5001770100001)(62966003)(50226001)(81156007)(46102003)(77096005)(50466002)(33646002)(48376002)(77156002)(107886002)(106466001)(4001540100001)(104016003)(97736004)(5001860100001)(5001830100001)(5003940100001)(86362001)(36756003)(68736005)(49486002)(53806999)(15975445007)(189998001)(229853001)(5001960100002)(105606002)(19580395003)(6806004)(43066003)(87936001)(50986999)(85426001)(47776003)(64706001)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB555;H:tx30smr01.am.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;BY2PR03MB555;2:VItXn2YIOqH1GzAIHEiMZda+Ee4NAgVtY2krcwdRbItoelwelRRx2EzD9coTWqFpTDHlLF371jyVev6mH0JGNxKcvQY7wISg7YOqh/aevWXPoErX6TzZPrUraaLiDoXDDVnQxH6Y8Xm2oKL0Wx0mxBGV4asZrGH0tQFr8LM7nMo=;3:TKFocBfTOEP8z8XIQv0WTs1lHOQTQGrr4xTgKZm3IsUFZL8ak746hNSzyj48GbRxQ5W5HW8NqfjnDJZ+UPcNZyYtCGI2GDmCeIPgLnXylBand6If9kHKdruzOkv39rUR06bYlTTYJzrNAav8lnZuUoxkOQwoCLMyCdwrJ9WbW6tGsuHAFsp16JvLeDMVum9rVg6xfbfBb02nCeiWbnVkkBGp+GRaP8k3V8AFYjgPX2w=;25:3vax2wzOg6OI/gaZWc5zOn+OLtQvrJxLgOhzDVjzopZfkQSSSaEu8AiBGuGp0IMH1iE5sjZhhfY9AXlBXExMC/QCi8v+RlZP/uYHimiLz1/dwtM8RQZGfZ7SOQ/R9JMWSae/hCnvyzPIV0rjZ+BUn51ZLCNbMAu9jYtAIKdnP7HShJ8xlWqNeqFGwpTH/INqZlYB4RJtfNJPjGsL8vLhw/bVDTzKOfUwPml6amq+WicQj4a6MnPZC7KOQNVMJfY1IzZ0d0CsigggFM6LdUpLUg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB555; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB555;20:EaAKJLHsKlnITbbiheRi7KCV0Yc+MTNxkY9cYKNNoD+D09HsQPLu7X0qETyDRqY7vUJUMyq2pixtJRhdskUQkGyBnlIR4ZJes9pF5xeISNwvTA8NLYHqs/fCsYx1F7VonJpkP2VevzD0hzUZlIS0np9/FmrzG4mkE/rtHyjnFHltI2pvqHTWrWBoR0yDms6J/BXK6Apt1vU7NWDJC3xNKC2ASSLUSf3O+PmM4S2XU0ZzSRwZ+34OOTzJcxMjIrLt7/5lcVBwsCaGUDGCTGxMYbFK+EbzJvhlO6H5cf1Opsa9jOkRFPbyehYug34VNAsSzmLcWQYqxEyfgFPuw117rUgCYXoV98mU/Fotv2Jr004=;4:xy+APcj44ToVgrXeviLk/mVmsQwIpvHCDK7n8lqhsld3heSnz/o4qY5EJP7QFl1RSugqWl+ZKNfvUUACuGzuU+Pw1iJxVy1JiyC5ol9xaG8VXOjFsyQpkB2yQpnZGC7oRkdzpfWwltxfmt9oabAu5Crs2O9HtvbqwQdTA7KqtXNYh0wFnL3cpGyj/Uf2KQmb6lVNKYAD4TEGmfHhZqmJZwTSQIzKWpeCvwV0cYrjdT3TYr0E0XsoBr3GNIkkFuMuWe/HGUt6iF3S8FDgUdGwGu3hExmA1ynuZDQGOWYY3B4= 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:BY2PR03MB555;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB555; X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB555;23:KhgFz7ZGI3AoUSDsnvMKk7G4JfCHvfnOUXanQTpytQ?= =?us-ascii?Q?QNMUkDj4lcWiXz1K4M6QS6ZixOIcqJzXwqkerIMcYgfG29saCB8mQEmnRED7?= =?us-ascii?Q?6ZBvOnD5qP/qSIxIP7dslj6Tzmus1rM/jti7SppPiObSpU7svhg5FjFGamA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KfVrm0f0XnACo1boynm7aiqq?= =?us-ascii?Q?u+CulSDj759HBZMrR68YsgF+crkdlsiWQcHveiA20Nz1CjPxiioKAm2y/p72?= =?us-ascii?Q?fYhP5cOsr0g1CF67Krk06q9HX+xF3R?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB555;5:uLGBc50dUKvG7sELMFKRe/wAlw80HV/9I80kKCAXoP1HgnshS2v0sXAzJHT5bzFzXQ5+Zbxn6w5mA0+APKIGu81GEXmnaAMfwbm10d20VkmcJ2oPjD4v5EyfZhHQzGx2Fjv6dvqdMiGNkxqPCszCpQ==;24:TfXtSKNuWpzZP38kFGRQFBo8In6TVfLNjfQ4epxmTLSmtnmfMcqFsAp8E1OyuB8ZCuOsiFxPMceoOt7Yp9ngVAhr/6sAzDxz4yCtHI5dROw=;20:xF9B9i2iNyFGq9pqo7iSK435WI3SLP0Y8YzliW6LbCQa7bikRdMyeFAyVUgW212nbJh11S/oxDQWPTCeWbur0g== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2015 14:44:04.9469 (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.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB555 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1656 Lines: 34 The FMan MAC configuration code needs the speed and duplex information for fixed-link interfaces that is parsed now by the of function of_phy_register_fixed_link(). This parses the fixed-link parameters but does not expose to the caller neither the phy_device pointer nor the status struct where it loads the fixed-link params. By extracting the fixed-link parsing code from of_phy_register_fixed_link() into a separate function the parsed values are made available without changing the existing API. This change also removes a small redundancy in the previous code calling fixed_phy_register(). The FMan patch relies on the latest FMan driver v4 submission by Igal Liberman: https://patchwork.ozlabs.org/project/netdev/list/?submitter=Igal.Liberman&state=*&q=v4 Madalin Bucur (2): of: separate fixed link parsing from registration fsl_fman: use fixed_phy_status for MEMAC .../ethernet/freescale/fman/flib/fsl_fman_memac.h | 6 ++- drivers/net/ethernet/freescale/fman/inc/mac.h | 2 +- drivers/net/ethernet/freescale/fman/mac/fm_memac.c | 42 ++++++++++++----- drivers/net/ethernet/freescale/fman/mac/fm_memac.h | 3 +- drivers/net/ethernet/freescale/fman/mac/mac.c | 18 ++++++-- drivers/of/of_mdio.c | 52 ++++++++++++++-------- include/linux/of_mdio.h | 9 ++++ 7 files changed, 94 insertions(+), 38 deletions(-) -- 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/