Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4401226pxb; Tue, 5 Oct 2021 02:17:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7OgQ3nRfgBuvOd4dt+h25MqRwXuVYIK9pKm9V4ji7iUPfg+t4BCJ2w5SIM+xsE65jhnXO X-Received: by 2002:a17:902:6ac2:b0:13e:2b51:ca27 with SMTP id i2-20020a1709026ac200b0013e2b51ca27mr4218544plt.65.1633425432421; Tue, 05 Oct 2021 02:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633425432; cv=none; d=google.com; s=arc-20160816; b=oa0SkJ1+ZnU1WNUu4NWSBngGp1k0ulN4FTZJYs+aZShpJ9zIGcLFz53TRtIBCwnBjH QoO2rVtaC27iA50QNQGC+6tVNE7lRQ46Lyih7av97DnDHTuMwx2nx1fAqvk21QMKF3sv 9i5IOZSYJeihYbTvdwBIN/TjRe2nD4LtIx50IdXzLWgR5yuFS1xNGpD9XRnyn+KKwzO3 u9ZZ6jf4YqagGJjpXCvxtKXK1iWSLQLR89QKcDwjC5qx2FT9SAZCfHsDTjA1mlVyIVjK K+CNnXcOZyEUtgbBhCljAs22sf7O524QSZv3DH0DRU3bmKLi1PisM1cpJuaimk7mfVZg 2SHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=TbrskvcLoH3Zx7yIEfUwPQnZgM3cuLvpO3HnOyvhuCc=; b=YSxLlDg9PyMGuS1ihGPkYYp2WRs8ncGaD1L8MBM0D25/uu1QruZGioUntCLtuiACHF thl8p8VhxfwASBkp1Y6jd2gk72yRHfBECcrfDY5HIlFIuchjXUUHGOToQDcv8B167tja 4ZvYIN9I78PxKTUhDkdwMhigeXBEQKNgFmwYyESwnaE0PvbPHXSlYnamXvmNPOkdGtw5 oR6soDkof0jnTse2y5Thhq6nyZX65ZuJkdqlVu6DEKcN58dtReRuGAiSpvptTH+mMmM3 PKpXI96E+2lkEacXdt74BWHhh264+sovNjiRJM7VQpFk9bcKUvsChckDt1UK+EBGiM7e J7bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=VtlR4bgM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si1702464pju.3.2021.10.05.02.16.59; Tue, 05 Oct 2021 02:17:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=VtlR4bgM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232992AbhJEJQi (ORCPT + 99 others); Tue, 5 Oct 2021 05:16:38 -0400 Received: from www.zeus03.de ([194.117.254.33]:37438 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232773AbhJEJQh (ORCPT ); Tue, 5 Oct 2021 05:16:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=Ko//vJyuyzkPLobdWRfp+yv7tyBc 7iVoX1/SJmxO3TA=; b=VtlR4bgMqXIBd5DWuugHtGk9yyyDygAneVjffLA5ldjl pAWSNhrqUERs8oyt4OKXq1q/a9QpTPiC7Rt2L+RJz5NqL/LSj5dPB5jCzcm3z6I6 xfvrh+wqR/siH9eEiLFS2V4S5GVnbUGickqtE8JS6mabXe0R/olbq6f5D5LA/4I= Received: (qmail 3740740 invoked from network); 5 Oct 2021 11:14:44 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 5 Oct 2021 11:14:44 +0200 X-UD-Smtp-Session: l3s3148p1@JUPbdZfNBoogAwDPXw1kABtQsg8UzxVo Date: Tue, 5 Oct 2021 11:14:44 +0200 From: Wolfram Sang To: Lad Prabhakar Cc: Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das Subject: Re: [PATCH 6/6] memory: renesas-rpc-if: Add support for RZ/G2L Message-ID: Mail-Followup-To: Wolfram Sang , Lad Prabhakar , Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das References: <20210928140721.8805-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210928140721.8805-7-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1E6oOfbK851bS2lO" Content-Disposition: inline In-Reply-To: <20210928140721.8805-7-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1E6oOfbK851bS2lO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Prabhakar, some updates after internal discussions I had. > +#define RPCIF_CMNCR_MOIIO_HIZ(val) (RPCIF_CMNCR_MOIIO0(val) | \ > + RPCIF_CMNCR_MOIIO1(val) | \ > + RPCIF_CMNCR_MOIIO2(val) | RPCIF_CMNCR_MOIIO3(val)) Shimoda-san rightfully said that '_HIZ' should be removed from the macro name because HIZ implies the value 3. > #define RPCIF_CMNCR_IO3FV(val) (((val) & 0x3) << 14) /* undocumented */ > #define RPCIF_CMNCR_IO2FV(val) (((val) & 0x3) << 12) /* undocumented */ As discussed before, mention here that they are documented for G2L. Sadly, we can't use them with Gen3... > -#define RPCIF_CMNCR_IOFV_HIZ (RPCIF_CMNCR_IO0FV(3) | RPCIF_CMNCR_IO2FV(3) | \ > - RPCIF_CMNCR_IO3FV(3)) > +#define RPCIF_CMNCR_IOFV_HIZ(val) (RPCIF_CMNCR_IO0FV(val) | RPCIF_CMNCR_IO2FV(val) | \ > + RPCIF_CMNCR_IO3FV(val)) ... which means we should remove this macro entirely because it is forbidden for Gen3. I think it is best to use the RPCIF_CMNCR_IOFV macros directly where we need them. Do you agree? Kind regards, Wolfram --1E6oOfbK851bS2lO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmFcF4QACgkQFA3kzBSg KbbnLRAAl70bTAB+aCkvy4wf5a037bvW472u2V73Husi70cFbyNZccWvjYNENHbA w15RefXBgSpefwx3hNndCw9hvXBW5TyLVHaKjGyN23G9y+d7clBKGUUzXI/8Wkko cfYmv+T9Sx+EhH+ZX2fuYId22CcR4DY7q++BDytTmgeQ9iXqvgch1fNhol/XAoVo 8ADih0NYeq2qBD23OGejJxEQVzLSc3RX8p7oi4rNrr78nqVD+bPtKlqH7mX1s/5m UtjXlgc3jqRWKfCq3anpE/ketF+F/D2reqsAE29dQP8Pnwhy64XmEvsJbwy+n0xl GeQ7ZRS4maXgVPMcH157aPL77OgiUczqTNGYnpXGGQtUaxMNx7GOir+xtsHv9NaO FTczDB4l0tx7E155wgKl3+bImYvnrFPTblJpQhBkzkzzu0fF2l4HNlLkUQ2Wusb0 MTlPa4efYMzK0Yo+BNeOf6962cjlA/Fmu+MZ1udD/Ko9NVvSfSgZH17LAX31cOGo pI5eDH2LHZCkP7zhH7hIKYVAn8jKqJYX6aUk5/6yt1Rj/FLSRZzSiIb2UcRwC6Hs gB2Ang+Rou0Dpu2rnhYxVG25tho+SeEx7I+RFXUZTQSrMCKpFIh67Oid5HY7RmaJ v6EsYsI4+qDVRfamnyNTjS+Hwt5/fs+uRYyHMOAj2UXeSgZiOBk= =3XAi -----END PGP SIGNATURE----- --1E6oOfbK851bS2lO--