Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1165308pxb; Fri, 1 Oct 2021 05:06:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC8evEhx/oDzFAm1kXHm0Bo/j3oY5ajHqAYC0niv6xsUbZWbmqMwvpIELLs8JbI+VYLvcW X-Received: by 2002:a05:6a00:88e:b0:44c:c40:9279 with SMTP id q14-20020a056a00088e00b0044c0c409279mr5072238pfj.85.1633089974683; Fri, 01 Oct 2021 05:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633089974; cv=none; d=google.com; s=arc-20160816; b=vGvcHRuXr5wbA8r4BAeR9/oMyxpbIGYnzOU9L/dHY9PA2Ur7zAjy2aTVtq3NePFu6d TDJh8Y0vpxFiYL9NH4mKh3G42I1jp/r5OzmbHVSs5EDYZVrkat5cblDwK0idd50c1MTz WnQ1uWFav4MHCmxbHGjtFaHnik4YCRTkfbecXCCkCDRReL/O5Eh40+5OATVH84mbq3tT mDVG9pdxmz91AUEQmgVBp/yrNk1uLIQymDh6Ifmsru3zklj/zE8LsUiqZnpSGdGNPsOc gsz+nT57HuzsAL5SNR2M/FTEkqmuJU5lVza2FEPEptEcITNVzzSYbscxgE2CRL/EBxrC yjUg== 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=G2uEwYdwEKJ8GiZ3YrT4PxDocNuACU3ThyTEtXNb2Eg=; b=K9VfgPkresJJtzJ0nsKIxxFOWEuwG46AcszhNjd5KxtBDK3r45MMIqH8UDD+vtrdHX Wz6nM1r0QHztS14aVOGHKBJQupFslo60NJodq+2ORxjon+3RH2MOh/ezWMBd7yL3lm01 IDrtXWBVTVa95OSHmmjodU+9Z/3vPNkffHEqNH679jb4vDzDzJi6LODTyrlqaGI5JyXx Tr6ur8SYbV32twfaYRDMCgk5Z1UL55W8SYgHJ4V7xRNFb3o/X46brPhwXXTofYVUQrXT L9P+SDE8u9i5R0rg0YFRkJDoQrnu/2uvqXou3hctNJ+kZ07tl8pKihfp6nBXnhwXj3a/ FoDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=o2DkK4TE; 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 i5si6816131pgs.395.2021.10.01.05.05.46; Fri, 01 Oct 2021 05:06:14 -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=o2DkK4TE; 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 S231218AbhJAMGM (ORCPT + 99 others); Fri, 1 Oct 2021 08:06:12 -0400 Received: from www.zeus03.de ([194.117.254.33]:55078 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbhJAMGK (ORCPT ); Fri, 1 Oct 2021 08:06:10 -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=sU1jHZ5AxD4VfGEdE0alKPxI1996 qYnc3sUVIk98xIA=; b=o2DkK4TEJ2MjNtxegdLBJeBjQFr16jn7wHO4G/EAQU1K j1RK0i4oldYwujwtqM3GV/UGHQONbcgn6x9RtjmzfinIm+xq3fgXYuoL/LArmIRH m2gGCz81yu6LMx18Kdm4IrvgKuRj9bp7gMlhcF+D7jWKpZmPbsyTgyNG7rNUaMw= Received: (qmail 2459946 invoked from network); 1 Oct 2021 14:04:22 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 1 Oct 2021 14:04:22 +0200 X-UD-Smtp-Session: l3s3148p1@MLMZXUnNftIgAwDPXwmDAJN1R91E6vGQ Date: Fri, 1 Oct 2021 14:04:21 +0200 From: Wolfram Sang To: "Lad, Prabhakar" Cc: Lad Prabhakar , Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-mtd@lists.infradead.org, linux-spi , LKML , Linux-Renesas , 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" , Lad Prabhakar , Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-mtd@lists.infradead.org, linux-spi , LKML , Linux-Renesas , 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="5QK+6x2YA2y8yiDI" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5QK+6x2YA2y8yiDI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Prabhakar, I checked the G2L datasheet and reconsidered. It is better if your patch goes in first. That means... > > > > Is RPCIF_CMNCR_IO3FV and RPCIF_CMNCR_IO2FV actually documented in your > > > > datasheets? I am asking because I have a patch pending to remove writing > > > > to undocumented locations. So, I was aboout to remove the IO3FV and > > > > IO2FV macros. > > > > > > > Yes they are documented, you should be able to download the HW manual from [1] > > > > Great, then I will keep them! ... that you could change the comments here from "undocumented" to "documened for G2L" or similar. > > > > > + regmap_read(rpc->regmap, RPCIF_PHYCNT, &dummy); > > > > > + dummy &= ~RPCIF_PHYCNT_PHYMEM_MASK; > > > > > + dummy |= RPCIF_PHYCNT_PHYMEM(hyperflash ? 3 : 0) | 0x260; > > > > > + regmap_write(rpc->regmap, RPCIF_PHYCNT, dummy); > > > > > > > > regmap_update_bits? > > > > > > > Im a bit hesitant to use regmap_update_bits() here as some of the bits > > > are not documented. Here you can keep your code as is. I will change it afterwards if needed once I clarified all undocumented locations. Thanks and have a nice weekend, Wolfram --5QK+6x2YA2y8yiDI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmFW+UEACgkQFA3kzBSg Kbb9Nw//bCZjWZIYqwiSCfxBOafnLWkptccKRA/ccZ57W8k5zOSNRRPmx68uEr2+ G6p3M5tlc9g9oqT0Yek9lce9f+7SIVrbOdHLONIpBpeEHEb4FfZUKqOiLzDB+JDf RlMF+IbEFNOwDAfhFCJdR9SY5GeobFjmLpTWyMfJlRnFvTFFe9S3NF7V1V9AQMHh KrTC2H67mMpgzVwT/iF7naTL4mHI7GaT9I1bm3U1meHYxDM7hDZB2uWvwErPzh1w plGrppDm02M6Bj+IllzZukxvC7ppzPDAjmuHMttjuurInrem5NrWCtTMT4mZdf/w 0OIn2me7d40DI351em9tk5YL3tsqyIgTp+MpmrDGGi/9bs5FCQzPYh5RHtRVNwiZ XicfUYQzFXg5FxSwf2LcDOcuHu737TZxjjrr++cKC6e9uGnzfXUlAy+HNhzSce7M NqIZbnMNQD2t83mThggTvl+XgNQ/c4pMiJ11Je/fImfHkB/OV+ExZzhoTYqeRkjX STlHRriE+XIuotL+RFD/ImGqKXPauFhWJwCrQcJFmwMhV4vl8EkWdtZlNDiR9sR7 +ir4YTUv1s7FUEpRCozcHus1MiKtFdoxDgC+yNDLwbo/fDE21lBB7o/4nTm3P3Qd itXUJBUf8jxaSazpaURv1jiRCGSFZZEZCYmbnD2SDS3+y4J3PDM= =nApo -----END PGP SIGNATURE----- --5QK+6x2YA2y8yiDI--