Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3363556pxb; Tue, 20 Apr 2021 06:47:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbTJLHQOnQBcr8KUZzqHweyC4eeCRg6iWwPPBFVhruz6l60YhUcQChF2EhNdvppp7cRCK1 X-Received: by 2002:a17:90a:a103:: with SMTP id s3mr5214367pjp.158.1618926461625; Tue, 20 Apr 2021 06:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618926461; cv=none; d=google.com; s=arc-20160816; b=LSW7i854ZUJ2Llfe2VYys/hh06LaMfP+COitE4SBBHg3AjzaLer2xJ/Qu8xSTavkpn bXKTqdYDnbpqXwr382SH0hqHGGlY3ebyApbUkRbFOzKvllSElHgDiA7QpZ3EZ8ZJL3zi plgLM9psKeQEsPs+uyOoKl56sJ8rIJyE32nGYObuS85XfoIktzS8b+hZkyoOOZuTI0nk B/b2syHm2Y21dxY59/0mZkgjyFMlw5FQmNYCkNNM0fxSCH/mNXjvO2AOCZprsTFfRw74 j2Vkt1zqdyG0qF6LA3dD1NKNAZ6NwsfFYg3F7/9CvrFr3jJYCWQp/776jjGW9/krir3w RzFw== 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 :message-id:date:subject:cc:to:from:wdcironportexception :ironport-sdr:ironport-sdr:ironport-sdr:dkim-signature; bh=0R0N7fK9F0NMQqUcc3ZQGTqxzjtRfcz5fOCDxiSB+ms=; b=H9yO9I07GmdNvcqGagFH2DW0Yz6Z5GRmGNDLr7KzgQa1cSv+kmf5kObVmKXC4PPV0j P7n/e43kwr0DDydX9UDJnzhRz++/jaIT474NEOtFkjTTfBKH40aeewchRUtc1io58PKO SA5nUb2SeptqUMT95TbWShPiZhERvy0eTyYc9bX/cgg2lDKZZD6phdGw9+BLgo/N9LDW Z3BeoSkPB6hZhfgaKMrrWAvZMwrr9GjdAWO+TF3KidbZosBeg1Iv0c+nzZkJ7c5Dq1EP NV2naN9FO5T3Uoaou5IT6TO15O8rlE66U1Bkfhc2hAW+Cl5MV6nSk7N53tEBSoytzPm4 8kCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=JOLTcwWU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si19929123pgi.580.2021.04.20.06.47.28; Tue, 20 Apr 2021 06:47:41 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=JOLTcwWU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232449AbhDTNrU (ORCPT + 99 others); Tue, 20 Apr 2021 09:47:20 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:39268 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232359AbhDTNrT (ORCPT ); Tue, 20 Apr 2021 09:47:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1618926408; x=1650462408; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=28KmEltiF+hSxTmWmBPPQ1K7ffLWnavdXcRkNRJ4HwA=; b=JOLTcwWUeEKd49+pafYxbT/uO4RDrm315F75XePZM7cdU9EBNnixy4y8 zvPSp20wPsJ/M4EgHI4hAv7sPN2WemJ3LjscJRtLZxyUUwQSfXmWh6psL UOUbc1je+zgTk54GozZOQs0r2puSxERKwH3W3cU7TJXUF9dDHQ3kGGiOj pBKUB8x4vnVOvUAel6IDU+MEDl5LxLHw6BQMG3dXMeCJrc2LiXhWnkcaa yr5ST4+WCclEWkso8HBM1gb9tDX31pGGWLEOk6CtVQbJz1eUaBLgbaETA 4dqyyOpJsa+G9qW5VefvNSF3jCA1TtE1p6mz+gQajn2RQBt/N08Vz79Dy Q==; IronPort-SDR: lmWk0cmW0NvZOH8FfPoWNwnLi+HuhUqOukcTM/ZMK7YhxxT3XLvrypj3EHo+zalE0R8jL66wE3 UKYpqZ9AsPbMj7Sp3JB7dNaNV2FSgSojEBh6k0PGlGwHVsQAk7YGjtl70oRNlPu73xLPu0lwDK NU5jKejyqd6KKhjDdDykaAZJXyiv6noSzOa+olxxNMN43xfPGjTU8Vjc5AZcdafr3qgf1jur9s bY/bMvCLudF+rywdk3X4+212WnHRcd0CYVwtviJ3tC6p5xMhihSd+m8Sp2Z/Wfn7KGEctdRyDg wPY= X-IronPort-AV: E=Sophos;i="5.82,237,1613404800"; d="scan'208";a="165548005" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 20 Apr 2021 21:46:47 +0800 IronPort-SDR: zb0dpCGshDpCWg8adLh/gmfLltdWaor/hd2r7y+7KoIhvAMI+nzWHEzMX4vmuVOGCLbEoADRDe /HqnyRCMCH8GaYWU/tsLk96NXiaHXFvVfhC1dLQ2tlP0T/0oCu9gks2liopOuxJ3iMUwJ2LvFU JSrxa8G2gbsj3OKBdSLxH9jTLcomBxR67hb9t/POQWMFXTQHsTIP+XS9mcA6OS2CEhRKMhv5Fe rhJUnyOYHhD0JqlcrPEYNyFIxMA82xUmGvbsNUmWGePAQo8OhJ7S2DpxHz1ng4zVTYypuiEGzP plIOcSfYd0p9/QFOuHh6jLLF Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2021 06:27:27 -0700 IronPort-SDR: KS6hdr/2wusYvxOcO+bUbaXSPh7xZ3l1zPK1pQ6s0m3lnrMNrV5uBekhd5oDJ0uvfE6YDorUwX gqTiwCS0Gl+USZvn0aY5jRekGxXR86EZw5/CBac5vQniVtZohy3VqpNvGPI24amgjdxMTG9V4F btFexERHfgkqc4iMPexEOgid7IsSwJir3s4tY6hvzeMApMH7GSniqXriSW+RyHwsLMuVly//n7 M3w+UmsdT3eDzykVoMjzyOSPiSVnYXpyxnmm/awFF1v6RLV+Msd0XTb+4xyaZRiXEExOMPLQfo IUo= WDCIronportException: Internal Received: from bxygm33.sdcorp.global.sandisk.com ([10.0.231.247]) by uls-op-cesaip01.wdc.com with ESMTP; 20 Apr 2021 06:46:47 -0700 From: Avri Altman To: Ulf Hansson , linux-mmc@vger.kernel.org, Adrian Hunter Cc: linux-kernel@vger.kernel.org, Avri Altman Subject: [PATCH v4 0/2] Do not flush cache when it is disabled Date: Tue, 20 Apr 2021 16:46:39 +0300 Message-Id: <20210420134641.57343-1-avri.altman@wdc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v3 -> v4 - Attend Adrian's comments - Add Acked-by tag v2 -> v3: - rebase onto recent cache changes v1 -> v2: - Attend Adrian's comments Cache is a temporary storage space in an eMMC device. Volatile by nature, the cache should in typical case reduce the access time compared to an access to the main nonvolatile storage. The cache function can be turned ON and OFF. Once OFF, the host is not expected to issue a flush-cache command to the device. Avri Altman (2): mmc: block: Issue flush only if allowed mmc: block: Update ext_csd.cache_ctrl if it was written drivers/mmc/core/block.c | 21 +++++++++++++++++++++ drivers/mmc/core/mmc.c | 2 +- drivers/mmc/core/mmc_ops.h | 5 +++++ 3 files changed, 27 insertions(+), 1 deletion(-) -- 2.25.1