Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp96693iof; Sun, 5 Jun 2022 22:15:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/IIH2B4QDHa4WlmeMpNVlo2JmAd9DV9ZMmejaZzkeyMYbFHSg0UbKRFbM59I2+jVoMMFQ X-Received: by 2002:a17:903:248:b0:155:e660:b774 with SMTP id j8-20020a170903024800b00155e660b774mr22742225plh.174.1654492517228; Sun, 05 Jun 2022 22:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654492517; cv=none; d=google.com; s=arc-20160816; b=PFOrvAg1Jp8Yf2dJC5wqC2Qb6DKGs+8ArYqqGPnbAo0FGHfq/9i4hG1NjXx+FadDvh d46wxLK8tdUfQPnzutLkKVyL6oocT00U3jgMVxLofTjGQ4f4YMwvVWzjcmb98wMkDe1h UBAfLQDIwJPUfS/JQ0vR0WDnkH7p6z9GEA1LkIFqV2WGiQOCEZJm5rdSM52GZqslKQnn zGZhXBdbKO2cvazLiQEHtU5sEmlfGBAeaDX2H08qqkqMpyW+uPm/Muzb9wHaYqEx7tYS 3JMoSs/FDj1Ky+GtAbRWzYGek5U4TvgVsj740SAIQo5iYWxjA0xznDerK0jrqRzZzEi3 uhHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FC7+kXAU+VwzzZtdgLyK8uTQexyowGb8KJS423YU8mA=; b=BbWHaDBneiII9Wv1zjkDegGuCAmapQ5ajb/6Z6ZQ5QSjxOXC5UnSU6xNRD/uKKLLVP Y6Fe8JtRn4/gQR1E+P0wocEMfsmAfhOd6F9HAL4bHC1oYlBIlA9J8uT9Q6B6wX5YZDkv 5BtrodIWYWNfOSkFkKjQZDGyEqcXLg+YN6fZDK5HGO0JgCGUtBCrmKPQFCmkhaGyVLFv K2qXUUVG9RNemtREzWQ0ddgg5LuVOHwkfruoGG/F4op8UGsHXw4vu3OvoqOB1bFtEPfW 61Fp1pyywqAz6qHEZ0cgfj53OK1p9IghvL5aWwalKOfUeId4Xvgv9ez79uEN9m0EkxWl cS6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vLI8RaFA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h1-20020a636c01000000b003fd97d4ed97si5663667pgc.21.2022.06.05.22.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:15:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vLI8RaFA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 052975F26D; Sun, 5 Jun 2022 21:20:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239359AbiFCRy2 (ORCPT + 99 others); Fri, 3 Jun 2022 13:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345951AbiFCRug (ORCPT ); Fri, 3 Jun 2022 13:50:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EF8A2BDE; Fri, 3 Jun 2022 10:46:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2E7C0B82419; Fri, 3 Jun 2022 17:46:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78333C385A9; Fri, 3 Jun 2022 17:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278406; bh=UIvOGU9ezNqd/V+eh1/mLYA2MyU4xUyFduSUC7Zg0Ms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vLI8RaFASW9XB3nLQy8Tu3j0bvjPAYnjEylGfzcMNvQdknB8UaqqdHGASEsypCK2V 5Iix/qpoYi5e/gUJfSnDXpi5svq1mjsJgLRVoowkEg7YP33KF8d+fmXAKX05Rgavlq cQhEY4azix6D79qHrPcyRhJOUP0zdKca+kp1lN0g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Szymon Balcerak , Piyush Malgujar , Wolfram Sang , Sasha Levin Subject: [PATCH 5.10 07/53] drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers Date: Fri, 3 Jun 2022 19:42:52 +0200 Message-Id: <20220603173818.934482633@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173818.716010877@linuxfoundation.org> References: <20220603173818.716010877@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 From: Piyush Malgujar [ Upstream commit 03a35bc856ddc09f2cc1f4701adecfbf3b464cb3 ] 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 Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- 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 12c90aa0900e..a77cd86fe75e 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -213,6 +213,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.35.1