Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp116399iof; Sun, 5 Jun 2022 22:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbbCOWsWCl75TbBqaVl2R6RO7NocysECkxWTVm0+Rdbe4WkvogURrKD8JqpYkINLShdX0a X-Received: by 2002:a17:902:bf09:b0:153:99a6:55b8 with SMTP id bi9-20020a170902bf0900b0015399a655b8mr22140369plb.142.1654494728086; Sun, 05 Jun 2022 22:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654494728; cv=none; d=google.com; s=arc-20160816; b=aoR/biXYx8QUjeJ4vUTImyIdmuLkpfHuw4ETIJc9eeLxUdiLz5lDShfbpl+ERu7U+z K35z4AAaoytT241/YlLSvvM1HxyhxAUxy7F8N0Yrg7r2VBQC3jzhvvC/j0F+UKBREu1n j1SFpHjkQnWo92wbZ+b1LGzBn//5sG/zToRUxbYli74ZCN/HydEpquvM6hChwT2GnfZT fMSyiyjGI8Xp0Q11J1h7qfQN00QwH62E8fC9+28TAhRbF/6mlqlFL/v67k5dft7aLz+4 1BjsuLUrvyG6u5IC+vWUAxbZEfWSGx4QugL6p2edwMF00saFqS/lHunV9bRwhkpf9V+c koPg== 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=hJ+7qXbT4T+HcsnDjo5EP6GEhHgq7Met/HWV8KIvxA4=; b=LEpqLxnaIHahGi7g8LlbNWNjD4PABEvmlL+xM8fWlxzHAvFqRtPxf2TolGIJjJQhpf XhTA6GUgScNhAlqCSKasJECShm7adwmcHIpFN7GCEpPA3g1ryAHsDc+qiJ4jy3lh1xgU QeVEQ/kdyqOBtp9+1sHOJYNu6JaAocLUm0YkwVOp59PhYNx8Vr+ub3M0a9nAiH9Kcn+J OJsTb80rMREDGfTsOfomAE8dOwreyNVbMo6ERcjF10TFYxuAR7KwuGcIIY6oDgOhi4Fs Fkx/KSWhelS1dMBXLqf7mWpkeME2mz6pj0zPQuIOX+vOcZUKoEP0PXHHJPLFSDRYWo6o 6cbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ih8wB8O4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id gn24-20020a17090ac79800b001e27be0055asi17718892pjb.48.2022.06.05.22.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:52:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ih8wB8O4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 E437D2A3B90; Sun, 5 Jun 2022 21:40:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344403AbiFCRmA (ORCPT + 99 others); Fri, 3 Jun 2022 13:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344618AbiFCRlX (ORCPT ); Fri, 3 Jun 2022 13:41:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 923D453E2C; Fri, 3 Jun 2022 10:40:59 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 30E6561B00; Fri, 3 Jun 2022 17:40:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26D71C385A9; Fri, 3 Jun 2022 17:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278058; bh=PQnNo4qjHa38rWy1F+GxoQE+4yWWYf8kdz4fnLlJYmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ih8wB8O4PniPnw6jlKwI8P+dnG4v+GgVFw/k0q0YKlkXtrtb41MecHzdgVIN138WZ T4Fyn5AAURMkGaI+3W0Hk2xXfh8iKaJUUlPOeNfY4npfk0MojHqmC/mYIlVD0bk5V2 k5RCOqM1QQwQv/DB7fH6GDcb5TUyEeUJTXYpFTnE= 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 4.14 09/23] drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers Date: Fri, 3 Jun 2022 19:39:36 +0200 Message-Id: <20220603173814.649059852@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173814.362515009@linuxfoundation.org> References: <20220603173814.362515009@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 df0976f4432a..4f0456fe8691 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -215,6 +215,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