Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4897886yba; Wed, 8 May 2019 04:50:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTR5lT7ViaKlntWsvZkaQi9olsRMfhWqgXDliHKs/IRego+fRQC2fJ+zE+cpgi1Siq/o07 X-Received: by 2002:a63:9dc8:: with SMTP id i191mr45185937pgd.91.1557316224609; Wed, 08 May 2019 04:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557316224; cv=none; d=google.com; s=arc-20160816; b=MDcBbewGaTG2weKPeLOuNIKktUIZzIXJ2sDtxXp2SVgXwcXc60MmKKxkkHLNpN0rct OC0CuX/Z1NjwGyucH9oYZpt4EKpwN0t2li0czDafwiT1zJHUtdmzCHvAAMC0OTrd1YPy M999o22PegpywCzt9pObFerJ/yYmIO6/FQlMKclPytVxAamBVPqkGSLy6xhz6dk7pcv1 hzUrZ2peIm67gha8Zx7K1MqFcgVaOUYWwk4VtXusXtWNzsVdi68Ylssozcyf/fH9IH+h vyvy74OJTIJsIPJ5nkg6Dj8wtZSo53mfbmtGGnUm87iKxAq7KcnGwaCumAx9IVC7NS6X 1RcQ== 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=OcWBQ+7Rq2ct1XjlZ6VIj8ZWNx07gVgTDlWGIn6bFi0=; b=lFC4M8AMSa6TMM2L5SmCccukltU4QzMLe3n+a04aNfjQWtl0i1+/2eGwKcAnpHocgy aqJ89O1vMaVJv2rvMmixIk0kysXsbOOEGcUGOHOkOniJt6X5beGMV7ZTAvjAH9AQ8QYR +B00zBVTE740XQlevLNYk4a+3aUVqYieQRj7pWujmzLey0THrfGg64/xAHHAa6W0fJZh x7yb8cgs5jJLST8N1Oq4dgZkTIuJ3Yk4wwpQ1I5DrezzG1evhy05KjC/o7/mSofaR62s 02zW9FmvItMli18hC6I1qnbR1heMyr+iL4K7KRlv/FY+qer3lkHOTGPo+QbWC9PBE3OY 83ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=XXlkH77d; 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 t61si15355534plb.309.2019.05.08.04.50.08; Wed, 08 May 2019 04:50:24 -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=XXlkH77d; 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 S1728313AbfEHLrT (ORCPT + 99 others); Wed, 8 May 2019 07:47:19 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58441 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727902AbfEHLrT (ORCPT ); Wed, 8 May 2019 07:47:19 -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=OcWBQ+7Rq2ct1XjlZ6VIj8ZWNx07gVgTDlWGIn6bFi0=; b=XXlkH77dbWEO0TnwA3cRIFIfTa wrWDMZj0+s4rqJZlFn3SeENPXaVJILoDfRihIytp1y9U21xQaBZ6gWYty+hxh3OLnpCM/JNGzhpNc b5sLekMRSrN+DNb9JF6RRd5HV/kiWbZhA8ZD+U+r7SNYR7Rif5e2ihPkLzuphSyBjInk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hOL2Z-0000gM-Vg; Wed, 08 May 2019 13:47:15 +0200 Date: Wed, 8 May 2019 13:47:15 +0200 From: Andrew Lunn To: Rasmus Villemoes Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "David S. Miller" , Florian Fainelli , Vivien Didelot Subject: Re: [RFC PATCH 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Message-ID: <20190508114715.GB30557@lunn.ch> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> <20190501193126.19196-2-rasmus.villemoes@prevas.dk> <20190501201919.GC19809@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > > Hi Rasmus > > > > This works, but i think i prefer adding mv88e6xxx_smi_dual_chip_write, > > mv88e6xxx_smi_dual_chip_read, and create a > > mv88e6xxx_smi_single_chip_ops. > > Hi Andrew > > Now that Vivien's "net: dsa: mv88e6xxx: refine SMI support" is in > master, do you still prefer introducing a third bus_ops structure > (mv88e6xxx_smi_dual_direct_ops ?), or would the approach of adding > chip->sw_addr in the smi_direct_{read/write} functions be ok (which > would then require changing the indirect callers to pass 0 instead of > chip->swaddr). Hi Rasmus I would still prefer a new bus_ops. Thanks Andrew