Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp377872rdb; Thu, 2 Nov 2023 06:28:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlLmedg/kWh8onQcOE9ukTZEDq3PIzXylelOOhcQ/7mjfm0xIGeFafMFf1DTX4udk7dUkf X-Received: by 2002:a05:6a20:12c4:b0:181:275f:3b4f with SMTP id v4-20020a056a2012c400b00181275f3b4fmr5691036pzg.11.1698931714535; Thu, 02 Nov 2023 06:28:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698931714; cv=pass; d=google.com; s=arc-20160816; b=MHvZDLqhOVbEx+eXFByWq4fsl91IOfA/gOtkAu9b5jSmxYizL/Wr4yu0v7UljU/wR+ 5J4hLnN8p7OQQLGzHFxmo6rdBmghcAEJXMs4O5PAdnR0fVv9MQ2J0ur80H04HrpiZxuW lM4fOc6Eh848fIDej0a3SubnO6MjHaXQvYZUL5Fau3L59jKJ8aDrDSSDjVYzdFhURzsd 1mGE+lSXFoipwhjAM5rsBAi0Dh0jkF8XMnWVKM0rgrGoZ9B9stECL6zxgbSiwEmAvDWf 2ocVSLL37aAOdd0IBc2+5vmGE7NA0OHQA6dH+GKZnb3vTtE+K6PEzTW/dbfr/Ca5TBx5 ENyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=vVGlFMtO/oQJs9/CHsGlVEGXqiilM0rsVdh7xnjhylE=; fh=Qpju6Alrwx0q+7QrFOMW8bsMu7JDZu9/RZFWY8J2QSY=; b=LSTwGUcSHa3/acIpuYzO+H4FVd49q3PCghDYzoQw8qUxfp1V/wlhmPgYvbiUkJ7Xra qw7+m4qK9P0MakQMGICDK6szOfCCVSeY0FurZHvPKNw+xBNXobaUK7UaXeklOW5dqKF9 Y2L7dzHU3ELrZ5PmAG3sl/Pp69kgzQPT819FPprBX2QZpEkCMrT+Qz/+UEHv6wrnyLr+ kTh0nXa2blni27pMf8evtnN6AfhEcWMkJKc/llQRxCAw/wGQU/Ud9/KQ+bzmOb0nJEmr JBt9EdV9qXzC36HJhWOw2fqnDZ6Ihj3xfGdmXMjhTLASEO7n6Qy3PpCGGsF3S9GYgjW1 EuLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="DfrLMU/Y"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cb5-20020a056a02070500b00579926e0863si1854373pgb.159.2023.11.02.06.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 06:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="DfrLMU/Y"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 25B85821AD82; Thu, 2 Nov 2023 06:28:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376485AbjKBN2a (ORCPT + 99 others); Thu, 2 Nov 2023 09:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376414AbjKBN22 (ORCPT ); Thu, 2 Nov 2023 09:28:28 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2057.outbound.protection.outlook.com [40.107.94.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A0DD7; Thu, 2 Nov 2023 06:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mFzWcgYKpPsyw+tKOSDJn+7krVD0/hHBNn42z1dhQTmoLELZkBJ/3Bz1ttjmSpc5STuOTEHjCBIJwRlU3GXZ4HPnrJWRodTb8Svp+My6NalzP9MB/qzbyv0aVDK6IZXEVQZzVnUD6xO9qkofSLlmm4ELtty4QJ7qXlgAbZBVp/UBE5XDk3xASlbXKS/izzjjAkLyGbgWoKBq7y7X/blYCzvAhCl2pEQQ5SEuLFMMyA/DxxOlK8bI5d9vgAGkTlpca4JFuHRDVjoT+dPsGwrKPqUkqKTKULGKFjDkEwj/VZRbiNkWic+IsLS0pi/z4rergqxA0SDk0Pl/4mbfN7c7FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vVGlFMtO/oQJs9/CHsGlVEGXqiilM0rsVdh7xnjhylE=; b=IUfBMqn85CHfjxHuYsNmbpn4PVvfsZLIcrdlZWDbUbI042BeZgW5Zy0e+u7sUc2AoAr0lKW23FHYgSt/kZS53UMiWvOydeNgMJsW1HP+0ASTjvvBO4N/ajOHFOWOOg/gXrfnV6FljUb2VjnRIEfjsXL0W9TidGpCqe4XmxKZIqumMPnyBGGVclPKWfWveNHsGs2GooalfkxR5pVaTYqSIaR7hSz9IIJY1m8s2g+/0X01SHj8QWc+o1zQ4/dsF+2QHN20PPNru0pqYeGADcsMuAC/ztU+Yr6q89cPTPQRd3+/B8WpAQJUmJ7tKMEgURzdydeoMeumjEWbEs3d1BnTEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vVGlFMtO/oQJs9/CHsGlVEGXqiilM0rsVdh7xnjhylE=; b=DfrLMU/YxABXcGLmgkBHNg/MvLy07vODcGHs+hyGkmTOxQ1F5BNXItUFcDcoK9f7w3LQRm1Z/g+id/QnOwZvZ9tV7OmT4SAea959WblQiWriDUo3RUhyLSx+HXsvm0FpRyuIzgGg8fp+9k/Vhagbfpcuf6w8bd/0OlUkqUcN3m8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by BN9PR12MB5130.namprd12.prod.outlook.com (2603:10b6:408:137::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21; Thu, 2 Nov 2023 13:28:20 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::83d7:9c4f:4d9b:1f2a]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::83d7:9c4f:4d9b:1f2a%5]) with mapi id 15.20.6933.024; Thu, 2 Nov 2023 13:28:19 +0000 Message-ID: <9cca73d6-9089-4a0f-af8d-fac2ca8cd30b@amd.com> Date: Thu, 2 Nov 2023 08:28:17 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] platform/x86/intel/wmi: thunderbolt: Use bus-based WMI interface Content-Language: en-US To: Armin Wolf , jithu.joseph@intel.com, maurice.ma@intel.com, hdegoede@redhat.com, markgross@kernel.org, ilpo.jarvinen@linux.intel.com Cc: Dell.Client.Kernel@dell.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231102042959.11816-1-W_Armin@gmx.de> <20231102042959.11816-4-W_Armin@gmx.de> From: Mario Limonciello In-Reply-To: <20231102042959.11816-4-W_Armin@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS7PR05CA0031.namprd05.prod.outlook.com (2603:10b6:8:2f::6) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|BN9PR12MB5130:EE_ X-MS-Office365-Filtering-Correlation-Id: 551397f8-3bd9-4519-bba9-08dbdba79442 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lPDBoXNoU/6n9l5r5GBhEsitwIL+b20XZQdPgLvS3MpHpkfvQYobY7Dvr+lJk3bNsAL9H7PM4G9ZL3pJ9xFqmlBbTiDbguLI7suVG/3WO/mqGoa1PNaAHe9qAuAhhPBnVJ5PJ7kphE9owG72I2Xy1Kkj7rpMcKjtRre3qTzeYT+ixypwdvOjCvpcS60pyyvXJGpHiYM28KLJtQcwALGL+AW1wP2e749Bnep+X9NjZKCQN6M/+LySQ+/wXADYycq5ljCeZV2H/ZDeFS72Hj8mGp3ebi7bSn2mRX6J4wRuNfoSMwy8r1tS0go0+cb4QzXgJzCPdTlPzQUmYJa7XRPZKVM7hoAU46I7iMC7Bi3VAiWzCjuDzpe7Zje+oXazI8rq5o00EfhDCSAv8kcRjFtSbhSC6dIC98o/lCqTOkOUrqwrbU5CmH+nY6XSTLblsvYMFcynv6Rp/C4LxpF3OFsXR87P9kqOvfnE2YlV4oULV4KG+/pBDq3049UfxFpNbGiYoqyT8QESyqvQiGF1Nixy0752CBZEEGUHboTeDEwpPjQUeArWy9nzDsasUCMlRw18THTvvg4VX9PfowRp0475PBVKn45Q5cf+tt1tfP8ndcEoDH0klVrTjUTDMGgSkrsQoLIzY80zyp2bYJiMwyaCSQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(376002)(136003)(366004)(39860400002)(346002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(2906002)(6486002)(478600001)(36756003)(2616005)(26005)(41300700001)(38100700002)(31696002)(86362001)(83380400001)(53546011)(6506007)(6512007)(316002)(66946007)(66476007)(66556008)(44832011)(5660300002)(8676002)(4326008)(8936002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q2JpcmZ1bmd4WGl6VVQ2c1kvZ2l6TTBMUzh5NFdXVjI5enI3SG9zRzhaaDla?= =?utf-8?B?NVpxMjJYWFNJR29Fd3JPT2RQeXVmYVVsSm1JNkZQRUp1dzg2WUI1K2psY0Jt?= =?utf-8?B?ckZDa1NmUnVFcmhRSXVWVlpiUlBnandNV3YrTWQwZUNBQ2ZOVTJnYUlwdFBk?= =?utf-8?B?YlBSVUtPWmVIOWdxcnh3T2ZXS1llTGRyUDBXNGZNa213TDFNNWZWamFxZ2Jo?= =?utf-8?B?L1gzTmZrOGhGSU4zYnB2andWN08zaEdMNm5GS0graWtWUTduSFgyTURJQTUr?= =?utf-8?B?UitYb2RiV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Q?PsqhZrLwP2hgyd9ErCc3Nxsif?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 551397f8-3bd9-4519-bba9-08dbdba79442 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2023 13:28:19.8381 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vJy1cjzwx5rlIbz3oDy2Lwzls1Sb3G7Erq1Oyuocm4x9PZt2jkgKdklxYXDTeA6S1A24BqhbeAXU0S4Z259fjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5130 X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 06:28:32 -0700 (PDT) On 11/1/2023 23:29, Armin Wolf wrote: > Currently, the driver still uses the legacy GUID-based interface > to invoke WMI methods. Use the modern bus-based interface instead. > > Tested on a Lenovo E51-80. > > Signed-off-by: Armin Wolf > --- > drivers/platform/x86/intel/wmi/thunderbolt.c | 3 +-- > drivers/platform/x86/wmi.c | 1 + > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/intel/wmi/thunderbolt.c b/drivers/platform/x86/intel/wmi/thunderbolt.c > index fc333ff82d1e..e2ad3f46f356 100644 > --- a/drivers/platform/x86/intel/wmi/thunderbolt.c > +++ b/drivers/platform/x86/intel/wmi/thunderbolt.c > @@ -32,8 +32,7 @@ static ssize_t force_power_store(struct device *dev, > mode = hex_to_bin(buf[0]); > dev_dbg(dev, "force_power: storing %#x\n", mode); > if (mode == 0 || mode == 1) { > - status = wmi_evaluate_method(INTEL_WMI_THUNDERBOLT_GUID, 0, 1, > - &input, NULL); > + status = wmidev_evaluate_method(to_wmi_device(dev), 0, 1, &input, NULL); > if (ACPI_FAILURE(status)) { > dev_dbg(dev, "force_power: failed to evaluate ACPI method\n"); > return -ENODEV; > diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c > index 4c4effc883ae..58e7d5d535ba 100644 > --- a/drivers/platform/x86/wmi.c > +++ b/drivers/platform/x86/wmi.c > @@ -107,6 +107,7 @@ static const char * const allow_duplicates[] = { > "05901221-D566-11D1-B2F0-00A0C9062910", /* wmi-bmof */ > "8A42EA14-4F2A-FD45-6422-0087F7A7E608", /* dell-wmi-ddv */ > "44FADEB1-B204-40F2-8581-394BBDC1B651", /* intel-wmi-sbl-fw-update */ > + "86CCFD48-205E-4A77-9C48-2021CBEDE341", /* intel-wmi-thunderbold */ s/thunderbold/thunderbolt/ > NULL > }; > > -- > 2.39.2 >