From patchwork Tue Apr 30 09:47:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 163099 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp2997826ill; Tue, 30 Apr 2019 02:47:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqybGEiaqXQAQBGosWhFOqTARCy1d0Ml6DK5FxT5cUo3e4lKq7/mYdb22ikexv/OiiYWB2FG X-Received: by 2002:a65:5106:: with SMTP id f6mr65521133pgq.253.1556617663352; Tue, 30 Apr 2019 02:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556617663; cv=none; d=google.com; s=arc-20160816; b=ZFokgJBuNh74UiaBo7oJhZ0/mm6PhDOP6zStWrq2nplUWaUYqItw30v+9lGqqUEK+k 5j6HJe5GNCNQyxcV/KYcn/u8M+OsEYkA0Knvno3iHzjeopun1P2mN7pj1bBRCcL6gLqq lRDuzHEdLFQIVVri7wKqeGUwkWbCIp8JF7D0oD5NneZFlL4b4i6qfEPC4dMSbnAOBAES Yp3UKTXx7BaZeNfUn+t3ZVP26XllukLr1Jr9H1mXV+x7/HLRBQ0pmd3BTFhsp+NH7KOJ XElykCem6S8WRHIjnmy2ZkVzN0AFavswPPdk13LNXAZNTf3U7/4ehsqGD9OVvR3vppqt JoWg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Fn5ZvF6ltaEO/lfTX4VKdpMTpkniAkIQRod6AzKe1rU=; b=0IC0eu7yMfk16a/ur67iWiOTxpU74GduV0ehF4ufGw8IS+gDTEtWKZyCn+NnWP6WyN G2GdEuWVnOE5h2TVPTd79oYAXhOjwVRbwdDm8CiFODBwvkfIiRwymSpaCjEWS0DRHBNZ mT6G92f5Tmp/mwRAJgMWegyhEinVmKCPnid37Y5aOAwye62bwfZyP0iTaonBIo6VuZcm age5flkQsIlofNaqk4hzpfGbT2XPErww6v6SKCr1TkGgV6de2yDjspre53RbIlSozKwA YoxCYjI4C8QZt4t2BBamHWb/Rkr8iSuiJ6Mw8vw5qO8q17qfEPr07Ko3yFQ7Ur2xZQPB 4nJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QUjHJs1b; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si37854840pfb.231.2019.04.30.02.47.43; Tue, 30 Apr 2019 02:47:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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=@linaro.org header.s=google header.b=QUjHJs1b; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726165AbfD3Jrm (ORCPT + 2 others); Tue, 30 Apr 2019 05:47:42 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34575 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbfD3Jrm (ORCPT ); Tue, 30 Apr 2019 05:47:42 -0400 Received: by mail-wm1-f67.google.com with SMTP id b67so1919186wmg.1 for ; Tue, 30 Apr 2019 02:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fn5ZvF6ltaEO/lfTX4VKdpMTpkniAkIQRod6AzKe1rU=; b=QUjHJs1bHrjfwd8JfzsPC3JX9yrBRVJoPdAHQVnpKHjhIAzq9/sYw8OhDQUWBeLbb6 gHtd5AjPIwI+/P5X5B5LOdedb6Fo6sPQ2ZpsN2yUJUV8mAIhViXmUGtQMONKm2m9Yv/o pbv5vDKLfb/PBYUGEbJ8AjW7bgOEGHzZQYsFGr1Z1Wg4my/3XM6HM502qWk6E/IBscrU 9K8qc8pFVl6lPsbw+f4q5MCA9I0ECzKf0Mb7ly6Fl67K5Md9Jt+nFdD5Be+SzMHKcADJ B4uFwNH6l7H7voG02C1FK6krZoXeiXMvoz/gxK1F7YvaN0zZvoAgEfzyqkq7KwZWMjo6 vZjA== 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:mime-version :content-transfer-encoding; bh=Fn5ZvF6ltaEO/lfTX4VKdpMTpkniAkIQRod6AzKe1rU=; b=uOOMLZN1FnUAeypDeyJA04InoqKMTWbBOsiSQSV4NCZtUk64fOI0QaNgQrMFpNO+vW 0EfRrcdW97XRwRFuSvI3uXlcYp4M3vciwxc16YNCbeLQSy52GQuVewziEpFhzi9WyTt+ 8CQn3+6LyzlRyPW/AiuHDeUNJukYLEKsn0B+R7/6Wj94DCHOXXngrBm0447kJ0ncbwDT mEZ1Juz3jqsI9WCOf5qtA2tOpeYFzjE6j4722SRBdrAXN/TOlU73ieHE7K7v3Tu3URnM ekyauRaDfBzydUQ6ze6iOXCtbtwdxGUd9o7bgPa2QddoVyPj+QtD9U8XzlIkYmnpq1yx Ji8w== X-Gm-Message-State: APjAAAXJwAAXp+hWo2/170FCNqcgkNStEyXqvPuFdhtVuGJkxePpB0jg 9F+43pIhPSGLCmgZWlvqBsjDWS2TdpUEXkDi X-Received: by 2002:a1c:4602:: with SMTP id t2mr2437438wma.120.1556617660443; Tue, 30 Apr 2019 02:47:40 -0700 (PDT) Received: from sudo.home ([2a01:cb1d:112:6f00:1ca3:6afc:30c:1068]) by smtp.gmail.com with ESMTPSA id p17sm2235819wrg.92.2019.04.30.02.47.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 02:47:39 -0700 (PDT) From: Ard Biesheuvel To: linux-i2c@vger.kernel.org Cc: wsa@the-dreams.de, masahisa.kojima@linaro.org, Ard Biesheuvel Subject: [PATCH] i2c: synquacer: fix enumeration of slave devices Date: Tue, 30 Apr 2019 11:47:34 +0200 Message-Id: <20190430094734.21414-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org The I2C host driver for SynQuacer fails to populate the of_node and ACPI companion fields of the struct i2c_adapter it instantiates, resulting in enumeration of the subordinate I2C bus to fail. Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller") Cc: # v4.19+ Signed-off-by: Ard Biesheuvel --- drivers/i2c/busses/i2c-synquacer.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.1 diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index d18b0941b71a..f14d4b3fab44 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -597,6 +597,8 @@ static int synquacer_i2c_probe(struct platform_device *pdev) i2c->adapter = synquacer_i2c_ops; i2c_set_adapdata(&i2c->adapter, i2c); i2c->adapter.dev.parent = &pdev->dev; + i2c->adapter.dev.of_node = pdev->dev.of_node; + ACPI_COMPANION_SET(&i2c->adapter.dev, ACPI_COMPANION(&pdev->dev)); i2c->adapter.nr = pdev->id; init_completion(&i2c->completion);