Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp817419imm; Thu, 26 Jul 2018 12:31:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe54Q10Mq4VrX+7EOexlNwE0IyihFS7r2/hFAR1CR0Ob13xul36ucvcJ7kzX0Zr0FC2s7Bx X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr3158434pgc.367.1532633467884; Thu, 26 Jul 2018 12:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532633467; cv=none; d=google.com; s=arc-20160816; b=wXeuw60880RAkZtabbpTkc4+awglqyRQVqOPYPf0A7joNe6r+wh7n8+t8N6H2KwktJ gBpwEgAKgTOeLGUXkURxPEluYtVa8prfW/DJQSnoA1beGiOSBpLLbk4LNj+CdZJNBJZR xHRCTr6eNlbLwl7SjeQa9Yo2fK31LAH5gzQl4KtS7Qdrukl7EqbKvC+PbOO8CNvgitKb lxdoNrvi4UxfaZbMKfAxnousnK3yZmHgC6vjd558JXKnIpEUtWZnnQjewtrqn73V3dOj hvV3LFUgUP7II7XY0hE9grFB3yNjx7yp60sg0UlrefiK2RcTqIGkz/jm87maX8DQ7FzQ jPEA== 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:arc-authentication-results; bh=FquRfStKJoc5qkcJpPqwZ2p010g1xohB/4nG2X7LxN0=; b=sKkf0sGrQ2jkCe/WQXKPnugSzVvc1Q1AZ7C/aj8DHCZksmZ1AFYXx1+GNzcNRtzepD +6kxUopg5BXrRlHmUEMjyDpUxkkRIAhlZ+ser0UR3dIZuP5IQsJLM58uRQff8fXyPW+J k8DrKQ9ecu9P9Nc9dQvFWIuD4bX77LoY5G/WO/Dt3DfOm62cL0ap0jviOgUlY23+G67O wBkqRDnhZ98GqvfvgVpBFUu1f2P4E+olo0qbsKl15cjgmjUrQhzTqPqq84W/gV1XIkSr g6WLM+TYV3XXl4UZxM7mUYHhcYYMc99l9KSJnTpbg1THdWbVGzMvFz0XzCQnhgc5DPR9 8qNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=j6JyqrLE; 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 o4-v6si1898656pgb.279.2018.07.26.12.30.53; Thu, 26 Jul 2018 12:31:07 -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=pass header.i=@lunn.ch header.s=20171124 header.b=j6JyqrLE; 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 S1731610AbeGZUro (ORCPT + 99 others); Thu, 26 Jul 2018 16:47:44 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47705 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730439AbeGZUro (ORCPT ); Thu, 26 Jul 2018 16:47:44 -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; bh=FquRfStKJoc5qkcJpPqwZ2p010g1xohB/4nG2X7LxN0=; b=j6JyqrLE5reXKWSJDqjqVYy2NKqHXAYQrwTxMM9jlRFYaRkOe/V4Tdhi5Xb3i3Cc+JkXcTCxnRggdz1hoGsi7gd8J0D6unFZ8UZXL5q9ENirkTQpJVSQngCe7pSA0fe3y/yNEGtEDGMFod/1IhrkSWUvh8va7RdYIg/VZ2NigZ8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1filwx-0005bZ-8T; Thu, 26 Jul 2018 21:29:23 +0200 Date: Thu, 26 Jul 2018 21:29:23 +0200 From: Andrew Lunn To: Ray Jui Cc: Arun Parameswaran , "David S. Miller" , Florian Fainelli , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Catalin Marinas , Will Deacon , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH 2/7] net: phy: Fix the register offsets in Broadcom iProc mdio mux driver Message-ID: <20180726192923.GL10686@lunn.ch> References: <1532630184-29450-1-git-send-email-arun.parameswaran@broadcom.com> <1532630184-29450-3-git-send-email-arun.parameswaran@broadcom.com> <20180726190636.GG10686@lunn.ch> <6188441f-670d-7644-361b-7a5e8e06c9c2@broadcom.com> 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 On Thu, Jul 26, 2018 at 12:25:24PM -0700, Ray Jui wrote: > > > On 7/26/2018 12:16 PM, Arun Parameswaran wrote: > > > > > >On 18-07-26 12:06 PM, Andrew Lunn wrote: > >>On Thu, Jul 26, 2018 at 11:36:19AM -0700, Arun Parameswaran wrote: > >>>Modify the register offsets in the Broadcom iProc mdio mux to start > >>>from the top of the register address space. > >>> > >>>Earlier the base address specified was from the middle of the block's > >>>register space. The base address will now point to the start of the > >>>mdio's address space. The offsets have been fixed to match this. > >> > >>Hi Arun > >> > >>Did you consider a change something like: > >That looks good. I will make this change to the patch. > > > >Thanks > >Arun > > To make it backward compatible, then length of the resource also needs to be > adjusted from 0x14 to 0x250 in the driver? > > Otherwise you will end up accessing areas out of 0x14 defined in old DT that > is not mapped? struct resource { resource_size_t start; resource_size_t end; const char *name; unsigned long flags; unsigned long desc; struct resource *parent, *sibling, *child; }; "end" suggests an address, not a length. But it would be good to look deeper into the code to be sure. Andrew