Received: by 10.213.65.68 with SMTP id h4csp1743538imn; Sun, 8 Apr 2018 10:24:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/5pUmzAkG46ZCy2m0UzUfTi2usPROkkSr+GOayQXkV1Ks7t2RDOJAFxB1WcpfpFsO3Hdep X-Received: by 2002:a17:902:4481:: with SMTP id l1-v6mr35722352pld.43.1523208261062; Sun, 08 Apr 2018 10:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523208261; cv=none; d=google.com; s=arc-20160816; b=BzNS2XdF+yPFgJV6D/oDHX+ZxHHIdqa+cyp2MIVR2dFjGZz/Dh4cYyLLEmMwtVo3MQ K71n16demLlA+284MpNVVEM+wpFlWtNOi2KpQQ3yPcOINGQfvuuGUvzTg2apkVIQzEMf BA2Eq7Gqk3Cq+pREtrHGiltsOUCyYffY1qx+vhqRZFDbjsg5H56BjCTp6hKvoLC52L1M H/TDbHJg3qXd2rLFrzA0EZDHBPSgBT05abKwLwyHH5O4KvG3yqNE8WDeW4wz8c42LONw xxIZ6vde0pos0ZmgCkOnmlSYVygUTGKI1n5XO7CaNdMWRRMckGqPUrW8g4mCUzNBsk8b Dwiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=1dJI4+hgaPSOWYVtFVgkVXvck3lnx76CvDxJOeBW87o=; b=pH6xwUTNbduHIFeXWodcPmi1/5SJfdzTwakiUzDOGR87HiBfH4pvm5stc4So8nNUww iQ8EkOHyNmSMDAFyWax+lHgZzpezosJli7DGu7IsptaF50wjNzgXov+Hy3iQBuGVMK9o pyYMevxdejt+foRB3lNq36PQotke3cGNsvo026cCStP4vyLtnxIsOBeFSyymFAtISx4W /EtMR8JSoy88Dv+vv3gRtPhLb2LP0Gsr8jV3hWII5pVhYU4sJM1ZUzwU92zeBMaCFJec 3uvOrs9goCOCmSNlex1QxQ0ooplZG40Ql5CHPjoPwa/C21kd0MDv1dvYZdg538MJBZqI uogw== ARC-Authentication-Results: i=1; mx.google.com; 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 j189si10113027pgc.335.2018.04.08.10.23.44; Sun, 08 Apr 2018 10:24:21 -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; 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 S1752711AbeDHQpH (ORCPT + 99 others); Sun, 8 Apr 2018 12:45:07 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:51800 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751845AbeDHQpG (ORCPT ); Sun, 8 Apr 2018 12:45:06 -0400 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 184CA13EDAFED; Sun, 8 Apr 2018 09:45:05 -0700 (PDT) Date: Sun, 08 Apr 2018 12:45:03 -0400 (EDT) Message-Id: <20180408.124503.332537054164377764.davem@davemloft.net> To: esben.haabendal@gmail.com Cc: netdev@vger.kernel.org, eha@deif.com, claudiu.manoil@freescale.com, robh+dt@kernel.org, mark.rutland@arm.com, garsilva@embeddedor.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] net/fsl_pq_mdio: Allow explicit speficition of TBIPA address From: David Miller In-Reply-To: <20180406123836.12019-1-esben.haabendal@gmail.com> References: <20180406123836.12019-1-esben.haabendal@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 08 Apr 2018 09:45:05 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Esben Haabendal Date: Fri, 6 Apr 2018 14:38:34 +0200 > From: Esben Haabendal > > This introduces a simpler and generic method for for finding (and mapping) > the TBIPA register. > > Instead of relying of complicated logic for finding the TBIPA register > address based on the MDIO or MII register block base > address, which even in some cases relies on undocumented shadow registers, > a second "reg" entry for the mdio bus devicetree node specifies the TBIPA > register. > > Backwards compatibility is kept, as the existing logic is applied when > only a single "reg" mapping is specified. > > Signed-off-by: Esben Haabendal Applied.