Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5817361rwb; Tue, 17 Jan 2023 19:42:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXuJFfmJtfTheNKfc3DX5139ebFHMIpRnhlg8Pep0klQma+72AuTPG/rXc9qBbekcOa8b0yu X-Received: by 2002:a05:6a20:a690:b0:af:758e:5923 with SMTP id ba16-20020a056a20a69000b000af758e5923mr6443408pzb.21.1674013358325; Tue, 17 Jan 2023 19:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674013358; cv=none; d=google.com; s=arc-20160816; b=eFp9uVPG7QagZoSNg7C1Tm7CW+CJ0q+jVsIRfHyTgMpFy4RxKoAPwxgsk8Fic0/kVz vEKnpjX0LqLiBI96zB+ziEOxzWbxPUK+CxqhfjV+rhsVrKwwnEwcc+knjUFiVI02zqsb RGnqBK2vsrhyM9sCFSkUCg3nm59jFVxdXjtgBaJvsoqsyU3pxvRODXLpMsLnmH2L0ZhZ 9xn1Y/x0iily/AA3e9woHd6sXS3KgSJH86T24oqeZ77wxY9LOQlCfCzGnbJ4byEZ6f4y froc4dpQrl11KE5nQbdQPed69RuPVR9+TZJSvjkHB0FLenwGNi+6iUoV/fhlW/cxAKqF /idg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iHV7CytWlRD3302v/1nhCK0cn5pj1iojKylILrpkF5w=; b=ll8tLx9Wwq0BJ/i0jHB6JKQ31VyWHGYg+3glmsCgvFiETwlGnYYu2MQTDwSMioRG1k Ll4S9v+EsjVB4h+FIcbOjEY0vd9EB+0oP8tav0QaY6fWrU/+ctxr+7Ab8seQCTJz+Wpe kT9N/7I22IyJaEcrikYuVQECLilm3ox8aYVxbF5OFUazvg2SsK0x798pmg5B53LIAMNH 3z1Q2ofOLmez2oWVKhoglaDlwxvnv9/plGDU6SPOWZpgp6U0x/mt4owwHbl0v+jMxGp7 C96elI7XXNJ4wNxisJVy3Ea0NPvUi/TTYWaz0nukwJ7b3XZwQ03K5vvfhLUOvivVeM/I wmMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SJahukxj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b004b668f1b6d0si23353182pgb.327.2023.01.17.19.42.32; Tue, 17 Jan 2023 19:42:38 -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=@lunn.ch header.s=20171124 header.b=SJahukxj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbjARDIS (ORCPT + 46 others); Tue, 17 Jan 2023 22:08:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjARDIP (ORCPT ); Tue, 17 Jan 2023 22:08:15 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 195274FCC4; Tue, 17 Jan 2023 19:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=iHV7CytWlRD3302v/1nhCK0cn5pj1iojKylILrpkF5w=; b=SJahukxj2tI8oL1m0fY0hxQpVM mi+h1t0LeaEEFYXe1wOVyClZxbfClPY4dRXyzJMpmNbJc7TW+pJdIEC3LXtoV3B/0Z9SXGivjqsxG aLFlmT9X/yakTMbl71PJu7Os+8xMygLek9F+Iy1APbt93OK+e5KNzLyMIAjP9Kz7q7KA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pHyo4-002OGY-U5; Wed, 18 Jan 2023 04:08:08 +0100 Date: Wed, 18 Jan 2023 04:08:08 +0100 From: Andrew Lunn To: Jerome Brunet 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 Message-ID: References: <20230116091637.272923-1-jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230116091637.272923-1-jbrunet@baylibre.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 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. > 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. Andrew