Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3753396ybc; Thu, 21 Nov 2019 13:12:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw/FdS3JfdYenYEy94xgBSZcLZrz6RGQ+GpmZ92dLkJEpun1UX0I06Q0iTI7BhS5TVw5v+q X-Received: by 2002:a17:906:80c:: with SMTP id e12mr16709671ejd.59.1574370762388; Thu, 21 Nov 2019 13:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574370762; cv=none; d=google.com; s=arc-20160816; b=j07P2+BIW9ZR0DcFFyYNjaNuOE5HAOhC5cX2kqVSH5c/tthb/DP8h1KP+193wF0t6N IWZNGwdDU5gvIAJ8Kcd1jtvlj1roxzZGFnF0dDLIPgiVxgJ11V1uW3fRzJOqWKNq/6kY 0HIeaSxmsQfN+EoKcOvtFn4hOFV+PRd/EPEXGcYE4DvrOreR6jiS0mKk0NzIuNGvXwIi qaJ1NGqO3f41OYCwobOgtwmGpjxULzsv+qa+vYrohNm3eiYkvGZa4pTFtDDQ09UYlrkg 752tp/6c1i2fG5oR85OD/gRvOb4qIaTuWLcK9wXQXAXthDzcK96yYuTZyboPxBvoFY5/ vQzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JaaCoJhIAtiaGRJbRZpOo5H+WeeydykSc/pOM316fnE=; b=Dm7laVF8ijQMINFsWmmf2t5Zc83puMsZf3HaECIJsdjLTx1hlGZVIrMlxXY8CxL8IS pmFUrAqRMqFMJqv73zGf2TY3V/4E35jidZwC9J8VaWcRPWtI5bc9j96rbGVaTZlPNBET JA4POvExV4XUpLXxleBmJSxQnjtb5aaSPA+0P1xM1N/Qyyr1kh8BWVHqX/4v9MvKpyXh kVjJ4HKZWtjQAFaoOhcsZZ80JAaDfhOT6Aey1vg9UEz6NJZ1tbvs+c1Ktxw0LM/lMp0R CSXERnJyCAbixxzJEgt3HPMvMndee4Xy4jd/3SHG6aeaLM3q+a/NoKspltKtgZyC+fDi /STw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j9W+t+Rh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12si2761448eja.47.2019.11.21.13.12.17; Thu, 21 Nov 2019 13:12:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j9W+t+Rh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbfKUVLJ (ORCPT + 99 others); Thu, 21 Nov 2019 16:11:09 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:44159 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbfKUVLI (ORCPT ); Thu, 21 Nov 2019 16:11:08 -0500 Received: by mail-il1-f195.google.com with SMTP id i6so4706657ilr.11 for ; Thu, 21 Nov 2019 13:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JaaCoJhIAtiaGRJbRZpOo5H+WeeydykSc/pOM316fnE=; b=j9W+t+RhhqGREioB+OQ4YQdVQIGhvP3WBwyGcA4vwc9LYIpreG+dQ3OFFzMOvHoeKg wMnzuQDZ4vZtlZdzjsrJW5KJ00Um9wNNJ2n3pP/AY/1V8ulgXzNqIfXhr+insvuVvueQ Sg8hoiZjRai0ym7RscAaVWs4+YhrFdXxkxN34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JaaCoJhIAtiaGRJbRZpOo5H+WeeydykSc/pOM316fnE=; b=Qacr4Z0jPYAm175ghwIahD50eNaYMP+vbjICMmiTpqdPr6QrJRtHAAfnTJZBjkLqd0 VI/uOIavDY+xabDL7eSwy3GvSfU5jBWVHQv9qekRGzrqJ1MXuWEhjg1tukhBE9T+3ts8 gd7kS4+HoY3VW3H2ITwT152tl+CEZm0Mr7AsrpMJex6DnUlaWlUwgca4pVzMroJzY7v8 ubLjqBUoenjONaCuHAAg6akXXv69ltrG0o6vdoyn5jx/sIxOq+P6HJUXug68H71ISLo1 zFgN2J2zvX6TAp+stF5TUAg+gtKBASGGQqZYGB7INwSYe05VUbbgklnS3w5U+vSGsQsO NzUg== X-Gm-Message-State: APjAAAVlYfSC4Op4bQSpcord13MmN9pVXrRuk9RYJPNEUqLcugTyWhdk ujYsL9BZKyAPpAFkwt6S3NLjVQ== X-Received: by 2002:a92:d64d:: with SMTP id x13mr12005275ilp.54.1574370666741; Thu, 21 Nov 2019 13:11:06 -0800 (PST) Received: from localhost ([2620:15c:183:0:82e0:aef8:11bc:24c4]) by smtp.gmail.com with ESMTPSA id o184sm1718676ila.45.2019.11.21.13.11.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2019 13:11:06 -0800 (PST) From: Raul E Rangel To: enric.balletbo@collabora.com, Wolfram Sang Cc: Akshu.Agrawal@amd.com, Raul E Rangel , Akshu Agrawal , Guenter Roeck , Chanwoo Choi , linux-kernel@vger.kernel.org, Dmitry Torokhov , linux-i2c@vger.kernel.org, Benson Leung Subject: [PATCH 1/4] i2c: i2c-cros-ec-tunnel: Pass ACPI node to i2c adapter Date: Thu, 21 Nov 2019 14:10:50 -0700 Message-Id: <20191121140830.1.Iae79baaa31014e8b1d8177bcfbcd41514af724f9@changeid> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog In-Reply-To: <20191121211053.48861-1-rrangel@chromium.org> References: <20191121211053.48861-1-rrangel@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The I2C bus needs to share the same ACPI node as the tunnel device so that the I2C bus can be referenced from ACPI. Signed-off-by: Raul E Rangel --- I would have added a Fixes annotation, but I wasn't able to find the hash for https://lore.kernel.org/patchwork/patch/1151436/. drivers/i2c/busses/i2c-cros-ec-tunnel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c b/drivers/i2c/busses/i2c-cros-ec-tunnel.c index 958161c71985..ac2412755f0a 100644 --- a/drivers/i2c/busses/i2c-cros-ec-tunnel.c +++ b/drivers/i2c/busses/i2c-cros-ec-tunnel.c @@ -272,6 +272,7 @@ static int ec_i2c_probe(struct platform_device *pdev) bus->adap.algo_data = bus; bus->adap.dev.parent = &pdev->dev; bus->adap.dev.of_node = pdev->dev.of_node; + ACPI_COMPANION_SET(&bus->adap.dev, ACPI_COMPANION(&pdev->dev)); bus->adap.retries = I2C_MAX_RETRIES; err = i2c_add_adapter(&bus->adap); -- 2.24.0.432.g9d3f5f5b63-goog