Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1906251lqa; Tue, 30 Apr 2024 02:53:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFOThD1cEH+fm/kRL/vDKI4KN/XW6o1rrYOgYE2lbWQpK/OnbnYgbUcm7HyNyQIZmHDsZyK8O37sa0QlrZTzw9oZFuJcvjtia0oFdotQ== X-Google-Smtp-Source: AGHT+IH88+ExQ+gMQ0sZnngV9jt9OPiL9UJjVcV6q/rBTL7fRSg3pUcRPuJninHXmTkr+Jk78FXd X-Received: by 2002:a17:907:30c6:b0:a59:29ea:ed1d with SMTP id vl6-20020a17090730c600b00a5929eaed1dmr746907ejb.22.1714470824742; Tue, 30 Apr 2024 02:53:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714470824; cv=pass; d=google.com; s=arc-20160816; b=XJ1V0iVRM5b5B/BRJm4flfz2YRSS/YsFAT0Xe8L6GWB9eA7rmVGQ0xp/Wt7WK3+pJF GE7y8V76e+S0JqFz6iYdvkD4bdUTTD1VXNG/ZzI7mtYETJs+EITVU0ISyrqu6BR4RWoz WHvHrHHntJhGi9g2Gzl/uJS9j/BZznwS0rQzF8wDxqtj9EOE67IGUhkEWmBe6K/RQQYJ PhzqO3y8MaRkjrGnfIR2orXqP3CeZgM9IPg4yUxl0G2poJihKsj+w6lpyI1z8mDNyhAV flGix1NpKWD0NczjOnv01kg44lCeZy72hsy9rjJ6cJ/1Bece+rC0kNUH+MD+qoAtsjZu /Rxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=GXKfWFFF7RQoHWKkPZ06vCZuiUcnMAH+8TtHuYpvnOI=; fh=hH3chbGuvkHWVH0GGv1xsOoK3wIOvLwhtvQ3HUi3Lnc=; b=kf/Iu6tWK2OwjSV/2es+NAD+8skRRxsR5cU2/Ps4uOb2CuUSBN/ZAmatJXvFhNDmbb uZa1R9eVBMHaDlGjFwxqDvJ8HOGVTQnh2E++CUXQufu/yExv5YuBVVbucpmehSNTldmm fgmiFyZHeUTgRWFjRPSqzi+NFv7HrUODu6szKNCGWvhL+tgTa/HWvBwcE3halHW6m5RM h2ju8nc9UPNIrbIkjb4yQ8UfpZ9gYtlQ3Zj/q/UOTcyCxykABnWATPCSHdtKrOq4bQJi h6yX59eilP7WgD5JpERiwNOWwLMEvaiYqyUgeM/vVIuTbIVYKu9OoVGFY+DHIBwi7iZ3 tXqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=P4oUqNvM; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-163726-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163726-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gr20-20020a170906e2d400b00a55ba099cbcsi10147463ejb.544.2024.04.30.02.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163726-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=P4oUqNvM; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-163726-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163726-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7817A1F241F0 for ; Tue, 30 Apr 2024 09:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98DD5128835; Tue, 30 Apr 2024 09:53:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="P4oUqNvM" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 881BE128389 for ; Tue, 30 Apr 2024 09:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714470817; cv=none; b=CTYxM0d3HYDofxYaR8BNV7p7B3q/F1t5bjJzcYkwx8q24j7yeVD14Jy/lFFXGlbvpwrzaK3jzaaleaFAalYwrSCmevKv5H+sk5hEU1rn1KpiBiHsweBQvScXAvwrOOtKwIrISvcsarlEX9obX3btyU6iK8Gbn/b1//c3hzT/xQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714470817; c=relaxed/simple; bh=GXKfWFFF7RQoHWKkPZ06vCZuiUcnMAH+8TtHuYpvnOI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kQrjwH67uMmAZeHjm7Fa4ejMoZXxEydPcxZMy51Ss9g/oMwT6h/0vePag4c66xNv57jEoxit9G9CJo+TXyO0mzrmC+Gl8NrXwl98aVkfbCDl4zucY71crc6qpUud153Xgm3OghAkbYPiBpIOhF67zAzPOjwGUd/lZxR3WCDOLrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=P4oUqNvM; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=GXKf WFFF7RQoHWKkPZ06vCZuiUcnMAH+8TtHuYpvnOI=; b=P4oUqNvMQ/CpzA4VWElE p/bnhQaBQfV6FxSDtv/BAYmCbH2U8sz8HnECLyqs/K247dOIZYf8dsDCFRMPbExD soztpszv25qeW0y3j5dIQSp8wpn9erRu6Ci8i0jioYOZ88LwJE4jjho82JEZm/31 MWo1dwrCzDVL7fYgzQ+m5ffh6ATDaKvAaFznGzSDnZtmG3MJSVnDBRRzMy9C0p0b Gu8Hyck/1gRvuPsRgrXcfduOo6vCcfKBCxwzT0ELRQt2vA3aL89Vz6G86FS84VlB pKpEFxg3pCPmOSvUQ6semuGGiPcOfzDK1KOypQqcg30ga9TfizNwGGnARG1TO1jg zw== Received: (qmail 2585368 invoked from network); 30 Apr 2024 11:53:32 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 30 Apr 2024 11:53:32 +0200 X-UD-Smtp-Session: l3s3148p1@9gK/V00XzJBehhrb Date: Tue, 30 Apr 2024 11:53:32 +0200 From: Wolfram Sang To: Claudiu Cc: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea , Hien Huynh Subject: Re: [PATCH v3] mmc: renesas_sdhi: Set the SDBUF after reset Message-ID: Mail-Followup-To: Wolfram Sang , Claudiu , ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea , Hien Huynh References: <20240430093724.2692232-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jparjn2ysbxorccu" Content-Disposition: inline In-Reply-To: <20240430093724.2692232-1-claudiu.beznea.uj@bp.renesas.com> --jparjn2ysbxorccu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2024 at 12:37:24PM +0300, Claudiu wrote: > From: Claudiu Beznea >=20 > For development purpose, renesas_sdhi_probe() could be called w/ > dma_ops =3D NULL to force the usage of PIO mode. In this case the > renesas_sdhi_enable_dma() will not be called before transferring data. >=20 > If renesas_sdhi_enable_dma() is not called, renesas_sdhi_clk_enable() > call from renesas_sdhi_probe() will configure SDBUF by calling the > renesas_sdhi_sdbuf_width() function, but then SDBUF will be reset in > tmio_mmc_host_probe() when calling tmio_mmc_reset() though host->reset(). > If SDBUF is zero the data transfer will not work in PIO mode for RZ/G3S. >=20 > To fix this call again the renesas_sdhi_sdbuf_width(host, 16) in > renesas_sdhi_reset(). The call of renesas_sdhi_sdbuf_width() was not > removed from renesas_sdhi_clk_enable() as the host->reset() is optional. >=20 > Co-developed-by: Hien Huynh > Signed-off-by: Hien Huynh > Signed-off-by: Claudiu Beznea Reviewed-by: Wolfram Sang --jparjn2ysbxorccu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmYwv5cACgkQFA3kzBSg KbafUxAAsJ3wQuqSl+GQrbsQ7yA7ZNfWhXATEOMhQ0RtTH8zsooQ9MsSs1tsqqwp Ygi38r8GGo28LkvKV+YjxwA/jBnW02S5hbGajwYsiWuAOVbXtsneFJZ4ea79sQYP qazKz1Te386vHpPhfKs1d0qTBaaZp1XsD+1P4xd6Y1jak5o7iDca08LlpR0xt3+s b/F5Gy6GVoM69GWRrertb7evWyiiKc0G+QW+8/eXjixe3DUvu81M1f1vxvF7NKR0 GjMYi/VUQJ5ypYBdyUPd94af3+3Z/URbM6886ugSpHOvj7PTs59zG36ddQ5yLJN0 EZlUoofQZ8b0vYpVEm/JcXXG1BH8EOkaffdj5y67HtrQzj7/Jm68waMaTlQKQ+xO hMOdhX7lwYlWGVBFrpYX8UzUofwKnqJlk3w4XG37qTy1ZwH/AfdHHHWm5rdtGPFP IuEFZC0XUGX2aW4XgcKe5UcEGz2bCuqSvmOfUUg1oN553BasKfGIqRnR9innNb76 uxEtrhmjFcQz9ZrBJACgHL0vo5/6NXNZyxx+mwjXWftXLpmmgAr5e6r2x+wGU0o3 4Fi9DlvpJC0N5yjyN3uvI1OhqjD8zh+QyOzHuhWP372es13IpGqYfohxyYrm69Qf alt+AeYq15lanBxcPbhXGY/CgkqHQjQVGF4M75Dmn+tepwkcpIc= =vsZz -----END PGP SIGNATURE----- --jparjn2ysbxorccu--