From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAE4FC433ED for ; Thu, 6 May 2021 13:07:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9CE9E610FC for ; Thu, 6 May 2021 13:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbhEFNI0 (ORCPT ); Thu, 6 May 2021 09:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233053AbhEFNI0 (ORCPT ); Thu, 6 May 2021 09:08:26 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1FCEC061763 for ; Thu, 6 May 2021 06:07:26 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id z9so7660241lfu.8 for ; Thu, 06 May 2021 06:07:26 -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=s2qBYSONFf8oTRJo223fI5ppnTybdoSNatNgsyTAANk=; b=wzR7O9Exm5PyYdlIe1FDgrFDOr7hTDVS5QgTbB/j/KdTpFChF+64xKDQKoeSzmLEXd aoUjjdo5oWzzvhRJL2ODcKYh6BZsfPS0F4vKyQsp1quojhNXr1NAKdTVhsoxqq5teYSx JSCx4BUpHHEvEwrUoJAZ/8SxbbBsxk6NUjSSV6d//jA38yW8fcC9WR/TMs1Z5+TCb9fp DrKauYDjG/ZqXZ/+LYI8t8l+7pcsNP+HXtFVJ8vJ6oS/Y8N1snz+WlOQTEdKRpqwWvZL QhNm1X1cPxPjXKe1MISIU1EY3YU/oEUMCVgjH6yuttYvn0TbeDaW9lB/fF2+EAIHSHV9 bZYw== 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=s2qBYSONFf8oTRJo223fI5ppnTybdoSNatNgsyTAANk=; b=KaqPqm8B+7jEXl0a7cvXNU491HWexEnCmPF4I8xIShrooahoDPeJqFb9rABJaqTDQw S0q4URv4ZPxJBfS+YTDTUeOwe8fgQb1y4brEfPBLJj6u+rofEqJO9aG/CI3O0X/x4xyO J2yyhW5Z3/+8IBzPBhJUfNDjr7ILjGVwLwbxPb9uSqUl8kd8/trt26BA6Mpxp4R3IvBy km4vW+beI0Bfc38uiXnVeyeCLb0PAjAq6rE9E+RZbSUCbpKlE+BNuW/HvpvxFAOcD/Z0 somaHdHaXggiyavw27bZFyhkIn0y/f0m82iW6zbLntQcyausE7ptNjDEdFhr3nA/tl/N Wnig== X-Gm-Message-State: AOAM532lJwaoK0uscug67pauFimy7MD8tj2HRHpuabvloMqq8olngC2j 59YxWR7Nla/en6KTKhXqefrOcD8B0CslitrVOWmfFQ== X-Google-Smtp-Source: ABdhPJzR0emV6Ru3vGRyX2JFlINRH5COYpUOUBc7sWBMBmKFHZDusG8gT+rIHcy3lJdt4cRizrkrMAXcf9S968ch0nQ= X-Received: by 2002:a19:a418:: with SMTP id q24mr2720790lfc.649.1620306444116; Thu, 06 May 2021 06:07:24 -0700 (PDT) MIME-Version: 1.0 References: <20210504161222.101536-1-ulf.hansson@linaro.org> <20210504161222.101536-12-ulf.hansson@linaro.org> In-Reply-To: <20210504161222.101536-12-ulf.hansson@linaro.org> From: Linus Walleij Date: Thu, 6 May 2021 15:07:12 +0200 Message-ID: Subject: Re: [PATCH 11/11] mmc: core: Add support for Power Off Notification for SD cards To: Ulf Hansson Cc: linux-mmc , Adrian Hunter , Wolfram Sang , Shawn Lin , Avri Altman , Masami Hiramatsu , linux-block , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, May 4, 2021 at 6:12 PM Ulf Hansson wrote: > Rather than only deselecting the SD card via a CMD7, before we cut power to > it at system suspend, at runtime suspend or at shutdown, let's add support > for a graceful power off sequence via enabling the SD Power Off > Notification feature. > > Note that, the Power Off Notification feature was added in the SD spec > v4.x, which is several years ago. However, it's still a bit unclear how > often the SD card vendors decides to implement support for it. To validate > these changes a Sandisk Extreme PRO A2 64GB has been used, which seems to > work nicely. > > Signed-off-by: Ulf Hansson Given how these things work in some quarters I would not be surprised if some SD card vendors tend to start to implement this when they see that Linux (Android) has started to support it. So let's encourage them: Reviewed-by: Linus Walleij Yours, Linus Walleij