Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/818977/?format=api
{ "id": 818977, "url": "http://patchwork.ozlabs.org/api/patches/818977/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170927073414.17361-12-clabbe.montjoie@gmail.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170927073414.17361-12-clabbe.montjoie@gmail.com>", "list_archive_url": null, "date": "2017-09-27T07:34:14", "name": "[v6,11/11] of: mdio: Prevent of_mdiobus_register from scanning mdio-mux nodes", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "dd1f12c3cd03e461431d44db0e8702bcac0c3135", "submitter": { "id": 64152, "url": "http://patchwork.ozlabs.org/api/people/64152/?format=api", "name": "Corentin Labbe", "email": "clabbe.montjoie@gmail.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170927073414.17361-12-clabbe.montjoie@gmail.com/mbox/", "series": [ { "id": 5300, "url": "http://patchwork.ozlabs.org/api/series/5300/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5300", "date": "2017-09-27T07:34:14", "name": "net: stmmac: dwmac-sun8i: Handle integrated PHY", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/5300/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/818977/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/818977/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"VClnQki+\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y28m75cqhz9t33\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 17:37:11 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752338AbdI0Hg4 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 27 Sep 2017 03:36:56 -0400", "from mail-wr0-f194.google.com ([209.85.128.194]:34351 \"EHLO\n\tmail-wr0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752306AbdI0Hgr (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 27 Sep 2017 03:36:47 -0400", "by mail-wr0-f194.google.com with SMTP id z1so809820wre.1;\n\tWed, 27 Sep 2017 00:36:46 -0700 (PDT)", "from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr.\n\t[90.118.159.96]) by smtp.googlemail.com with ESMTPSA id\n\tn9sm5660526wmd.12.2017.09.27.00.36.44\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 27 Sep 2017 00:36:45 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=pvuncjDUJfd9cauaGt6YjxOdJe2GLy7l8P1oyjXnoL0=;\n\tb=VClnQki+MfTd+qLOdM0Xl2vQWL9JuceJrlh/VLajXXj8RvukFk9qVp+FvXEGLJCPZp\n\tXc2wfKiTSHF98K4mrcpgkCLPnzetQRMaYW56GDHxFcTZyxGGaN0BlCUBeMj8oyP0sAev\n\t8QesbWbLd8zd2O0vHwhT8NXSmXhxGZJ46OhyaYyswEVKVdf8vFFINrcLbTPZzrBi0Naw\n\t2VnukGiOw7XYmn5KLlLs6TIQaHiWZJp2oLKTGRWRfoUksNCGAcbDxNG0U0sJRxVZ4WIt\n\tDxBau2NgC9ErfUQEm+yCaOsqkkYawr5xmQMNWrF1dZ2FTrFR+zu4ymCa9xU0pwzuyx4X\n\tUc2Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=pvuncjDUJfd9cauaGt6YjxOdJe2GLy7l8P1oyjXnoL0=;\n\tb=XWnATmSjdSpMBJn/lAuygcGRJl10NcKy8wIcWTxgDynDk5+JmkZP63epcnhcXQqs5g\n\tWinBFrCp8yzf07rOeQj6i2238zVPxfS5xN6iAWqyhHM4tGwN+vRSXXKttBt/oS5jOQSk\n\tmDY2cifQxrWx/z4OFGmytmGdE2ibn447kHySBZUBZI9Hq+iI6FJzBvqn0gk4b/7ySf6X\n\t5sZ7B79mAWMuq7hwLsFMj+pTsh7ZGQzWPNZYSoW1CvqO8yUHqv4xfM4+luMplmFMLgtD\n\toIdeWsRMVWjVn06Am7RTKqkAy8IiG2DPxjC8gDZpDfvYC6EM8Fv7psiAEGXP/YUCbK+/\n\tCybw==", "X-Gm-Message-State": "AHPjjUjjnK9pu4W76krCh9IHm2U1U5QJ3alZMhL+jwchNVY9lbXEv/xP\n\tpEUhE6xqs2XX47KczLaftwU=", "X-Google-Smtp-Source": "AOwi7QAEpHKjFIEWB73XZHxxBs/XTlQ3uLe9s/C2vBV4GvH0e2aU27koRP2I48JYJ5Kor5CMl0MKcw==", "X-Received": "by 10.223.196.228 with SMTP id o33mr509361wrf.253.1506497805863; \n\tWed, 27 Sep 2017 00:36:45 -0700 (PDT)", "From": "Corentin Labbe <clabbe.montjoie@gmail.com>", "To": "robh+dt@kernel.org, mark.rutland@arm.com,\n\tmaxime.ripard@free-electrons.com, wens@csie.org,\n\tlinux@armlinux.org.uk, catalin.marinas@arm.com,\n\twill.deacon@arm.com, peppe.cavallaro@st.com,\n\talexandre.torgue@st.com, andrew@lunn.ch, f.fainelli@gmail.com,\n\tfrowand.list@gmail.com", "Cc": "netdev@vger.kernel.org, devicetree@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org,\n\tlinux-sunxi@googlegroups.com, Corentin Labbe <clabbe.montjoie@gmail.com>", "Subject": "[PATCH v6 11/11] of: mdio: Prevent of_mdiobus_register from\n\tscanning mdio-mux nodes", "Date": "Wed, 27 Sep 2017 09:34:14 +0200", "Message-Id": "<20170927073414.17361-12-clabbe.montjoie@gmail.com>", "X-Mailer": "git-send-email 2.13.5", "In-Reply-To": "<20170927073414.17361-1-clabbe.montjoie@gmail.com>", "References": "<20170927073414.17361-1-clabbe.montjoie@gmail.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Each child node of an MDIO node is scanned as a PHY when calling\nof_mdiobus_register() givint the following result:\n[ 18.175379] mdio_bus stmmac-0: /soc/ethernet@1c30000/mdio/mdio-mux has invalid PHY address\n[ 18.175408] mdio_bus stmmac-0: scan phy mdio-mux at address 0\n[ 18.175450] mdio_bus stmmac-0: scan phy mdio-mux at address 1\n[...]\n[ 18.176420] mdio_bus stmmac-0: scan phy mdio-mux at address 30\n[ 18.176452] mdio_bus stmmac-0: scan phy mdio-mux at address 31\n\nSince mdio-mux nodes are not PHY, this patch a way to to not scan\nthem.\n\nSigned-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>\n---\n drivers/of/of_mdio.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)", "diff": "diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c\nindex d94dd8b77abd..d90ddb0d90f2 100644\n--- a/drivers/of/of_mdio.c\n+++ b/drivers/of/of_mdio.c\n@@ -190,6 +190,10 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)\n \tstruct device_node *child;\n \tbool scanphys = false;\n \tint addr, rc;\n+\tstatic const struct of_device_id do_not_scan[] = {\n+\t\t{ .compatible = \"mdio-mux\" },\n+\t\t{}\n+\t};\n \n \t/* Do not continue if the node is disabled */\n \tif (!of_device_is_available(np))\n@@ -212,6 +216,9 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)\n \n \t/* Loop over the child nodes and register a phy_device for each phy */\n \tfor_each_available_child_of_node(np, child) {\n+\t\tif (of_match_node(do_not_scan, child))\n+\t\t\tcontinue;\n+\n \t\taddr = of_mdio_parse_addr(&mdio->dev, child);\n \t\tif (addr < 0) {\n \t\t\tscanphys = true;\n@@ -229,6 +236,9 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)\n \n \t/* auto scan for PHYs with empty reg property */\n \tfor_each_available_child_of_node(np, child) {\n+\t\tif (of_match_node(do_not_scan, child))\n+\t\t\tcontinue;\n+\n \t\t/* Skip PHYs with reg property set */\n \t\tif (of_find_property(child, \"reg\", NULL))\n \t\t\tcontinue;\n", "prefixes": [ "v6", "11/11" ] }