Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2703032pxv; Sun, 11 Jul 2021 23:13:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTsIGWwIpoYLTlTqVfLcg0UcANUr2saQOHSGaaLMskWZMw7HQU7m63Oozathi5kIAYI7qA X-Received: by 2002:a05:6e02:f05:: with SMTP id x5mr17951284ilj.268.1626070388737; Sun, 11 Jul 2021 23:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626070388; cv=none; d=google.com; s=arc-20160816; b=BhFD7Q0UIRaaSmhlPIqMBbCsYJiVDwtEKXGvSOk4QO3/lKF+Aq3XINTGt+YxrQm0HR G89ubD5VR6V4Dybaw/nMEM+gJqlI3vieFf7IXBgNcqAdpsfgrj53SO5J9api9r/pV4dv Lm2taTi+Ob0ypfHhIJWn2DM7BKSNmFT/uIEKwNpx92pJpFYT4TJrM7vzLrxI5a4U2L3w qQWsTteK9c/dgFaWzo9P54dZ9dpT+GoAtZFFhLW3HqLpuqgpFNbAQ985ddn+PuZlkQAy zCNMC05/iZE6gDzNqnscFN/gjS5Ybdc5MwLT7bGnWssdk2U6djku0VFWmuLTrSNvJx0H OrfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jTSpsfbeUBiXIkaUfKiy7vmPb51VTyDHzceMaIu2ymQ=; b=pyUR90JrecEdoVdVaAdUh5iWU5nRjt8U2c1Vrg01LLe5U0oGS4TSBj19zY8p2/g2or DiiLnntgUW/2vU0J712y7I46G5D9FBmdOfJ7F/fmZUPgk3/EjW7vxmq7DcFX7M4TdkjD 24dtEKGVQ882pVfMr9UNAuSJhLwhZcVmFhKeQpsGmeRE0cLWrKxolhn2JJ/5oFkClDzj xiEbSAW1m1H7IhYRviajY4vYMWx3RCiP/LEX938hAkhac3fqixzwNh6t2EpJnWKGYdlG FtxfZZ5/g1xNRdv7a2VqUnH0wY5vXyQUT9i1EyqQ460rjgHUBGCYD3oj7Vx7tyFOoIS0 gerg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UXkAaONG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si12781109jan.58.2021.07.11.23.12.57; Sun, 11 Jul 2021 23:13:08 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=UXkAaONG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232432AbhGLGOV (ORCPT + 99 others); Mon, 12 Jul 2021 02:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbhGLGOV (ORCPT ); Mon, 12 Jul 2021 02:14:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE0AC0613DD; Sun, 11 Jul 2021 23:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=jTSpsfbeUBiXIkaUfKiy7vmPb51VTyDHzceMaIu2ymQ=; b=UXkAaONGpPUpgxf2/whJ2gbE9t B83f01b92QycwvpcKm64yxW2cKM7jwck0texO/19ot0/PNgSGIO1Kl5NuzzxDWgHVTS/88gRsqEAC j4+Mzo7xDhHg9zC3TGORuMSbvnaRpgbrg9ZlFJ95inWQvnOSTwz7E0aLZzvPlw/MIzz02ilJS1Qxk fteQgbkq5p6kpFbIEtFAc7OscrvI7jMgHhIPA6c0fqdfyQuyBODYq/40v88//XxbkpkX2kHp7UYyQ 5ULujre0UbacgHOsIaSAq93vNgu5oxOSlPijZHoLRkB8jbakNMEXjvvl/hIMa7gcbHuWNbb2wsUD9 sDtHXKeg==; Received: from [2001:4bb8:184:8b7c:bd9:61b8:39ba:d78a] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2p8a-00GwCG-LO; Mon, 12 Jul 2021 06:09:58 +0000 From: Christoph Hellwig To: Linus Torvalds , Andrew Morton , "James E.J. Bottomley" Cc: Russell King , Guo Ren , Thomas Bogendoerfer , Nick Hu , Greentime Hu , Vincent Chen , Helge Deller , Yoshinori Sato , Rich Felker , Geoff Levand , Paul Cercueil , Ulf Hansson , Alex Shi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, linux-mmc@vger.kernel.org, linux-scsi@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org Subject: [PATCH 2/6] mmc: mmc_spi: replace flush_kernel_dcache_page with flush_dcache_page Date: Mon, 12 Jul 2021 08:09:24 +0200 Message-Id: <20210712060928.4161649-3-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210712060928.4161649-1-hch@lst.de> References: <20210712060928.4161649-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pages passed to block drivers can be mapped page cache pages, so we must use flush_dcache_page here instead of the more limited flush_kernel_dcache_page that is intended for highmem pages only. Signed-off-by: Christoph Hellwig --- drivers/mmc/host/mmc_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c index 65c65bb5737f..3d28a3d3001b 100644 --- a/drivers/mmc/host/mmc_spi.c +++ b/drivers/mmc/host/mmc_spi.c @@ -948,7 +948,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd, /* discard mappings */ if (direction == DMA_FROM_DEVICE) - flush_kernel_dcache_page(sg_page(sg)); + flush_dcache_page(sg_page(sg)); kunmap(sg_page(sg)); if (dma_dev) dma_unmap_page(dma_dev, dma_addr, PAGE_SIZE, dir); -- 2.30.2