Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4437113imw; Tue, 12 Jul 2022 07:58:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tFdtD7rPKRTDJmykTPnzXW2deQnUN/0UO9c3TcDwKPvP78q8FVg7vJxDDwG2wMzhc/5Mqb X-Received: by 2002:a62:542:0:b0:525:a313:fe28 with SMTP id 63-20020a620542000000b00525a313fe28mr23948635pff.73.1657637883467; Tue, 12 Jul 2022 07:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657637883; cv=none; d=google.com; s=arc-20160816; b=HzusO0Hu2/5DRsfpKjRHx1CdD6lFrYpIPp8QSFs9Tj8RWQ6Sy0p4tfSmTLnGJnd7Hi EDztoLYWMVoB54lIwQ4Eh6mHZpCkZ6tsp1y2e9N3TDzkEneTl5VYMf2RNLyMrVZoCMeO M4RjXIVQhA7qdDNIaGknfwWNK8E3pnux0Q2fREchfh9tdQYSHvXokOS57CVmQzINdnKK 8Oi24z9yBUmUPU0krb4rL6tNwG3A5Dk2U3n9q6ewyY2oiNWe8WgWDRJZo/yQDnuTH4vh oeHY1Fx2+I5rLpINOPPJLPYeFMqAzCm9A4RNleXbveyq0l01G3Ft2tEJSpdFgKgdvTSy dgiA== 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=gw1mMD/flbBthjeePLv0Y0kXpV5IbTidTrLktbLyhI0=; b=buIWNfnvInkC4FIrducPZYUCjm2avocVfZzPLiiy5DyYifcZaEJlCihd8CnS1Gtodf Ge/n2I8NK7qRIdUmhEwKkT547CnkCr3sY9gFdBxZdfMwB43cZxjg16llCWpPfTpWaeiy uuDppA0sAbmVv/d3FBdTwrmf1eluMc9RPgW+JXTkF1ciiyrTPcfiazPstakv1AYpyckT 1Xoj0o4hp8F9XRSx2Rv5ZD1uUd21CE8gXkSfuo4p3vHDk9I7pw6LuQ8X0AuXVNDhJ3eN K2Jw6j1MAKdJ8b2ym65vAJNBf4VKVInerBgGXtOER6OsJ3ah2b0xhIlCx7mEBz4xmvK6 /1VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RqvbrWCc; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l73-20020a63914c000000b00415dde9053dsi13418837pge.735.2022.07.12.07.57.50; Tue, 12 Jul 2022 07:58:03 -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=@chromium.org header.s=google header.b=RqvbrWCc; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230513AbiGLOim (ORCPT + 99 others); Tue, 12 Jul 2022 10:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232851AbiGLOik (ORCPT ); Tue, 12 Jul 2022 10:38:40 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE149EE39 for ; Tue, 12 Jul 2022 07:38:38 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id w12so9642386edd.13 for ; Tue, 12 Jul 2022 07:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gw1mMD/flbBthjeePLv0Y0kXpV5IbTidTrLktbLyhI0=; b=RqvbrWCcIXdea2f/Qj13QYE1BRKwtksUEdIM42qx/PVQpw3a3azwxxJP9qPZC08xRf 8s8pqVZRBvGcJtI5eq/5QlsY7R7XvK1pHPqhBYFAIu5Y7yejJep+Q935ranUohVWDtmx HyMEocB1O/uNpk9Ng1ucXJybonOk76kz0yEBk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gw1mMD/flbBthjeePLv0Y0kXpV5IbTidTrLktbLyhI0=; b=ApDdVyb0O+3xoCSMcvaOwPNPGii/S/0G0XV2U5IW/hf70eEfpXKQCtKB5sPi9/oaLU HbWhPPwMjW4KVdGVjBf3PZWgjW4pzUXeC5v4HpCeO3tMAMKiYWhjaUtXg1KbWy4/O326 7tW1DKJG/ypoKauLPkaK33py/Pr83ZYnKWOIQDCxYI3eIVpP8Ss3VPiBj3nJHLD0Oupl jxXRiez4XF74maGvT4ZQBDzBJv4wznJfdgUx5AE5Ub6RVeDMW9obirQKz9NBqqqrW+TD YZFeXDXXOsSnIyiPrNiMHFq2HpHBo3Qh10ONNbeYDuF3Y7TmPLfHmT8dqd+U/ie6lXZb F8xA== X-Gm-Message-State: AJIora+g9rMgmi04AU5TQ03FT5XLGHYGJ8a2tNX2G59TSHvfUuZIhVMd TB3f50CrgphNbDexT/Mn6AYLr/FIj2HdPZIo3ts= X-Received: by 2002:aa7:cc0b:0:b0:437:9c60:127b with SMTP id q11-20020aa7cc0b000000b004379c60127bmr31837522edt.320.1657636717223; Tue, 12 Jul 2022 07:38:37 -0700 (PDT) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com. [209.85.128.54]) by smtp.gmail.com with ESMTPSA id s10-20020a170906960a00b006fec4ee28d0sm3829296ejx.189.2022.07.12.07.38.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jul 2022 07:38:36 -0700 (PDT) Received: by mail-wm1-f54.google.com with SMTP id y22-20020a7bcd96000000b003a2e2725e89so4627315wmj.0 for ; Tue, 12 Jul 2022 07:38:36 -0700 (PDT) X-Received: by 2002:a05:600c:511c:b0:3a2:d480:9390 with SMTP id o28-20020a05600c511c00b003a2d4809390mr4146899wms.93.1657636715865; Tue, 12 Jul 2022 07:38:35 -0700 (PDT) MIME-Version: 1.0 References: <20220711082709.39102-1-krzysztof.kozlowski@linaro.org> <20220711082709.39102-2-krzysztof.kozlowski@linaro.org> <6ebdb95a-6458-b77e-e14c-e89539c51b3f@linaro.org> In-Reply-To: <6ebdb95a-6458-b77e-e14c-e89539c51b3f@linaro.org> From: Doug Anderson Date: Tue, 12 Jul 2022 07:38:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] mmc: sdhci-msm: add MSM8998 SDCC specific compatible To: Krzysztof Kozlowski Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Adrian Hunter , Bhupesh Sharma , Linux MMC List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-msm Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, On Mon, Jul 11, 2022 at 11:47 PM Krzysztof Kozlowski wrote: > > On 11/07/2022 17:08, Doug Anderson wrote: > > Hi, > > > > On Mon, Jul 11, 2022 at 1:27 AM Krzysztof Kozlowski > > wrote: > >> > >> Add a MSM8998-specific SDCC compatible, because using only a generic > >> qcom,sdhci-msm-v4 fallback is deprecated. > >> > >> Signed-off-by: Krzysztof Kozlowski > >> --- > >> drivers/mmc/host/sdhci-msm.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > >> index e395411fb6fd..bb169c1c2b5e 100644 > >> --- a/drivers/mmc/host/sdhci-msm.c > >> +++ b/drivers/mmc/host/sdhci-msm.c > >> @@ -2447,6 +2447,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = { > >> {.compatible = "qcom,msm8992-sdhci", .data = &sdhci_msm_mci_var}, > >> {.compatible = "qcom,msm8994-sdhci", .data = &sdhci_msm_mci_var}, > >> {.compatible = "qcom,msm8996-sdhci", .data = &sdhci_msm_mci_var}, > >> + {.compatible = "qcom,msm8998-sdhci", .data = &sdhci_msm_mci_var}, > > > > FWIW I'm _against_ this change. > > > > In my mind while it is correct to specify both the specific and > > generic compatible string in the device tree, the driver itself should > > rely on just the generic compatible string until there is a reason to > > use the specific one (like we needed to for sdm845 and sc7180). > > > > I think I pointed that out before, but somehow all of the specific > > device tree strings have snuck their way into the driver without me > > paying attention. :( > > I thought it's existing practice for some time, but it's a fresh commit > 466614a9765c ("mmc: sdhci-msm: Add SoC specific compatibles"). I agree > that it does not make much sense to add each compatible to the driver, > so how about reverting 466614a9765c? That would be my vote. -Doug