Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp904048rwb; Thu, 19 Jan 2023 04:18:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXth8dE1YCsylEKcze9mgZuNH8JGAwWgNySF5HOLSmYSJgmiu1u+O+NTviUgO6DkOcGHbkyK X-Received: by 2002:a05:6a21:998c:b0:b0:2b9c:c11a with SMTP id ve12-20020a056a21998c00b000b02b9cc11amr15797464pzb.9.1674130735661; Thu, 19 Jan 2023 04:18:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674130735; cv=none; d=google.com; s=arc-20160816; b=ttLG2TerIhKLq0PPW7YRuMoT/SaL+DaU7jRcFnRk+Y3AKCFVkh8GyoSNmtTtSs8DyU GPl1/Q68Ai5oew4UbBUoJGvSuvp/6ouQu27xDAJii1xo+BEduM4pdMhFoX3dvGBKnvTM wUGUB5SdoHm/8SX0LtdCWVDtPnMDWzKELJLKV9oAduKT7XcHMzVtq5gfiiDpDhPIKmMX BV07rPIlwNFZOvfAsmNgcOtYzKy+XGSNrByLm5V0g+9p5D4nbTLd8gqfMQvdjIwTzjWR mi2bzIFB/EK0c5oC59MkfJZ+7ziqc0/pQ4Jq4ydWj70qMDW+vaqntkCdzPgVZ0BGhrgD jONw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=W2iLqxzBf2lt/ncg4h7D713Xr/C62DP8hgV7AbUocoI=; b=09cbogiGPYU3RvOkH/aNUjUGvbDVhs2o4uW3S7jUKeYAizw6R5KOp/wPNiM3kpajds 063ehs6Qi6Rb9x7V2CcjW1+mT1LHweGiZp4I/7gDluAwYn6AIQ9bO2H0rhBDo9AYr7PY d44WA6GXVlC/h8H7FJYxr5X+6edgtaAv4vDfstGzvyDpexdGhf3t+sCxOyvoyh3SD83z BLAQN6P3RSKA2lYCJlRsoqsIRppOOLxBClkpFH0iZKb26S8g16lZJddJZa4BV/VAslBL oEYPmuDG83XzPI1rAQc2hNM34Je7u04VQ3IlVtVAhL/xicqYR2IWLhQo8DDpTs4l49OZ fvWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=P5LppqRY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r139-20020a632b91000000b004ce425ce690si10155098pgr.661.2023.01.19.04.18.50; Thu, 19 Jan 2023 04:18:55 -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=P5LppqRY; 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 S229971AbjASKzW (ORCPT + 44 others); Thu, 19 Jan 2023 05:55:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbjASKzL (ORCPT ); Thu, 19 Jan 2023 05:55:11 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA2906F318 for ; Thu, 19 Jan 2023 02:55:09 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id t5so1469796wrq.1 for ; Thu, 19 Jan 2023 02:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=W2iLqxzBf2lt/ncg4h7D713Xr/C62DP8hgV7AbUocoI=; b=P5LppqRYfNZ6ipt7+ZeQwYBdFqfSnUFgGDqlQvZ4vusjXWwLO9BYeS5+93bNYfRRmh qWajrm+xWAbEHdcQlzRE2FFz4nN4nVoMWfAYRfKyZWCOB7S7uTT3SsJKD/yS88bdZbom kXVs014BApTave9Lv2C7QjqXXZoNVvbE5BRUf43hOizXTkAElkuep4PNbXZKv/Y6iCKt wDb/QsJFjYQRj5xYFjIabG/FfeLBniAWjlxYCj3ASQVfoy4d31yHz4MPpWhiWqVaPS82 Y73Sq/Gf5Fbg7LC7AlenM9EXejEZpPWaaLpvwSWTl8Ie9KkIHrGGQ3DdRsjCnUWuJ1E2 38Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W2iLqxzBf2lt/ncg4h7D713Xr/C62DP8hgV7AbUocoI=; b=HDFkbvgui6UxYGYcqrsKo8QFbLfsFmp2s+fyzPa745b7XkAqG5PNNYNfvdSN3LWdWm GWeoAGZpCVAiSWsKS95yf+d5VTxMmYZQWW+ndTiCyc6Yai2JUObvShH715gKy5GBBwPN xxYCOEjZQPqpxJGKE2QKNtVde7giFgJtTYf+g30QI5Lpey4w7SLw4Ck0Kt+d+ymlI/9Y ZeRoMfrzna13gXJshSzETPRhpkZAPyN/dpq9ulCac/SSBuAO0byMMp5h3C+MFtg2Zv1g aPyv1hqiadr8N++tc85ucgZBjMtTxMaH5Zktce5DqI5XeWwB43N8fExWGwK99mG4mGBP W9Eg== X-Gm-Message-State: AFqh2krqpdFxtvPk3mKE3jxu9dQoLj9cYnR4y5xqPcW6kTTDlPAwC6q9 Qx+Q8uIfEI9Za5dPUXCMPdMYPQ== X-Received: by 2002:a5d:6545:0:b0:2bb:5d8c:9575 with SMTP id z5-20020a5d6545000000b002bb5d8c9575mr8403717wrv.12.1674125708342; Thu, 19 Jan 2023 02:55:08 -0800 (PST) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id b13-20020a05600003cd00b002be07cbefb2sm11691659wrg.18.2023.01.19.02.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 02:55:07 -0800 (PST) References: <20230116091637.272923-1-jbrunet@baylibre.com> User-agent: mu4e 1.8.10; emacs 28.2 From: Jerome Brunet To: Andrew Lunn Cc: netdev@vger.kernel.org, "David S. Miller" , linux-amlogic@lists.infradead.org, Kevin Hilman , Neil Armstrong , Da Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/2] net: mdio: add amlogic gxl mdio mux support Date: Thu, 19 Jan 2023 11:42:11 +0100 In-reply-to: Message-ID: <1jr0vqyet1.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 18 Jan 2023 at 04:08, Andrew Lunn wrote: > On Mon, Jan 16, 2023 at 10:16:34AM +0100, Jerome Brunet 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. >> >> 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 DT update), the kernel no longer relies >> on the bootloader to set things up, fixing the problem. > > Ideally, you should also post an actual user of this driver, i.e. the > DT updates. I usually avoid doing this since the DT part is intended for another maintainer. The idea is make life easy for them and let them pick the entire series (or not). I don't mind sending the DT update along if it is the perferred way with netdev. FYI, the DT update would look like this : https://gitlab.com/jbrunet/linux/-/commit/1d38ccf1b9f264111b1c56f18cfb4804227d3894.patch > >> This has been tested on the aml-s905x-cc (LePotato) for the internal path >> and the aml-s912-pc (Tartiflette) for the external path. > > So these exist in mainline, which is enough for me. Yes the boards exists in mainline, there are still using the mdio-mux-mmioreg driver ATM > > Andrew