Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp88161iof; Sun, 5 Jun 2022 22:00:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwva9AyUvbBEv4KFPyNtC7CQAVURw3MjcP/qUnNKS24jUFJnPF1WLd56pNbN1gV3hcqfYul X-Received: by 2002:a05:6a00:194d:b0:51b:eb84:49b1 with SMTP id s13-20020a056a00194d00b0051beb8449b1mr13107889pfk.77.1654491629425; Sun, 05 Jun 2022 22:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654491629; cv=none; d=google.com; s=arc-20160816; b=zVzmyDgEN46P7G8yHikOpuun+lGqE/XW1iJYq36RCG0GmIURN9VzUrNAx3WygZFJt8 RHd6R/AehhQaGxE+RRQxuReYMic9GWXstlQXR3+n7I731mBGG+IWdHXHoxJhfl5zoAI5 Jj2adoIQcwQQWMX6zXf6yCGM1r5jxbKxdeK54ssDDvUZ/ZzGNRjawYlarDZf8RxhviSq 7u4791uE2sS9dro+7ML+g961jA1Y8DR4qwsGnGYhTKVUbYkyn4B31Ghqzs+PviocA0gr sSm8EbNfQzdns9QMF8wYe5aWPuv+RaMA1PB727KSz1uIAevjqOa714oy0GppGFsm8UTS aDpw== 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=H/RLCkmcd2kbsx+zz0xHw2YoYThr6b5nK4NRlamaHBk=; b=DnFXl5X74bmrFAHBx+SPBmiKpgm/9X/2cidrBpBOAt2I2I1nJOdN+sV5nfY4mre2xU L0uhx3GyjlOjt6QJC+0SBmLAmFg6J19GjA6WgkMCcvm7MP4MUVKdeHCsQqwWge2qm6Jg rMwk1W2CozSSX28qpWZYf7LmuzOady2oNe1Q25iUS4AMe5lZZ0CmN+amwolN4nahfBy3 CPJpOP1/6HBURmpVAxVxhKAu9464GNlmG52a5K5x1WZOIsGMXuuznOguB6wLihJ2Nmac VvRoacphk00fdQxTJ92fJAdyj9W4D+b0r5rb4sUSE+/gV9o1WODVAuhBUo5UVTvIC+At D8cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GSV6gubV; 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 q80-20020a632a53000000b003fd157f7e9dsi14086206pgq.857.2022.06.05.22.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:00:29 -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=GSV6gubV; 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 00F771248C5; Sun, 5 Jun 2022 21:14:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345482AbiFCRxB (ORCPT + 99 others); Fri, 3 Jun 2022 13:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345491AbiFCRt4 (ORCPT ); Fri, 3 Jun 2022 13:49:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E100556231; Fri, 3 Jun 2022 10:45:55 -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 21982B82435; Fri, 3 Jun 2022 17:45:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 806BFC385A9; Fri, 3 Jun 2022 17:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278352; bh=1+z+sNbxT56SjlBQgUUIv3b78tcRXKNXzlTy+NZVN0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GSV6gubVnWOOQYvAFReBayAyAferHq9fbMEZI+bXN49pQqk6o8IpMf8nJEjoKPax7 wxIcpBtvMcRlIN7W+DWIcWmRle2oPtgJEp7epUd64K7keoMBZnSDTxwCszrXWouaLe B2Qsr6qqFB64Ml3VqT14liVg9WDmCAmM/JB+UkGw= 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.4 15/34] drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers Date: Fri, 3 Jun 2022 19:43:11 +0200 Message-Id: <20220603173816.439251988@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.990072516@linuxfoundation.org> References: <20220603173815.990072516@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 19f8eec38717..107aeb8b54da 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -208,6 +208,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