Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A887CC7EE22 for ; Tue, 9 May 2023 12:35:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C14DF85283; Tue, 9 May 2023 14:35:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9721E857BB; Tue, 9 May 2023 14:35:20 +0200 (CEST) Received: from mail-m11879.qiye.163.com (mail-m11879.qiye.163.com [115.236.118.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 032C585021 for ; Tue, 9 May 2023 14:35:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.0.116] (unknown [112.49.211.222]) by mail-m11879.qiye.163.com (Hmail) with ESMTPA id 7D73A680598; Tue, 9 May 2023 20:33:50 +0800 (CST) Message-ID: <3753feaa-728c-e9bc-4514-8735a51b4ebe@rock-chips.com> Date: Tue, 9 May 2023 20:33:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 1/5] mmc: rockchip_sdhci: Skip blocks read workaround on RK3399 Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , Peng Fan , Jaehoon Chung Cc: Eugen Hristev , u-boot@lists.denx.de References: <20230506174104.1728148-1-jonas@kwiboo.se> <20230506174104.1728148-2-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230506174104.1728148-2-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDTUpLVkpPTU5KHx8aTUhPHlUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSVVPQlVJSkpVSUlJWVdZFhoPEhUdFFlBWU9LSFVKTkxJSklVSktLVUpCWQY+ X-HM-Tid: 0a880080f2a82eb5kusn7d73a680598 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PiI6OCo5Ij0SESsKF0M0LDg6 FkkwChpVSlVKTUNITUhOTUhKSk9KVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKSklVT0JVSUpKVUlJSVlXWQgBWUFJQ09MNwY+ X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 2023/5/7 01:41, Jonas Karlman wrote: > The workaround to limit number of blocks to read in a single command > should only be applied to RK3568 and RK3588. Change to be more strict > when to apply the workaround. > > Fixes: 2cc6cde647e2 ("mmc: rockchip_sdhci: Limit number of blocks read in a single command") > Suggested-by: Simon Glass > Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever > --- > drivers/mmc/rockchip_sdhci.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c > index 4f110976f4e8..8e4a158049a9 100644 > --- a/drivers/mmc/rockchip_sdhci.c > +++ b/drivers/mmc/rockchip_sdhci.c > @@ -594,7 +594,9 @@ static int rockchip_sdhci_probe(struct udevice *dev) > * triggers Data End Bit Error on RK3568 and RK3588. Limit to reading > * max 4 blocks in one command when using PIO mode. > */ > - if (!(host->flags & USE_DMA)) > + if (!(host->flags & USE_DMA) && > + (device_is_compatible(dev, "rockchip,rk3568-dwcmshc") || > + device_is_compatible(dev, "rockchip,rk3588-dwcmshc"))) > cfg->b_max = 4; > > return sdhci_probe(dev);