Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp179943rdg; Tue, 10 Oct 2023 07:28:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwI+nsz2+cJXNTyTC8AxA/kWjeUltXdEJTKUG+ujBAU70f64fV6wxfJerARdXObTrYGc/F X-Received: by 2002:a17:90b:3907:b0:276:5512:13ab with SMTP id ob7-20020a17090b390700b00276551213abmr22674739pjb.10.1696948121294; Tue, 10 Oct 2023 07:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696948121; cv=none; d=google.com; s=arc-20160816; b=mslInnJ2jI5h4dqVMtV4hG2zVVXkr8lUXxFtD3S1VC3N2niUyOMZZQq2sMr6gehmnd 9hLmyMe+EiJ16T+C3j+ekFjuHGlw6kYc65WeHd/Q27J6S1v2Xi99E0J1YYECNj8l7dcK nqhEnCsvqTXK9NdL7/rrO1XqqrDCJQ/wpGjpmdJpbOJqAanBsgs/WPW2h4S0vo83NkH8 Qae3pZky99NnZy8gXwE6s0fiT0WN/9fh9F/qYc0zc1yBkr/TDu8sWy4y/DVOBLgLdjWU JXs0HLWfSPDlWOMAbgAgaaXnPJPqTDYPyCb/sh2dDA4yEFpy9e58cVR7erChNOadzYd2 J0tw== 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=bEBYkWJqyT1UB0SUDPKF0kO0LYp7pOrEpPcCWpROQAI=; fh=h7BbTTEvbbOWp7m3E87FvCkZ9NfaEe33eXG8nTFq7+E=; b=YteysyKS1IEuCfBYin5MdRLKuZN6a1XnqUXp3POGEsWIU+ZHjtXYgqstfmHBsVA3H/ gJUDYO/fRNZRQs8fKxbYG/JU6kLsZgjQVMSX8MYeAy31a6gtEiEALpCSoGlI9WZ5k0gI H7mvuYmTDVUBuiaJFcRyI2qcuG0jSDQNrwwc6bVvuzDSuVsJcDUe7dqMeD/YN6CoZMKr wwzg6/XLCh4V4eioaiqVEx4IT9O2pm5VYkXBQgAgV7+0NdPQX6GNY0ovAqNF1mFZd0MO aEAzbNF5SPwvAwKc+i5vPP3flCLXDvzxf75Yq9UdeNzqqwRoJZNupHRl339Ht/gpdqLF fp8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHFQC3K0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id oa13-20020a17090b1bcd00b0027686905e79si8739445pjb.146.2023.10.10.07.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:28:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHFQC3K0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 673E6801CB7F; Tue, 10 Oct 2023 07:28:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233083AbjJJO2J (ORCPT + 99 others); Tue, 10 Oct 2023 10:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233108AbjJJO2H (ORCPT ); Tue, 10 Oct 2023 10:28:07 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BE67B8 for ; Tue, 10 Oct 2023 07:28:05 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-59e88a28b98so49552487b3.1 for ; Tue, 10 Oct 2023 07:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696948085; x=1697552885; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bEBYkWJqyT1UB0SUDPKF0kO0LYp7pOrEpPcCWpROQAI=; b=bHFQC3K0pq8QkHwcilC0BSoURI1vl7F7RIC/qGqxTJa15H0Q5+uOBB6UASFBOYymj0 nyzz7P+Rw5TLQriXZNHP7Ej0VEtETWE4axpyMpo8E/nRt3vN6jZcjDNrAumuaieioJMS DLPUCgchX6lDHcHneJQfmkQr2McFzFw/78OdTOaS2ckyynqBOu3VKVg/NXpvueZIMbYq 77dZ/Jw3jYM5whoLeASbBliSJO6j6MJiucXNWan74kYgiffce2OmPaFfe0m2rHkN075O ajcYwKYBXebWkjAbfOhmE3iVtDbiVWVlefU0r/aH6hfoTj3r+6WHE7DuP1eG4fYlOIOX K1zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696948085; x=1697552885; h=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=bEBYkWJqyT1UB0SUDPKF0kO0LYp7pOrEpPcCWpROQAI=; b=LVKSQfXkTMPwf2g3X06OEs2pi8klzz73u2usbFadhBDtM83cxap9tFjKjDWTac45wM DP0PDnCNF6zIlwLWC2sf4NhKzFmfIkxSwaxKYf79j8zWBmW7taWoQhk0Dph3YChyp/r0 gSBuz/RppwAKuPg+vPQ3NGr3QUat4mmR9Tb9zX/GwE3n8MJ1oZor7dZptytHiiZiUyQt 7ON7d3VGWCXQW+Iuw4o8NjD6+wDrRnf3jSi/kC+X1kpInoIKvs5dRaYPgAk0S+UNrp9b tMIIIsSzgE15SIJNG5HKsuAfdIerFl4/ktp7ZutrCPmq7kMVZQn2clExT455qJtyLvH4 6Vzg== X-Gm-Message-State: AOJu0YxagdMDZu1ZAzaiweaMZ37JRcF+Mkd7VNoJYmycvyIWF2Xd15Fz z/l5u4eC2gUsZ96n1fsZ8hH977EzP/yaLXlnoBNDjw== X-Received: by 2002:a81:49d7:0:b0:59b:5255:4882 with SMTP id w206-20020a8149d7000000b0059b52554882mr8379974ywa.20.1696948084806; Tue, 10 Oct 2023 07:28:04 -0700 (PDT) MIME-Version: 1.0 References: <20231002135103.2602847-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20231002135103.2602847-1-andriy.shevchenko@linux.intel.com> From: Ulf Hansson Date: Tue, 10 Oct 2023 16:27:29 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] mmc: sdhci-pci: Switch to use acpi_evaluate_dsm_typed() To: Andy Shevchenko Cc: Adrian Hunter , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:28:38 -0700 (PDT) X-Spam-Level: ** On Mon, 2 Oct 2023 at 15:51, Andy Shevchenko wrote: > > The acpi_evaluate_dsm_typed() provides a way to check the type of the > object evaluated by _DSM call. Use it instead of open coded variant. > > Signed-off-by: Andy Shevchenko Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-pci-core.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c > index 7c14feb5db77..025b31aa712c 100644 > --- a/drivers/mmc/host/sdhci-pci-core.c > +++ b/drivers/mmc/host/sdhci-pci-core.c > @@ -483,11 +483,12 @@ static int __intel_dsm(struct intel_host *intel_host, struct device *dev, > int err = 0; > size_t len; > > - obj = acpi_evaluate_dsm(ACPI_HANDLE(dev), &intel_dsm_guid, 0, fn, NULL); > + obj = acpi_evaluate_dsm_typed(ACPI_HANDLE(dev), &intel_dsm_guid, 0, fn, NULL, > + ACPI_TYPE_BUFFER); > if (!obj) > return -EOPNOTSUPP; > > - if (obj->type != ACPI_TYPE_BUFFER || obj->buffer.length < 1) { > + if (obj->buffer.length < 1) { > err = -EINVAL; > goto out; > } > -- > 2.40.0.1.gaa8946217a0b >