Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp292281iob; Wed, 11 May 2022 14:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz643zN15maynGo1kOxkl2o9ZLsrfGb3q/4W1Ljv4mVPseBq6aj8gtOgA8wpGWK9Ut6KE9m X-Received: by 2002:a63:2209:0:b0:3ab:113b:9a2b with SMTP id i9-20020a632209000000b003ab113b9a2bmr22940687pgi.235.1652305342910; Wed, 11 May 2022 14:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652305342; cv=none; d=google.com; s=arc-20160816; b=mmFWyM9KyEAziG6djtJW/qOM8vG+ASOTo2+352RpZ3UIuzMNBIG6LqqNQ3hPWGx7SB 0QKy1OYTYuP2Q7OPWJ2W7J4oxpzIOv9eOFkpe8BJlYCYnhvQ/b/ts83MZA/FG8485CqJ Ggu46nRA3kcorli0Gd1ogOKWuny38uGtVyQv8gpMxcm2m/GELCdjpm6O74PvsrzH89Q2 +0EfKun/B4kRW7DehXa980HTDWnGlEJ48n75Gb5HpRLqVEhJ3w8v6OO9GKEk40lU1/Ne 24IEsPCeYLIvSQzUEj7PRFH7TTYqeq/+Np3xJYhXfRDwL41inzpRE3hOXEBAeV8Tm7aR /A/g== 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=Cuxao/Cs7zjSSejDLbRlnXlWLx6Anw6Uo7EA8Lvp4rA=; b=ahmBUFGqg9W9HKMdeuMhqVaTyv551r1H68tQwITcoAqRnVzmQGjqlpBy0AtB/SZBjG hoHq6t4NRZDBNz2svX5iO3q+cu/W000JX59W8jibgkdCglh1zaZSGXCtp3DvtydWQwvf SxG+7pd5PfUI8vc+2Q7ZbCXugiOZnuiCp50L91ujk2nkB1toGE3lgr+lzvKrhRZu1Kft 6PIQhDRxeuHORdD9xEY8wphdPUPDFcNCKcPPmOOFihVi4xl/E/UZvpHS1dPeBz5d2Bmj EvgNm+4YOjDP4yLDylRNRK8BiExmZx1RSxYlostoYvKULcBHBm0YNMvcLWABrukqIdfP 7SXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=PHTO4bLN; 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=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a654c44000000b003db48b17c00si949510pgr.587.2022.05.11.14.42.09; Wed, 11 May 2022 14:42:22 -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=@marvell.com header.s=pfpt0220 header.b=PHTO4bLN; 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=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243914AbiEKNhj (ORCPT + 99 others); Wed, 11 May 2022 09:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243888AbiEKNh0 (ORCPT ); Wed, 11 May 2022 09:37:26 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80A5A666BD; Wed, 11 May 2022 06:37:24 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24B9kBLM020873; Wed, 11 May 2022 06:37:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Cuxao/Cs7zjSSejDLbRlnXlWLx6Anw6Uo7EA8Lvp4rA=; b=PHTO4bLNCMkFm+hWrtWinA0x53gB2NgUzNY8/1L3HOiS/vmmI0Ea6FfEmQqYlyiAI1qe APRnZvwtOnm9vDCYpxkXUtP9UIJ/b/tNQlXtrpdQ5oeeobo5aZIBpLClYvyZKv6ovAIj T7rbijZeKayDIyVgbM6ZE3g3kUdfNZZOTfKdE4MZeLT/Vk2nODut6ZZbtAHwdTposHJe rjPiK7K9bNJN7jeb4utNZ8Nao7fc2ncYPWOrvnj6r+SjC6miSGkzwInkZduewxhULSVl wzwH4pGGvJ3hW+nfIfnCifUeLYyL6JmxQL1irtGEI1S+zU7PMsDlJ04aozonJFduUTRE JQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3g0at20uaf-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 06:37:22 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 11 May 2022 06:37:20 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 11 May 2022 06:37:20 -0700 Received: from localhost.localdomain (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id 540A63F7095; Wed, 11 May 2022 06:37:20 -0700 (PDT) From: Piyush Malgujar To: , CC: , , , Piyush Malgujar Subject: [PATCH 3/3] drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers Date: Wed, 11 May 2022 06:36:59 -0700 Message-ID: <20220511133659.29176-4-pmalgujar@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220511133659.29176-1-pmalgujar@marvell.com> References: <20220511133659.29176-1-pmalgujar@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: J1j3R9mGARKXaQ6nv0-gWUftY3zAhRvZ X-Proofpoint-GUID: J1j3R9mGARKXaQ6nv0-gWUftY3zAhRvZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-11_05,2022-05-11_01,2022-02-23_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Due to i2c->adap.dev.fwnode not being set, ACPI_COMPANION() wasn't properly found for TWSI controllers. Signed-off-by: Szymon Balcerak Signed-off-by: Piyush Malgujar --- drivers/i2c/busses/i2c-thunderx-pcidrv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index 5621e983406b0bebf9c5c9e30921e45f3f15909b..3dd5a4d798f99e9b5282360cf9d5840042fc8dcc 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -220,6 +220,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev, i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info; i2c->adap.dev.parent = dev; i2c->adap.dev.of_node = pdev->dev.of_node; + i2c->adap.dev.fwnode = dev->fwnode; snprintf(i2c->adap.name, sizeof(i2c->adap.name), "Cavium ThunderX i2c adapter at %s", dev_name(dev)); i2c_set_adapdata(&i2c->adap, i2c); -- 2.17.1