Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4285292ybb; Mon, 23 Mar 2020 17:47:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvAUXetMcKnIxylR+fSe1EljK1BNoWxB7X23KLbmrvf4Y/gEtY5WOjSWs/IN6VQkzFKGk3L X-Received: by 2002:aca:ecd7:: with SMTP id k206mr1571673oih.113.1585010820247; Mon, 23 Mar 2020 17:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585010820; cv=none; d=google.com; s=arc-20160816; b=mI7CO7IeNn9LiMg1oqk8MSZ7VLW76MNsrJKShF1WR7qz3BpOx5X6I82Sk0BBBXRegH 7Zep2akJOsVVz2SGLYbtShZYjn4T1+ZNgJIk9J+rmCwcDR+PF5+J1u8c/3/6VUPYwgD+ bODtc0mKUirT31XyovTFsZD77E9s9W/+yE2t16qhWXVslGVfBqtFApdv4+ar+VQT4SWW VGnEJZObGauQuJfaPX3grOX4ck2Y3u3iVGVEAe2imt/eyMAK9ifO52/uGc2x6N4caqA7 47tEDEDAjOhSa4kviMJLttWQtk4eLEhFun74zp9b0Chb8Yi+ZHoJmMZlAWxP/xrkohj8 lBIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Tt6zq1/dh0kHUH93o80rfWjY+vN4g2hKNDhQ3Im1Now=; b=nmBZxEoF08ktU8OrBM5me51w1Y3OsNy5F+O0GOFwTy3NhHYq67C4BTThY3yDmVamP4 pbYWn5zQ20P/vP+rBvf6cFcteRNQBb0QCPOqB2cLNj9NjBp5+YlByaliP+znJQ2T5Xua 00fo3NDJcV2hTPBvBWztiDQ36D51q6tPTtXx4J7xTsPim1xcfw9B2RjPxb7m1cGqvkQg 8GkeFU7K4ZKSLSItnZW8dhVDQ2WVoL4vbpbgI9bRBWPG8taXLIoDPU8BHu4VfV9pKl6i Ed0n9z6zBZbwp90pcTE6+MdtBUhjTemLcxt/iE15NlOoDovmFp0pPr2QQri8s2jjYTFJ 23sA== 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 l63si8710030oif.161.2020.03.23.17.46.46; Mon, 23 Mar 2020 17:47:00 -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 S1727118AbgCXAp2 (ORCPT + 99 others); Mon, 23 Mar 2020 20:45:28 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:59610 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbgCXAp2 (ORCPT ); Mon, 23 Mar 2020 20:45:28 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48mXbR5r3Jz1qs45; Tue, 24 Mar 2020 01:45:23 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48mXbR568tz1qyF8; Tue, 24 Mar 2020 01:45:23 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id FO-gghsvXtfJ; Tue, 24 Mar 2020 01:45:22 +0100 (CET) X-Auth-Info: ZGG/J4gwG3dOZ4fK596fd89O+wp6LvVr1WgV+S4kI0M= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 24 Mar 2020 01:45:22 +0100 (CET) Subject: Re: [10/12] mtd: rawnand: stm32_fmc2: use regmap APIs To: Christophe Kerello , miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, tony@atomide.com Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com References: <1584975532-8038-1-git-send-email-christophe.kerello@st.com> <1584975532-8038-11-git-send-email-christophe.kerello@st.com> From: Marek Vasut Message-ID: <784fafd2-f1f3-f9c4-d6eb-1d2f6f8d38e4@denx.de> Date: Tue, 24 Mar 2020 01:44:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1584975532-8038-11-git-send-email-christophe.kerello@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/23/20 3:58 PM, Christophe Kerello wrote: [...] > @@ -531,11 +515,11 @@ static int stm32_fmc2_nfc_bch_correct(struct nand_chip *chip, u8 *dat, > return -ETIMEDOUT; > } > > - ecc_sta[0] = readl_relaxed(nfc->io_base + FMC2_BCHDSR0); > - ecc_sta[1] = readl_relaxed(nfc->io_base + FMC2_BCHDSR1); > - ecc_sta[2] = readl_relaxed(nfc->io_base + FMC2_BCHDSR2); > - ecc_sta[3] = readl_relaxed(nfc->io_base + FMC2_BCHDSR3); > - ecc_sta[4] = readl_relaxed(nfc->io_base + FMC2_BCHDSR4); > + regmap_read(nfc->regmap, FMC2_BCHDSR0, &ecc_sta[0]); > + regmap_read(nfc->regmap, FMC2_BCHDSR1, &ecc_sta[1]); > + regmap_read(nfc->regmap, FMC2_BCHDSR2, &ecc_sta[2]); > + regmap_read(nfc->regmap, FMC2_BCHDSR3, &ecc_sta[3]); > + regmap_read(nfc->regmap, FMC2_BCHDSR4, &ecc_sta[4]); Would regmap_bulk_read() work here ?