Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3343827rwl; Sun, 2 Apr 2023 05:51:19 -0700 (PDT) X-Google-Smtp-Source: AKy350YglpUlqPR8rPJWK2sr3DcLzDae6nQkF7IZxTkH453DA7dTEmuFOFw8shuio2Vh/M/iYnac X-Received: by 2002:a17:902:ea0b:b0:19c:3d78:6a54 with SMTP id s11-20020a170902ea0b00b0019c3d786a54mr14312007plg.14.1680439878847; Sun, 02 Apr 2023 05:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680439878; cv=none; d=google.com; s=arc-20160816; b=oVR/68ExUV2Ge3vtKx2HKfNDllZYKk36bRw6qy64HuULgorTjjHkzp8xHGOCkfcjs8 Flg9YgR41xcUVXWm3rHQ4Ij+lsty2CabTaAwqCrO4UV32/CZDFrYUxMIhnO51hgympBx yRYKXanwFsL74DYizwFVDdbqGaDpHy8xGFeWIuGow/dl6GK3VKFqMX2OZSa5biaO34cR FRFQNpK5gLyfRL+id+d7srNZaa8jeZmcZGbgNJAr+U3Rg3GXjGoFwYINuBecQBU/HPRC 7y4/d/SEejyIe03OwgmgyHcoZmBd4FJBqLVzwtk4j1etXBnlt+Q1QFUqnycr6gl5wkbo zK/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YAIgrqdE3MPfyJvbHSqkch4ENAZwFJPM9U7up3c8s+U=; b=J6LigT3n2c/QtfDV7hXj7197soFQcc2kGbf389VJyI0qIwSRaq40AHJD0/uG2bWHWi GJEb+kwUkpD3KIVORPutZtw9IhNaE0gkf62gpa7C+LJtGOsk1LIrgFCxOiNaSHOYWMcn ELZs29S6jYyl/i3PPrM0OQ131O7xnHS/4GXw50B68selc9DZHzsh+iuR9A5a7+4JS36s hSDmc0imps9Lad/iRhcRQ74zOulPvOQcERzqc3v0bfgCpaWp92xdPEz0ptZ7ur27unk3 3genMHMMzNS0/EpT0P4M9sfyAoVi0zZfVBV6Ad8/ax0QjAbeOOYWcUdYyY0m3VR9MlFB LoUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yP5NGKPN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb22-20020a170903259600b001a1e93c8910si5852020plb.552.2023.04.02.05.51.07; Sun, 02 Apr 2023 05:51:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yP5NGKPN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229719AbjDBMss (ORCPT + 99 others); Sun, 2 Apr 2023 08:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjDBMsq (ORCPT ); Sun, 2 Apr 2023 08:48:46 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34506BB86 for ; Sun, 2 Apr 2023 05:48:45 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-54606036bb3so338169547b3.6 for ; Sun, 02 Apr 2023 05:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680439724; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YAIgrqdE3MPfyJvbHSqkch4ENAZwFJPM9U7up3c8s+U=; b=yP5NGKPNbQm4+cg4kVrG8svhAYydLasi+I5KqHBg/PkjYcZyw+VZQx68DkSRTqppMv iUe1CiD05wz7vrMiO7B/I7GhWdjB5AqiW8yVBlG21AzAcPpskNhWbxDAvaIiTyhpWD3+ REpQWmUsbEudz4gzkrwkWmbzpVuguvS1UuFH0gLrxHI3d8SYlYqqG60fhpfyEDoj1IQs kjsCKjbN07jIk3VhMSopQDmCeaeHlvT4CoVmkpvUUsN/jWHJCRdZXCp95qzgggJPhng/ arTdnO8YkPKeHZapdWkfLN6tyKmsKHGY5scB9YebeIK3Mdv85MyKW9I9d7f/U4gHZ5Ps 6CeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680439724; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YAIgrqdE3MPfyJvbHSqkch4ENAZwFJPM9U7up3c8s+U=; b=cJCA767eN3BIUrDi6qaG1woF3jzXrphuni2A/a49Bag6COwGhyXmFEKcwXbOx7ABBR E8dbPX1GBZf/pajW//Ly/6peWTykxYhML3utgLHo3sOB+reDA5ISnpOMBU+giJAdgsq0 7JCyAOaI+WISuk64xxUeXR4fbUvA4MTo9AsND11E95FJMAgNn2PpmS4KVXzpjYYMWbut wkqL7He/w0fkJOzgjgwLIPV44SPRBO0+Fr0lNradSaCcnL1BUouBIXZ9MJTBMWFw5wue QQlThg4WXF3inhCFxGLGhAwXYcgKaF+c54P1P9+611ZAIlz4VWRA+mbTyLnjIG5zxc1u rrDQ== X-Gm-Message-State: AAQBX9fO3Uj3UX4XOgrGyBUher4AClppMLBpZ6b8AWB077qALw5MEEiO Wk8BhgUo6toklttlnIATMtc4u0lQRZQPSvEhyI2RjQ== X-Received: by 2002:a81:4426:0:b0:53d:2772:65d with SMTP id r38-20020a814426000000b0053d2772065dmr16560744ywa.9.1680439724351; Sun, 02 Apr 2023 05:48:44 -0700 (PDT) MIME-Version: 1.0 References: <20230401165723.19762-1-quic_sartgarg@quicinc.com> <20230401165723.19762-2-quic_sartgarg@quicinc.com> In-Reply-To: <20230401165723.19762-2-quic_sartgarg@quicinc.com> From: Linus Walleij Date: Sun, 2 Apr 2023 14:48:33 +0200 Message-ID: Subject: Re: [PATCH V1 1/2] mmc: core: Define new vendor ops to enable internal features To: Sarthak Garg Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_rampraka@quicinc.com, quic_bhaskarv@quicinc.com, quic_sachgupt@quicinc.com, quic_pragalla@quicinc.com, quic_sayalil@quicinc.com, Brian Norris , Wolfram Sang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sarthak, thanks for your patch! On Sat, Apr 1, 2023 at 6:57=E2=80=AFPM Sarthak Garg wrote: > Define new ops to let vendor enable internal features in > mmc_suspend/resume paths like partial init feature. > > Signed-off-by: Sarthak Garg (...) > --- a/include/linux/mmc/host.h > +++ b/include/linux/mmc/host.h > @@ -212,6 +212,10 @@ struct mmc_host_ops { > > /* Initialize an SD express card, mandatory for MMC_CAP2_SD_EXP. = */ > int (*init_sd_express)(struct mmc_host *host, struct mmc_ios = *ios); > + > + void (*cache_card_properties)(struct mmc_host *host); > + bool (*partial_init_card)(struct mmc_host *host); These have confusing names, first it has nothing to do with cards since the callbacks are to the host. Second the functions are named after usecases in a certain host rather than function. I would just call them .suspend() and .resume(), the use is obvious and they are called from the driver .suspend() and .resume() hooks. Yours, Linus Walleij