Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6750260rwb; Tue, 22 Nov 2022 18:56:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf77CO4fXzZxoNYnawyoosy1YLpBeRyAC7/dEw95npHqlxu5bhyLy6aIT3erfuVQ/tPT+Yo4 X-Received: by 2002:a62:2544:0:b0:565:b27d:1f61 with SMTP id l65-20020a622544000000b00565b27d1f61mr16673613pfl.85.1669172168032; Tue, 22 Nov 2022 18:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669172168; cv=none; d=google.com; s=arc-20160816; b=ewQ8Df/fgDJAM+A5AgZyUrmQOVoatJQr6Tx0vWziAYINck7+0LgRGtsgEXAmCB91oY zoAraKIVBv2ExoB4XmKB49uD88en36yWLtGoWnBNyI8CvarWrAicGtZFKVQdgGwMCz8X YeSlbyOSDDiUfXFV/XxVmmyaj90UCREFwndlvYuYGUU3T/Rp04fs3P5KaDc30bXIgceA 7kUP/rzvSwjQ4IGbjJP23nW7fdl/wKkuIV4ItjMSgsDgPq/vJVcOxBQEp65Q3ieEOo7e ENNnSmbxc9rxSuAj7rPixJ4zNiZeEzdngwrh31pOYwmeA3qshNTn490c3N8qM5ytKrCQ r/rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=oiw3VQM4iG9ywox0YWD0HMAieBlTQbVXVQ/U0gyBGQ8=; b=ThtyTcUzYdf34IDFKlDPLiu6R3XdYlffEqDYnVZhg/Xy7pASaNiie2dYH5/ElGAlZI jl2DpF2KQ5HgYzbD1rFFq4k+vale/4+pRu4ButNjclAKKtMWYbc/DDytdHe9U6RqgbD/ 4L9vgyb9a1DTM/5dHhH1nhJeHhwNMkTdQcmI9fnhZF+UfJGdRExCuS7ENlA83Zo2SUrQ J4CoHOaqxqgGmy/5r9LpjZ7VTZRB+W2W7t8fpLjNMCGaF4H23yeoSENs1dq7wof8wPLD rerW3o4jbD38Y68RAknEgX3THlKl6L+zJDOEpbqqtD+q+wTTmc6OuNJoUEcrEtw68wT9 LhNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c9GCdkcT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a170903228400b0017535568d5dsi18018352plh.256.2022.11.22.18.55.56; Tue, 22 Nov 2022 18:56:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c9GCdkcT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235462AbiKWCwC (ORCPT + 89 others); Tue, 22 Nov 2022 21:52:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234400AbiKWCwA (ORCPT ); Tue, 22 Nov 2022 21:52:00 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF6FBE2B60 for ; Tue, 22 Nov 2022 18:51:59 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so679250pjc.3 for ; Tue, 22 Nov 2022 18:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oiw3VQM4iG9ywox0YWD0HMAieBlTQbVXVQ/U0gyBGQ8=; b=c9GCdkcTSNAeiBCFWMFQLvOs1sVJBRSmadaiAVokHXoBiX/LzltS5lrusu68bB2VEU wHdgqFif2juw+2FD+Th3xwCatI4fDE0jhnvpnAr4XIHylCPYnOahNxSRGs5STmg4Dajf k0x3stKh7HKokcIR6OYimRZiMeqFVlMLwHfvMmZ+sGpio07TMy31JYH6O7u+PfdEeG+a PgP7jWw5hbTqetfTPZlfok2Oqg4pW7ydku23J2cl5dzk9mBci/7QcA80paI9BTT5m6Z5 yGNgt6tsDo2ubxYkZOgFqplCDCSmS3y1Lad9B6/fX3TL6MJJo1otcDlJmbfzm2ECD8Wc 98Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oiw3VQM4iG9ywox0YWD0HMAieBlTQbVXVQ/U0gyBGQ8=; b=6OBREMRsmn1/Iz3vmRzGp/yx2Hski/Ixfc4AqTKsUtFV0gyCfavg0rffL9sG5wpcft aYBXfB1BwhzzCfgB5y5tsPCMF5ip2HoY5l3wx+zV4grFeK0EYiGjZOMJd9/AMw+yxlHl vwvlNtLy+wEFTJyh7ahYomopacpP77lladKVo4Txf/i/9KZ6MhtFAUSLd5Eo6dTdFIJt ec25RRfIxI8LTUgWecn45cGCBYHgEV3BnoUoSCcEHx7JJfbJ6cK3iWq8xdJHfE8TgV5w 8gtmsXiBIdHwFysaY3BrreuJLRFQ9mYNhnFnCh0NwKcejDg4kYfewACUT/KsDMGDh3/i oevg== X-Gm-Message-State: ANoB5pmrq9RO97ydtYk1yCSFy/JJ+igfnrCQ1MotjiXkNnC5FFvFAjOD KXtzCVJegpp1f1B1bl9ViBPQCi3xSnk= X-Received: by 2002:a17:902:ced1:b0:179:ee31:1527 with SMTP id d17-20020a170902ced100b00179ee311527mr19886465plg.138.1669171919326; Tue, 22 Nov 2022 18:51:59 -0800 (PST) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id u8-20020a1709026e0800b001745662d568sm12565057plk.278.2022.11.22.18.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 18:51:58 -0800 (PST) From: JaimeLiao To: linux-kernel@vger.kernel.org, krzysztof.kozlowski@linaro.org Cc: jaimeliao@mxic.com.tw, leoyu@mxic.com.tw, alvinzhou@mxic.com.tw, juliensu@mxic.com.tw, JaimeLiao Subject: [PATCH] memory: renesas-rpc-if: Fix missing setting address Date: Wed, 23 Nov 2022 10:51:41 +0800 Message-Id: <20221123025141.4012-1-jaimeliao.tw@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the RPC manual mode, if the data direction is not set (such as the flash erase command), the address misses the setting. Signed-off-by: JaimeLiao --- drivers/memory/renesas-rpc-if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c index 4316988d791a..bdf0a7f68ff2 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -571,6 +571,7 @@ int rpcif_manual_xfer(struct rpcif *rpc) } break; default: + regmap_write(rpc->regmap, RPCIF_SMADR, rpc->smadr); regmap_write(rpc->regmap, RPCIF_SMENR, rpc->enable); regmap_write(rpc->regmap, RPCIF_SMCR, rpc->smcr | RPCIF_SMCR_SPIE); -- 2.17.1