Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1220153pxb; Fri, 1 Oct 2021 06:13:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyfvgNSDFeZc9pdXXxNdDldghoD7+0EuRLigJL9pgQQZiEmGE6FpDw4N9fjTjbGdBgXVvu X-Received: by 2002:a50:d809:: with SMTP id o9mr14437946edj.149.1633093993331; Fri, 01 Oct 2021 06:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633093993; cv=none; d=google.com; s=arc-20160816; b=0yBNl57HcFZuQGwXYBQUZjnlkfvGjmMMyEpc1LmcXnv947kziiEt9zbdJ+mWoK4vd/ HpjhfZC1ccVI+WKOUN51RiOIGYey/umJN7xc4j6xUq6+oina/aAjOEDOb0Wc+JouKnul qmHcipEtPcyITbzQXNd5hQB+VCjF2B2Qw6RymwlIDXd1A1/rS2qR8JQ4v10T19k07Bj+ g99c+SWCBN9kbhvi7QKihZKVMyZh5vDjUqMfx8483y3LN3awhyXmPA64I6oQd0ohGydZ NEmpvMzxy1htb9uEIHkGDoREO/dYdAPhnOLguUsxXmnT1FBloIcW8AmDS0yTafkivoxp ke6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=c+kURNAAkSIIC5kx7+rU/IV/731k5cWXXDLuC8d6BG4=; b=W+0Jw7TfN4MRWfbOzCRq9cOL5nMfC4ENArZ3oDlKETfmzWDmWvu38csgHw1zoiFUUq JNVuYeKZHCkOndotmTvojtTQ2dXWLz8elsxMAY+KPeJoFrtnyO/aMV0/5VgZD7OOEvgv c4kZKrODS+9WdnUzuQ9tzWRf4r4Tyhj6OjufwRE0J4ZYvXqv6bWxVUeKpZhzTmT7jGp9 qhakqclygHVeQGII1GMzCcpeUm0jGq0q/m/18jQvKJH7ZF9z94PxteG5BbO2qv+zyRpS kVfc/F4ZKLKitlrvqUOAKNdqLrd1CgOz67kTr1DV1jfQuTXeLpOfUcJLDZlvR9RbpOH7 rewQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CmoIj3+u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si191424edm.458.2021.10.01.06.12.48; Fri, 01 Oct 2021 06:13:13 -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=pass header.i=@gmail.com header.s=20210112 header.b=CmoIj3+u; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbhJAMzn (ORCPT + 99 others); Fri, 1 Oct 2021 08:55:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231434AbhJAMzm (ORCPT ); Fri, 1 Oct 2021 08:55:42 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0106AC061775; Fri, 1 Oct 2021 05:53:58 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id r4so20290505ybp.4; Fri, 01 Oct 2021 05:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=c+kURNAAkSIIC5kx7+rU/IV/731k5cWXXDLuC8d6BG4=; b=CmoIj3+u5w6xdONToKlV8fG3jt47szGOKyPvH/oQSmMrhDRpA8wd8iTvAlViEFKcnE ptqm7Fz8WTn/hYmhdBPUDI1pxU0BYKkaR0/Qx8uZUoU+s3AAdg43N+opw7vvcoUBvudJ m+uduBukHAN126diABfdvwqCUu8S1uMeCv0z18Ca5Zu4h03H1g9e86piwSsC+VlqydfB 1pa456Rj02ulpijkQ9gFPtgOj7I+wxDjs//egaMSMWCNeOwmIMK8omDMPNLwztTIljWz xbj4chFNRP/5Cm+zzHbNY0jKWhjRwdrHGn6hdZmAHKH1SW/MBKDTKU5BDE7ZJCuZg+4u K0cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=c+kURNAAkSIIC5kx7+rU/IV/731k5cWXXDLuC8d6BG4=; b=Hg3mpkULPyNHeStQfXOyXK673u9kLSEnIExa2fEki+69U+9E8bwE0twtOdGvsZVc+d Fk6efwtKXUTNtX9Ksm52QovgT2u70pnjR3ghrA5ZnHGXt0lISdPhUt2IHuM+2FxOC96h nNp5UsOSRK4SRORcqjnQhnUSUMLx1GbkoUw2/Pz4XquO8bOAAVmG5m87hglGbZ1xQVPw rPeYPuCrZn6gsRODvo37XQj5x044wRF0LiMxAyzyEv1M/hUKx8X8LDpjwKSX36+vXSlq tx8Zp1goES8OQokJfmSEqkBsqYoZQMr2xhWCJNYht3EhJZl9bNduhaIC4n2AoJfRnqjY Op9g== X-Gm-Message-State: AOAM531w+u5HjDpRtWl7pQBzGvJIJ0Tl2A1PNsIXXVIDseqHjY7Wcl+I lI53xh9+9Okilg5QKGxXJ4ktu9azxM+ku4yHqc8= X-Received: by 2002:a25:c08a:: with SMTP id c132mr5971448ybf.49.1633092837128; Fri, 01 Oct 2021 05:53:57 -0700 (PDT) MIME-Version: 1.0 References: <20210928140721.8805-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210928140721.8805-7-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Fri, 1 Oct 2021 13:53:30 +0100 Message-ID: Subject: Re: [PATCH 6/6] memory: renesas-rpc-if: Add support for RZ/G2L 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, On Fri, Oct 1, 2021 at 1:04 PM Wolfram Sang wrote: > > 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, will re-spin the patches with comments fixed. > Thanks and have a nice weekend, > You too. Cheers, Prabhakar > Wolfram >