Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5241337imm; Tue, 18 Sep 2018 06:35:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda1PajMv/Ntgp/Zu9kTwMqSWvMFOatXx7LjazIkhzk/g4SkFfWDVKaCcq7mxkJB2qyBL0HJ X-Received: by 2002:a63:f:: with SMTP id 15-v6mr28397052pga.430.1537277722427; Tue, 18 Sep 2018 06:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537277722; cv=none; d=google.com; s=arc-20160816; b=zvUGlT+uv5cqgtcilp/h07cb7Dzyx0hp4Q3Lp91rmvWeXLpi4EEFQQsjf5UKoqxcYR edYFC7IcVXk0QTO0YgwrRMDPhddd8R+oal/UFq4jaTMsZMG2zYJGBgZqzxS0/kh4FhUm q+kyrgzLCrqKUd3sx0DSFFzuShRTBi5Fe9bqXe65NAkqjStMefV8UnPzKkhm5bY8vft5 BrT1IpXK0R9xiNWQzfV5emTWbkV/tHlrw8BNsG1g55rToaIAYg7Hx7aeLP+L3AJAjbEi xs0yJRwXN8iKvING+8PEhXkUAWLN4KUnTNR4Rz15NyNJrlcrmUd2Ew26Nok+B7G0Hsvg 9azg== 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; bh=NHjl5d6k6ncGkIUEWCSpsjsbDXph5h9daPngFNZtM3o=; b=K58UakcZmmet84L1RN4CIgpSJZL1e7qjTSBPk7IXc+MoR4bCubTnEI2QcHX+cW+tCQ OyGfEjvOrS9Ydfm/1J9c2gUNJweLn5RTgMeUSVFF549aWmPHhv1AEMeZ4n4Cop3C+WW+ IA7DzGZLmlcJDczkpShKhufeV0Y/pSZ5cA1iU72nvDTSMCB2DjrmHaMsZ0qRpYVO/9YD WQixBomds3g5FjX0RjGYknQXBlxQs34m0VgCpvIkdHU/pZSLbpU1p9Uc8V84VRf8pI5J zfWzK92gLqYuzjQyyhYC+gPREL8vdytF2TPa1QbW5OAeCd0jUfc2Ri9suvI6n9R98yTF srGw== 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 h17-v6si18583600pgj.214.2018.09.18.06.35.03; Tue, 18 Sep 2018 06:35:22 -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 S1729765AbeIRTGg (ORCPT + 99 others); Tue, 18 Sep 2018 15:06:36 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:58797 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728575AbeIRTGg (ORCPT ); Tue, 18 Sep 2018 15:06:36 -0400 Received: from w540 (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 2435A240003; Tue, 18 Sep 2018 13:33:54 +0000 (UTC) Date: Tue, 18 Sep 2018 15:33:53 +0200 From: jacopo mondi To: Phil Edworthy Cc: Geert Uytterhoeven , Laurent Pinchart , Linus Walleij , Simon Horman , "linux-gpio@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 2/3] pinctrl: renesas: Renesas RZ/N1 pinctrl driver Message-ID: <20180918133353.GT16851@w540> References: <20180917163609.30457-1-phil.edworthy@renesas.com> <20180917163609.30457-3-phil.edworthy@renesas.com> <20180918104330.GO16851@w540> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XSEVMyPRvc8xgDhM" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XSEVMyPRvc8xgDhM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Phil, On Tue, Sep 18, 2018 at 11:55:16AM +0000, Phil Edworthy wrote: > Hi Jacopo, > [snip] > > > + > > > +/* > > > + * Structure detailing the HW registers on the RZ/N1 devices. > > > + * Both the Level 1 mux registers and Level 2 mux registers have the > > > +same > > > + * structure. The only difference is that Level 2 has additional MDIO > > > +registers > > > + * at the end. > > > + */ > > > +struct rzn1_pinctrl_regs { > > > + union { > > > + u32 conf[170]; > > > + u8 pad0[0x400]; > > > > Is pad0 actually used? > No, it's just to implement the padding. Would you prefer not using a union > here? Oh, I did the math wrong, to me it was (32*170 > 8*400) but it's actually (32*170 < 8*1024). Also using a struct to define the memory region layout confused me and I was about to ask "WHY ARE YOU RESERVING MEMORY HERE???" but this type is just used for pointers, and it makes accessing HW locations nicer actually (thanks Geert for having saved me a silly comment on this). Cheers j --XSEVMyPRvc8xgDhM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJboP7BAAoJEHI0Bo8WoVY8v6QP/0FfpEDFS4ePrHBtSd0qDdhH NSVFPt/fcmYXLyQRbLeA/W143cahf9ITSE1TfKGYJXqVGlVccwlSiud+7FKjTYMO tYFKraEhodmAew7jlf+Bnx5Yrhh6UOPgBq8kOXG8mAFlMitmOKWkc2O9R18Z7THS PeBtPzltIr6/0eZioxCuo+NbRxwtG9EA0bbcWTeymzGPebsDoOz+0uD7UER/fA5o kAxmb0cnIoSYh3c8DYBMt5awontuldtLH2sjMva4AEPf1C/kRVZopTKHC9HclCJe gtnQ0IwjGlyeWeR6R8pWFL6h4LlpE5G9l9mReLR2NaWJo/m0wP2SSN57Tyk1MS28 SErxHu2SJurK9aoWaMPlpqlNXk96FBRfRhqpbvxoNM4xwczWINojYMMd+Nz4N1Rn RHhJCq1KVY6nk80E7KkR/8hM0WPL0/G37u8X06L+DwFD4zygzVmjdk9wJuPLeWdf l/mGWX3pFYVRPcOHORHLl3uREmAcbxXcW3Gj7hz16CphnlEnSqVfpf55Mji8oHNg H4LCNqvmwXo2CUU4yEiXmJhxC0ulGC+ihqnI1CSg6qTq43CrP/u3CX9EHjMJEb7k 3HdFQhdD14Uo6uNyfd9gkJL9ao+s9wiyNt3fQXpnwjo9AWhObQLiPeYv4NTnTuzV vY2NGzZnoNTHZfQpHuXx =oeFZ -----END PGP SIGNATURE----- --XSEVMyPRvc8xgDhM--