From patchwork Thu Nov 24 11:07:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Binding X-Patchwork-Id: 25451 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3331577wrr; Thu, 24 Nov 2022 03:18:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yyrsKxtmPn/UtPSn/if0HyScEN0+n6YBlTDJSXIHiXd7FPNlVdyGa8Lb9Tm+9Hp2TsNf0 X-Received: by 2002:a63:5c0f:0:b0:470:8e8a:8e11 with SMTP id q15-20020a635c0f000000b004708e8a8e11mr11848817pgb.490.1669288721718; Thu, 24 Nov 2022 03:18:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669288721; cv=none; d=google.com; s=arc-20160816; b=iDrIIz9w4qOXV691EB4Nfn5UpOwqgSUcbCFwQtvkmZZCP5xvkBoqTGWUwO+OZmLM9C YEVGqzIEG+3tBmhgN+gDuNg55Mk4QTKdsHAXXlbrPTuY6ryJWN+gzS8waB8q0wEn5idi dJzYHdfIAWUuJuluLJeA3mmlk0RSCubAivMKayxl85OkkRA8cpKVNxeepnXN0Zzxi3eN KIEpLVOXz0aAspGpmxRPuJWG8+dPq0MjiOmwTrS+JanLpibjqkekZ5PsTWv3N8x9cF7+ a5/myfHXpi7hro7CEa9dCZkWWwKNk1ZdqDV80b6XkElIUEJ/sMu4IIftcLuPQzsE6cLP 9Buw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MUgtFemw9mzys2LF+P1154GAYh2HscnFbiU7ai50jsM=; b=nCd2xfILGMWWvNMQQgbiXCcwb+p223XVXqoIkCsdJLylSsgJar5yX0RXd7x7WmxJuE SAlicAUioh36PQ0atwV+GQO0RjOIG+nAvBlNzAzlHLZoqsXfNQWq8wyYDRv65LNdGlrr yNPv0WBusdx+aHkWm1+Vb6b8yaTL6mrZvl4si/fY3VxQbuVjz82MlT+gH3g7+86cmbDW doelqXYeyeS/eteWjc3CamnT06WZfOqMAh1+9Zin8qvSLGuQE+l3LYQHfJaRsmFWEQki sA/3zNkHopX9XNB6jTJnVjR2rdRoNDj77AMqp5LPGhKtg8dzgHTSg7i/m/RkIQ8v95gw aB9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MeHXoUqI; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a1709027c1800b00186e5ede745si744684pll.89.2022.11.24.03.18.27; Thu, 24 Nov 2022 03:18:41 -0800 (PST) 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=@cirrus.com header.s=PODMain02222019 header.b=MeHXoUqI; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbiKXLHy (ORCPT + 99 others); Thu, 24 Nov 2022 06:07:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiKXLHv (ORCPT ); Thu, 24 Nov 2022 06:07:51 -0500 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3927A24BFE; Thu, 24 Nov 2022 03:07:49 -0800 (PST) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AO7LNJS015819; Thu, 24 Nov 2022 05:07:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=MUgtFemw9mzys2LF+P1154GAYh2HscnFbiU7ai50jsM=; b=MeHXoUqIMuOg3cycTuD4gsB053mgOXXamO21I+tA0MZNyBU3obed1qZE/NHgy1vk0Qh7 ZlAU12ynGS1uEl1APXMElucwMK2jggKYZ2ftDzGsh6N5M4ovZ+ZcOxqQGDtFBfGHFIWb EmcrJwMsmlX5rbA9HvCz/3x8mq3U0AloaQeQ/kXjPtbnXzM7eWg7CZC3ndFAu2rE8LXp btOTZv1RJj303n+qdZZG8JqLFuV6eoJe07wk7aREN5Yw1AzZjY94xBVkJpUIx75AhUol z8PZCLfrrHJ3yDa+s/vo7vz9K7oRHSxiSwep8T5P0QVU2ZIXfc7dRuROm/PyT0o7g26S iA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3kxwe6x2du-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 24 Nov 2022 05:07:24 -0600 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Thu, 24 Nov 2022 05:07:22 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Thu, 24 Nov 2022 05:07:22 -0600 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.202.160]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 85BD7B10; Thu, 24 Nov 2022 11:07:22 +0000 (UTC) From: Stefan Binding To: Andy Shevchenko , Dmitry Torokhov , "Rafael J . Wysocki" , Hans de Goede , Mark Gross , Jaroslav Kysela , Takashi Iwai CC: , , , , Stefan Binding Subject: [PATCH v1 1/2] platform/x86: serial-multi-instantiate: Set fwnode for i2c Date: Thu, 24 Nov 2022 11:07:17 +0000 Message-ID: <20221124110718.3925934-2-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221124110718.3925934-1-sbinding@opensource.cirrus.com> References: <20221124110718.3925934-1-sbinding@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: oibzOdWpY9mctqOdzlYetaHUXXSPowin X-Proofpoint-GUID: oibzOdWpY9mctqOdzlYetaHUXXSPowin X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750376090715937806?= X-GMAIL-MSGID: =?utf-8?q?1750376090715937806?= This allows the i2c driver to obtain the ACPI_COMPANION. Signed-off-by: Stefan Binding --- drivers/platform/x86/serial-multi-instantiate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c index 5362f1a7b77c..15ef2f3c442e 100644 --- a/drivers/platform/x86/serial-multi-instantiate.c +++ b/drivers/platform/x86/serial-multi-instantiate.c @@ -194,6 +194,7 @@ static int smi_i2c_probe(struct platform_device *pdev, struct smi *smi, strscpy(board_info.type, inst_array[i].type, I2C_NAME_SIZE); snprintf(name, sizeof(name), "%s-%s.%d", dev_name(dev), inst_array[i].type, i); board_info.dev_name = name; + board_info.fwnode = acpi_fwnode_handle(adev); ret = smi_get_irq(pdev, adev, &inst_array[i]); if (ret < 0)