Message ID | 20230130151616.375168-1-jbrunet@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2238113wrn; Mon, 30 Jan 2023 07:21:49 -0800 (PST) X-Google-Smtp-Source: AK7set/mkrQlMAACeM0Km/AV3C8NS0kC8YwqsslMUmAbrLD2EW9M052LfwVTzuQ13z5iRi2wdGK+ X-Received: by 2002:a17:906:3ec1:b0:878:6b39:6d2a with SMTP id d1-20020a1709063ec100b008786b396d2amr14105024ejj.46.1675092108953; Mon, 30 Jan 2023 07:21:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675092108; cv=none; d=google.com; s=arc-20160816; b=YHqC5R3zi0BEgAPj+ByCeplRoRQnd+wwm2GeXDYdgNMGFxljEXI1cKsjc+jbBt6SYb 8rZMT24zeGd5XIHQwC+6t3lmqhWPpOHVh5mdj+poT4uVc9qBuh13Omj4VTGepbwRNRIy b9o5GwWZ5ssqC1SmOzOo7mIDpHcZ5TvLVAlGdRtMHAaPPj0izVJK/DwB5rowt8XNGsvS 8UBN4+5ZLQta4Fi0LQcBlsiz9Ia+RFBXup8MACrI73Ubrr0L/45I6QJUUt4f2yuuYL+m quY+hDOdljJG+aEiWyNJrQPwjx7FVcUIR15Ryz65xTDKjg6YJC/MLBWsINu5nDocg+Bx rwhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ad2CDTfEIRGVD+WwAFi71dqyquLLzi4LvwusVq+ExGM=; b=e59FDT7NseksnAvgaDktv9t6Y2C4KcO+O07ETRKXxw7qYid7h1oBXzOj9Kpqqd8NZU KJbimapYug3xX8ssVjBWY497BeZaYcHRSuXoFOmLIySc18acrFplxiOXhK4X7CXcWXiI 2vqO9kcE/uPdsIqeH8SP5UqNdjt6papssh2mH/XhAUWxBSUnwsb6fFOZ7P3gpwDWjAI5 oMeZdYjyG6vyc6VUjxMIcSRRiFGK6ez8vzHMYYfrvEdDWANYgp/JDqQTh9/LO/S3t1Ep XERJwr9TtBLxkogNSg5tRmvJMzqLoNYg7ufLqRE2kRCqNm/Y59nCHRqgsvM/zbDCCZgA vfjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LUrIVvQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka24-20020a170907921800b00871a4e8d7bdsi12095046ejb.1009.2023.01.30.07.21.24; Mon, 30 Jan 2023 07:21:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LUrIVvQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238043AbjA3PQt (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Mon, 30 Jan 2023 10:16:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbjA3PQr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 10:16:47 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7555512055 for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 07:16:26 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id q8so8229751wmo.5 for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 07:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ad2CDTfEIRGVD+WwAFi71dqyquLLzi4LvwusVq+ExGM=; b=LUrIVvQUH5dW7iRU4JfzsvAiY507XIvIcT+m48LD8UjIwKt5mMJulbdorFPIbc6oh/ hZ4AVQs30AIi9Fzs2OiOm3XbubB5SU5tG7jRFDa38M4yLHOKBs0XMgEz5AgkFGMTbA7V I8qLV11ETwq4QxbdJ86jUUJOi1jPXmHAeTNarmRxAIxkwcaeeFLcjqkgWmNDJpfDO1td Krupi5vZziC+B70mx8dNVqMY5GeggZk5U2MLZoF1XmxL3aZVX7cRWTQDhDbar6KqwiY0 0ly2uHvXuqnuyDccydoomvRs78m4y71X5yPkZ3LJAutcruwDqwPntsR+lg6WAayp54MG zDAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ad2CDTfEIRGVD+WwAFi71dqyquLLzi4LvwusVq+ExGM=; b=oXFRd4Lnfn/eL3AD089GJwNGZdxfhJF3U8Dxus0lpey1Nggl0wDYrnE5lj4ZcKXBUB pnTaxnv3VSpIaJs8RANM1sOYTechIoWi301RxyRM3a+xdJ1xoQfUA0D5NbjluKb9AUHj zsNeXh36y75twV891XTC7S4kWjKsJdg/jqCVlnBnJHFE+obkkjXyaoB6oDQwrOds3crE ICpEUSxs10o1gSWGshZvYRAbbulj6jlxjv8/bs9EuHHmulxBzRtI0xqVPjoUboaCZuPY HlJEXk0YwwqEwGI0CNSl0He0HiuOJbYImIWHlNWKiOieM/9ug38gLk1BzEi+e/r2AgmQ W3BA== X-Gm-Message-State: AO0yUKWp8LSfvTl+DHsANk5UEHUPVb9+j9SxI5L2bhN5XkA+0hZ7XiEX dofYfnIaenLR1qr3z4VLmkYMCQ== X-Received: by 2002:a05:600c:d9:b0:3dc:4fd7:31e9 with SMTP id u25-20020a05600c00d900b003dc4fd731e9mr7484043wmm.7.1675091784504; Mon, 30 Jan 2023 07:16:24 -0800 (PST) Received: from jackdaw.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id u12-20020a05600c19cc00b003db0ee277b2sm18735802wmq.5.2023.01.30.07.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 07:16:23 -0800 (PST) From: Jerome Brunet <jbrunet@baylibre.com> To: netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: Jerome Brunet <jbrunet@baylibre.com>, linux-amlogic@lists.infradead.org, Kevin Hilman <khilman@baylibre.com>, Neil Armstrong <neil.armstrong@linaro.org>, Da Xue <da@lessconfused.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-kernel@vger.kernel.org Subject: [PATCH v2 net-next 0/2] net: mdio: add amlogic gxl mdio mux support Date: Mon, 30 Jan 2023 16:16:14 +0100 Message-Id: <20230130151616.375168-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756461383438720507?= X-GMAIL-MSGID: =?utf-8?q?1756461383438720507?= |
Series |
net: mdio: add amlogic gxl mdio mux support
|
|
Message
Jerome Brunet
Jan. 30, 2023, 3:16 p.m. UTC
Add support for the MDIO multiplexer found in the Amlogic GXL SoC family. This multiplexer allows to choose between the external (SoC pins) MDIO bus, or the internal one leading to the integrated 10/100M PHY. This multiplexer has been handled with the mdio-mux-mmioreg generic driver so far. When it was added, it was thought the logic was handled by a single register. It turns out more than a single register need to be properly set. As long as the device is using the Amlogic vendor bootloader, or upstream u-boot with net support, it is working fine since the kernel is inheriting the bootloader settings. Without net support in the bootloader, this glue comes unset in the kernel and only the external path may operate properly. With this driver (and the associated change in arch/arm64/boot/dts/amlogic/meson-gxl.dtsi), the kernel no longer relies on the bootloader to set things up, fixing the problem. Changes since v1: * Fix missed checkpatch warnings * Change setting function prototype * add comment regarding the PHY id Jerome Brunet (2): dt-bindings: net: add amlogic gxl mdio multiplexer net: mdio: add amlogic gxl mdio mux support .../bindings/net/amlogic,gxl-mdio-mux.yaml | 64 +++++++ drivers/net/mdio/Kconfig | 11 ++ drivers/net/mdio/Makefile | 1 + drivers/net/mdio/mdio-mux-meson-gxl.c | 164 ++++++++++++++++++ 4 files changed, 240 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/amlogic,gxl-mdio-mux.yaml create mode 100644 drivers/net/mdio/mdio-mux-meson-gxl.c
Comments
Hello: This series was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Mon, 30 Jan 2023 16:16:14 +0100 you wrote: > Add support for the MDIO multiplexer found in the Amlogic GXL SoC family. > This multiplexer allows to choose between the external (SoC pins) MDIO bus, > or the internal one leading to the integrated 10/100M PHY. > > This multiplexer has been handled with the mdio-mux-mmioreg generic driver > so far. When it was added, it was thought the logic was handled by a > single register. > > [...] Here is the summary with links: - [v2,net-next,1/2] dt-bindings: net: add amlogic gxl mdio multiplexer https://git.kernel.org/netdev/net-next/c/cc732d235126 - [v2,net-next,2/2] net: mdio: add amlogic gxl mdio mux support https://git.kernel.org/netdev/net-next/c/9a24e1ff4326 You are awesome, thank you!