Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp55977iof; Sun, 5 Jun 2022 20:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKLj8rJgMyg7fpabS1uyjqGuC+ItB6MGPzhFJ0URtHhWpMI2D2MqXOpTCCO1BqXIg6tUhL X-Received: by 2002:a05:6a00:a8b:b0:4e1:52db:9e5c with SMTP id b11-20020a056a000a8b00b004e152db9e5cmr88733636pfl.38.1654487908898; Sun, 05 Jun 2022 20:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654487908; cv=none; d=google.com; s=arc-20160816; b=wO2WV3AKT5SBU9ZDZe2+Bs5YdM45zfXNTn9Yu/M1Ej/p1MShblQPt1D68EOzQTDogP /ajeq3z5Gi/Fji312wi3pCecRm9DJQCE9zzWQquI6SNifnSe4R7k0QhPF0TZaL0r1Abq h8gL5DbFpt6XROaVfzs5RGnvzbvpleqDHGkcBf00GBqTD80MJ5edCP7MHQWscDhHD5CF Da8GulalWAHS8Y4RB9yhs3EjJRjQCVIaQW66Q7VweKkh317vlNjTfilaXpTcanXzdMzC rxtMQbmMpNQ+nLq9AgmWmaT4y+x4thD+2vqwA6PiuPOt7wflQ8f8wj54p0AW7ffI+uwM Bk5Q== 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=uBqf8ka6PlUvUs8NHHp2HvSuB6vppco1MOVtNZyLqondJAO2lemJPirwDnsz/1hJFb jOBakCooiFGbGPvWAcQqOpH1Btk1tGXDdrEdcFjGeHmb3NMe0iIHOs/WTefGzmrZsdcS RTdt8M6zbOUEH7/XZdsY0tDOl1h97axFlXcsSbtd4rTlt0ig5BOKdumbcLEFKNC7Jexo w07+wXf04cGDKbaY1AFQywdWmiGiRwKntQ5qtLxZJYFLov+Sor+s2KS1O0Zy7gQLnL++ avEqV30nAslxNuoNkFKXYMFS1Jz3gs3lRQ+CZ7C8fDwG0KN50uYGAQjCBuoWPShJl/Yd 6Fjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dXHpDBJj; 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 t28-20020a62d15c000000b0051964d16f32si18345937pfl.180.2022.06.05.20.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 20:58:28 -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=dXHpDBJj; 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 C82E1663CD; Sun, 5 Jun 2022 20:45:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344963AbiFCRnX (ORCPT + 99 others); Fri, 3 Jun 2022 13:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344941AbiFCRmo (ORCPT ); Fri, 3 Jun 2022 13:42:44 -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 90229544F1; Fri, 3 Jun 2022 10:41:42 -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 99F8161B11; Fri, 3 Jun 2022 17:41:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1BB5C385B8; Fri, 3 Jun 2022 17:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278101; bh=1+z+sNbxT56SjlBQgUUIv3b78tcRXKNXzlTy+NZVN0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dXHpDBJjd1CO1thxF7VW6NmOE7x/7EzzhqlLNa68DKiTnPl9U4STuOCZ8y3Ga49hN ILI5Nbl3pSNQVrndGHWi22sdlu4eLqMLvzNbeXT9bzPYDYn6ujOD9uAiqqAUeCe9EG d6iyjLXRIpzqiEe/BrQOy3yKjblZWVWItLgE5mHk= 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.19 10/30] drivers: i2c: thunderx: Allow driver to work with ACPI defined TWSI controllers Date: Fri, 3 Jun 2022 19:39:38 +0200 Message-Id: <20220603173815.396728920@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.088143764@linuxfoundation.org> References: <20220603173815.088143764@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