Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp507930ybi; Fri, 24 May 2019 07:15:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmjyBSCFzEbGxPyyRvG63StTaebToZoIEtvLIEkg72gSpnKpC1/okCi/wnVAjzopTCJbCk X-Received: by 2002:aa7:9615:: with SMTP id q21mr19427881pfg.253.1558707329570; Fri, 24 May 2019 07:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558707329; cv=none; d=google.com; s=arc-20160816; b=fuQ4Q1YwXipXcRUehNdGJBSBuQORoa1KkyvL1Kq51G47ytyUZ+wOiS5nOPj0fX/sKB SmpSKFmNof9eopXH5PuwMoqzHjweXYRA7RPP9icUldMVoYqKdVkv+BztunM1k1YHPo+q XqpXCrtuFRAlk+296KlL7UiHdCd+/2cmvhG5aPA+uHaAdqgjMsA2pSaBF8VOOtFnLe5n hZ9NC+lWaMQBqk0DNE+hfLw/3tnul359E+jSAe9rO19+8/Z7qLamNwOffeVzxIcmsebp MMLxnHxJ4pFPcUwvGsk7nsmd+W1ChHB9hCa5gKk9+auQFAgsIsZ18j1LLtuu1NlK3CSO H/hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/9dmYJZulcMPLnnMVDuzzMs5fmFA6/ZM62RgXCFhBYI=; b=UTuGm9fjmbno/WHDyBS9E5UyEcGV7wTyDefNsEO1Xvrxk+wo2GEvRjGq4oLwEHRKzI r9f6lfW/FZ4Msn+i3LHcvBi3Od66nzfOS3DttNiNVYULCkNlCWzoH3yz1x8DwKc89yaS dYGZkmk9TuCLWEy4cTXNLf4xjUmLcdgDatKDysO3dMu1YfoiC3Oi8esonB1ZWHwINaFO AMWIpZewxVfvKaDb7YOblErD8lrUWkdrHUkwVCjNr4/hZf/TgA8mklF7AStgfyzNN/x9 oFnmVO7hoq4klLaE++wuZ1GcWsfocX//7iQC7bBPBeUeH1g3uOumnH6OXQtH3BvcU/kE ALTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="FxI/equ1"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si4059199pjr.70.2019.05.24.07.15.12; Fri, 24 May 2019 07:15:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b="FxI/equ1"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404101AbfEXONP (ORCPT + 99 others); Fri, 24 May 2019 10:13:15 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56042 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403917AbfEXONP (ORCPT ); Fri, 24 May 2019 10:13:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; 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=/9dmYJZulcMPLnnMVDuzzMs5fmFA6/ZM62RgXCFhBYI=; b=FxI/equ1rCcR7ROW74hmHaIN8W a3sMPajtJWiA9+njTVE56NWYyVBEAiP0AYgQfgUHhsbDXbc2nLFQbR8vfrF2QUNbzUOlJpW9ir5Iq hedicBAbYCafl5/aPprnxcMjGEFL+21IjzSCp7ToryTa8nCwo8qQCdBpaK4OlT9YcOZ8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hUAwZ-0001Uf-L4; Fri, 24 May 2019 16:13:11 +0200 Date: Fri, 24 May 2019 16:13:11 +0200 From: Andrew Lunn To: Rasmus Villemoes Cc: Vivien Didelot , Florian Fainelli , "David S. Miller" , Rasmus Villemoes , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Message-ID: <20190524141311.GJ2979@lunn.ch> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> <20190524085921.11108-1-rasmus.villemoes@prevas.dk> <20190524085921.11108-2-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524085921.11108-2-rasmus.villemoes@prevas.dk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 09:00:24AM +0000, Rasmus Villemoes wrote: > The 88e6250 (as well as 6220, 6071, 6070, 6020) do not support > multi-chip (indirect) addressing. However, one can still have two of > them on the same mdio bus, since the device only uses 16 of the 32 > possible addresses, either addresses 0x00-0x0F or 0x10-0x1F depending > on the ADDR4 pin at reset [since ADDR4 is internally pulled high, the > latter is the default]. > > In order to prepare for supporting the 88e6250 and friends, introduce > mv88e6xxx_info::dual_chip to allow having a non-zero sw_addr while > still using direct addressing. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Andrew Lunn Andrew