Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1796907pxj; Sun, 16 May 2021 04:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBCP3YvRGZbLlDqIA+10W136OlITHfesbhi3UffncXjxqG/JKBYb+nNEVJPyOTpbvIKymk X-Received: by 2002:a05:6402:845:: with SMTP id b5mr2717536edz.9.1621165112576; Sun, 16 May 2021 04:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621165112; cv=none; d=google.com; s=arc-20160816; b=Vj2H+uAZ7OgS52lWtK9nVusRAXpoJ5hQ0Uw/epWyCS/vHAMWj2gcwpodDC+fv3JeLP SYh6bTmXj4qQSfgLi9O8EDmVfItzfFva4dM5FYch2aKvA8LQqfKXLsrtDdLL/bj7bmNw q3zLY1AY+5otSw8pZ0cV/1R+EwcU2g073A/hkqXEQh51beClmNlSMxRRQq5PbHMEA5r/ 50nWxTCN7zOBm3ZGUiK3WnZMgCG3p0oO1onkCYg4D40ZLWeXj8PxM4HYu+LRMckfcKqa mHqkJvy9onnFxDUkG569utMTKA15TfC1D2OsFhzSoAWSSTl8m5pf5v2AOnEW/HlsYmNg NznA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IjqDp8O5NJ+zoGq0FQ1xKCJFm8mUR8j3GDLhuG65CYA=; b=rnfsEJGhBe6XtuXL9VO1J90SVU96kkpKa61FGW5mT5AzH0vyHA4yDwAECDAkUaSVw8 mpkpzeu2Vf6uWX3gBq9yFAKRYfv1Wwbj+y04T7hbzrGdhs265yNEEm0OOQ9mOa2PWxyp RNzGAl9J/6PmjONDmkUa/mkGj/M3FT31VQlnehxC3OG4FOkq2HYjv6YzUH4Jnpzz6noL Gvkrjwc0UthaVrzPD2vnqYSrX1G8fYdsgYhkCNS9qOGWpT0M1P9cCxEanN3qzXuT38TO wD9ijFtgHUtbxOZVsZPL9LwEy/SPM+RhE75JlcDv8XnXc2Mko0uYuAxdB6IcjDP7ar0F ZuQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=Sg74buj7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si2829358ejk.201.2021.05.16.04.37.40; Sun, 16 May 2021 04:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=Sg74buj7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234676AbhEOTmJ (ORCPT + 99 others); Sat, 15 May 2021 15:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbhEOTmG (ORCPT ); Sat, 15 May 2021 15:42:06 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC812C061573; Sat, 15 May 2021 12:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IjqDp8O5NJ+zoGq0FQ1xKCJFm8mUR8j3GDLhuG65CYA=; b=Sg74buj71+LkuXDL/yyQ1e0wfS A6AfR4YDMBAEYW68nTpqxiBmImx1iyfPEnoFb/NPlWTWITxHWBn0vuLtLk26z3NlGV3dQ5SDjOM4V h6gb/8WA1PlE8VR34UpcavemuUDk7vZ7WnOki3Tp8VlipGdPNV5VFiES4gOm5TW0tfhwdAASJfi6V fvGg7vF6/O1B0nD+E45m8k98+5s9XEGTUrPNU0X1iWON8byYVd02kv9xAp7ex1Ps92tkodIWWuNOT bIyukQxEF5QXO76lWoxN7OEMl6LcuGSikvg+RRKbgBF+6TQX3nbvpQq27s5pwZ9GcvTBJvABOJX0o y82PLi0w==; Received: from noodles by the.earth.li with local (Exim 4.92) (envelope-from ) id 1li09X-0004CR-9o; Sat, 15 May 2021 20:40:47 +0100 Date: Sat, 15 May 2021 20:40:47 +0100 From: Jonathan McDowell To: Ansuel Smith Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next v4 01/28] net: mdio: ipq8064: clean whitespaces in define Message-ID: <20210515194047.GJ11733@earth.li> References: <20210508002920.19945-1-ansuelsmth@gmail.com> <20210515170046.GA18069@earth.li> <20210515180856.GI11733@earth.li> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 15, 2021 at 08:20:40PM +0200, Ansuel Smith wrote: > On Sat, May 15, 2021 at 07:08:57PM +0100, Jonathan McDowell wrote: > > On Sat, May 15, 2021 at 07:30:26PM +0200, Ansuel Smith wrote: > > > Do you want to try a quick patch so we can check if this is the case? > > > (about the cover letter... sorry will check why i'm pushing this > > > wrong) > > > > There's definitely something odd going on here. I went back to mainline > > to see what the situation is there. With the GPIO MDIO driver both > > switches work (expected, as this is what I run with). I changed switch0 > > over to use the IPQ MDIO driver and it wasn't detected (but switch1 > > still on the GPIO MDIO driver was fine). > > > > I then tried putting both switches onto the IPQ MDIO driver and in that > > instance switch0 came up fine, while switch1 wasn't detected. > > > > Oh wait, your board have 2 different switch? So they both use the master > bit when used... Mhhh I need to think about this if there is a clean way > to handle this. The idea would be that one of the 2 dsa switch should > use the already defined mdio bus. > > The problem here is that to use the internal mdio bus, a bit must be > set or 0 is read on every value (as the bit actually disable the internal > mdio). This is good if one dsa driver is used but when 2 or more are > used I think this clash and only one of them work. The gpio mdio path is > not affected by this. Will check if I can find some way to address this. They're on 2 separate sets of GPIOs if that makes a difference - switch0 is in gpio0/1 and switch1 is on gpio10/11. Is the internal MDIO logic shared between these? Also even if that's the case it seems odd that enabling the MDIO for just switch0 doesn't work? J. -- 101 things you can't have too much of : 3 - Sleep.