Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3540270pxb; Mon, 1 Mar 2021 12:45:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKhazVQqY4+mFV1HkCBRWO8YI2JP9Ao3BI4BjKfrJtbKB8/EB+bgLNqCwqDJJBK41zJezT X-Received: by 2002:a50:8a90:: with SMTP id j16mr17641176edj.334.1614631551424; Mon, 01 Mar 2021 12:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614631551; cv=none; d=google.com; s=arc-20160816; b=iqZt52vdYas0tR5MmUA30XBMeOn+IbSiUHN0kaUCCSOLh0TXD1wG4AtclkIGPjs1Ku RkRa+r0uVh6f2dha2iubW8bmGwo5emT/fb96O6qS1Ns2fbV5gA991ZyDlH+X3GeUKAqw OOu1E4+GgT46wwTUgQfNg0iFFqwmoQzVdj5zsiEyb8E+jdjwf2a/Bwvdg+a0vf2WYvhA zyMxpVb/ef9U3Ec+fC6Kl8+IhkDFvM2EiDECsZeH1/G9P0JcVYrUfRrnXGa+n9B62riD zvPHuKbFuI3MEmouuy+UNOanAxrnINw2KDC0favIUGouyeBXkGGFIbE9nCqWhBlTgBhF xPbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jr49gEs4Te0+iwPx/nEtgKBwIp8SF5VXk68L5IRw2ZQ=; b=CMWW5qS9RlyrTO2GX3AAF3vbXkgBX+IaWokVa9Rsbp1qZl7kC4RSd0CY/J0F6Bpm5p k7JRAoJADx9K/QJLWRz1lBBX+1XBA8o5YuBx77Owo6xE48631+5g9fUIGb5ucyMgQe3d niGNPTFU2fBfKhssmHakEF/dsNx7xULRWzzzkyEUWfeCssQCwvqVl5QJENuI0tuHbauY n9DF2ylF7uB9D7X4TYo9y4vBpQy1mHfYytPBvffninEENSS6OWA5BjIZEKUd09mDWxKd Z26LtJUQL282qNCL4MZMHgytgxsSSVvIUvYRpRRt+BvG1Uq51mUps6zDfa4NmMI/sLzN Zy8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EQrl6wgj; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si4465611eds.543.2021.03.01.12.45.28; Mon, 01 Mar 2021 12:45:51 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=EQrl6wgj; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243626AbhCAUm6 (ORCPT + 99 others); Mon, 1 Mar 2021 15:42:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:36350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbhCARI3 (ORCPT ); Mon, 1 Mar 2021 12:08:29 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD7306500C; Mon, 1 Mar 2021 16:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616906; bh=YWR598s9ftPyqMyDa+kVCJIElHUyK4weZXeEz4cVrWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EQrl6wgj4DGxur6BBgZt/xKgrOdau1uEDwP/c5p0VbEJwNSol84dPfWjJuRl/ehk1 AVvQWrgF8YgCp9b0jucyphAO/MhaJgX5d5NSBVJb1zAMciQ3p/ZwwpHzZwvVSESdkJ 9+jnYWwUNmwsd0Abu790MW/3aA15Q/J5CUc1A2P8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takeshi Saito , Yoshihiro Shimoda , Wolfram Sang , Ulf Hansson , Sasha Levin Subject: [PATCH 4.19 136/247] mmc: renesas_sdhi_internal_dmac: Fix DMA buffer alignment from 8 to 128-bytes Date: Mon, 1 Mar 2021 17:12:36 +0100 Message-Id: <20210301161038.328278383@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takeshi Saito [ Upstream commit d7aefb2887601cf1fc3f86f55d43b2c9aece5e8f ] According to the latest datasheet, the internal DMAC buffer alignment R-Car Gen3 SDHI HW should be 128-bytes. So, fix it. Signed-off-by: Takeshi Saito [shimoda: revise commit description, rebase] Fixes: 2a68ea7896e3 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC") Signed-off-by: Yoshihiro Shimoda Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang Link: https://lore.kernel.org/r/1608114572-1892-2-git-send-email-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/renesas_sdhi_internal_dmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c index 74eea8247490d..6e2685c9e9cb5 100644 --- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c +++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c @@ -180,8 +180,8 @@ renesas_sdhi_internal_dmac_start_dma(struct tmio_mmc_host *host, mmc_get_dma_dir(data))) goto force_pio; - /* This DMAC cannot handle if buffer is not 8-bytes alignment */ - if (!IS_ALIGNED(sg_dma_address(sg), 8)) + /* This DMAC cannot handle if buffer is not 128-bytes alignment */ + if (!IS_ALIGNED(sg_dma_address(sg), 128)) goto force_pio_with_unmap; if (data->flags & MMC_DATA_READ) { -- 2.27.0