Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3478623pxy; Mon, 26 Apr 2021 02:46:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdW87pYvpTel0T3djBXBAxkqnuSi4E52kGn6MkIF09dQEpVdAqwWCHhihU7j4BcmRIyyi8 X-Received: by 2002:a17:907:2708:: with SMTP id w8mr5911187ejk.0.1619430364195; Mon, 26 Apr 2021 02:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619430364; cv=none; d=google.com; s=arc-20160816; b=EXspJfAn34OetGYE6cTLJE22YakO5Y/O0fjh+vR7Pm5Rr81DpczXeV62azzMe6t85C qCU2mNrAxXZO6hCLqpVqejVApQDwKBma1UH93rvhnbqngCBXAXjfyoRrOEYjfuBzHI5o 2RuheJdFx+YVbNk1l7JzkuDElT7ZaWiLb0/4fNlETFiFpxVaQkKjZWWCw5pj6Eg4ydBl EmTThgeBT1PsnmAZvo8xQkuDcFOQXTyT3aiAQ2tQNfoJLUoRm1HfKV+Lrg9V87rk/GVW qYh0bSq8mttZKaAj9Oy0mj0WEiQ6dIt7xlwKSVuYj0cYonXf7l0m/1KAFQi7fP4UvGGi wt5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wdc4NGpyhSPI0l8P0rAkrFsxEyB9PvJbldlNpyk6qiw=; b=GuSh7YcLhu2w8rO8IUP3/Y6nW2M8d94Um10HJOEkk95FAq8FBPs8LRYegzNc0fxw0q 9XJUlr8Bgh7miXnWIyL6gk2/154TTmuTgAhV6xHBve5W0b/3UI+hXC/0/GyJjpmcQqRW 87Nz+6qqwNpuqjINPQ6zlft5o42EMl5mYGmDs+enl20x6OoNVwPQytfk0NuhRNJIuIE9 +Noek/QxibVTcytD0TwQ2Gx1YNAU+JaHgBmogFbBAn4w7YvV4LHHEpY1A0p45o4ZBspK cMPH81quTeXTKD93XZ8GNrxCVoZTU94j3LtEJTvpAmCINWRHWV3nZRu6SxRyLS0bXL6d LJig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Kl5/ZzkJ"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si1604669ede.388.2021.04.26.02.45.39; Mon, 26 Apr 2021 02:46:04 -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=@linaro.org header.s=google header.b="Kl5/ZzkJ"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232655AbhDZJpY (ORCPT + 99 others); Mon, 26 Apr 2021 05:45:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232295AbhDZJpX (ORCPT ); Mon, 26 Apr 2021 05:45:23 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27717C061756 for ; Mon, 26 Apr 2021 02:44:41 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id a12so13600079uak.6 for ; Mon, 26 Apr 2021 02:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wdc4NGpyhSPI0l8P0rAkrFsxEyB9PvJbldlNpyk6qiw=; b=Kl5/ZzkJ9EV2ugj/FBuCtAzsCK5u4BnciggCrSmn2qLVdL2oqJI9IwMYUo1b5kg20q 4Io75xTCjVechg87eHqaJhvHG5OCXDKz/HXK1tjdQifqLVvdqs7HRWksnM8QPyMQDfOR Ew6YQLqhhC85vvhhfIU4qsm2LWg4OX66KhmIfUkH5bmdnLWD1dZ5f5/Ru9XLKIZFT3Ty W7dSqpkR6DQFfQYhCfHTf4d151c9gE25JH6t22vV+vsvwXggW//4IjaDX4hclxtlCKTt RPxwheSetgvl78CPkQ/51GHkU7x7zyscULwvJN86MJIdbGk3BIF/hgO91vOoMWBo4NIW 4ZDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wdc4NGpyhSPI0l8P0rAkrFsxEyB9PvJbldlNpyk6qiw=; b=OxjrS5sbS0xf4q38rXrTcS7YP601y2vb5+/KhgLXf7GOERRJahjuWSvwdO12TmAdmG Dyl4KQKS2BuH/XX8mMSiGq2kS8Xm4JcjBQnQyySSuD+QrnIqnNcYkr4StoylKfA9jog0 DHwufUdBS3OUBrxa1zJBxa8USrZOQEUj6Ju4kZphvdRT1iWWg/8W9vs30YkElqayIPKE yvqZ8nEepcGOBWLdGvI+jptjT0zMFhrtPSgA59uJFRdFxkF8pEIVz/L7lyOLFhEFdzbr HRR5pAq1n/JqriJkRxfrXFcVdIAVITti0uHUbV5Vf0mUZm18pQCGJjHoxWOP6KhjQpxN AK0A== X-Gm-Message-State: AOAM531250flJxuIsgJiYQKjufZ144qZOBvOvb+toATZU25XHc+5UOHl Ho9y6pQYCEDdSA4mrN09qjTboVHAio9QPvL7yQbkBQ== X-Received: by 2002:a9f:37c8:: with SMTP id q66mr11124562uaq.129.1619430279926; Mon, 26 Apr 2021 02:44:39 -0700 (PDT) MIME-Version: 1.0 References: <20210425060207.2591-1-avri.altman@wdc.com> In-Reply-To: <20210425060207.2591-1-avri.altman@wdc.com> From: Ulf Hansson Date: Mon, 26 Apr 2021 11:44:03 +0200 Message-ID: Subject: Re: [PATCH v5 0/2] Do not flush cache when it is disabled To: Avri Altman Cc: linux-mmc , Adrian Hunter , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 25 Apr 2021 at 08:02, Avri Altman wrote: > > v4 -> v5 > - patche "Update ext_csd.cache_ctrl if it was written" accepted > - Add one more patch: "Add cache_enabled bus ops" > - Add Acked-by tag > - another rebase > > 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. > > Avri Altman (2): > mmc: Add cache_enabled bus ops > mmc: block: Issue flush only if allowed > > drivers/mmc/core/block.c | 9 +++++++++ > drivers/mmc/core/core.h | 7 +++++++ > drivers/mmc/core/mmc.c | 7 +++++++ > drivers/mmc/core/mmc_ops.c | 4 +--- > 4 files changed, 24 insertions(+), 3 deletions(-) > Normally, I would appreciate this split of the patches, but since these are material for stable kernels I decided to squash the patches. I also took the opportunity of updating the commit message a bit and did a minor cleanup in the code. Please have a look at my next branch and yell at me if there is something you don't like. So, applied for next and by adding a stable tag, thanks! Kind regards Uffe