From patchwork Mon May 6 14:31:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 163409 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp55357ilm; Mon, 6 May 2019 07:39:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7Psv6YsxPt0tTTWH0kmWTu6BrpE/YG7WEihd+OVNT/Kkm6v1hzImjVHILKjzQLkzrUUH0 X-Received: by 2002:a62:5a42:: with SMTP id o63mr35115307pfb.170.1557153592743; Mon, 06 May 2019 07:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557153592; cv=none; d=google.com; s=arc-20160816; b=P0EX4IF/XGSBZIGERnE/gjR+heiPO4UwqcAJ30SJpx7j33zLyPBPGD3D83nx08MUJb 3Z0E92T6jNyzbMKJfrxkx/RGMuse0psGcaExBj37bqCEalNU3PZwMVvwnRVx67PpgpA1 j28vBB3xPRbljmhERsTQJgQReb9Sz5OWkfcaWwBqCKjfBLf7LbqD5PFoY+cMTdPkAkb7 XgcjzAvBCy65pYGCqq+ubln8oyt7c+puZ2h4sV79wvtlVktyn4hN27WBN6kR1NDLbFw5 doRZn07ul1Zd52fGN96HuAxT5nDBP7iH6hS6rL/+oLLpKUrqeyptSBAmMpv33yTU/dP6 vNOg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Hau6ON3rHMozP5aFVkEvDIqvGUIfKKv2isnhZtaCol8=; b=l9IYWapcJf4Zd91xituqeEqGGn7HlJG59i8N52e5AEiFlv3PmVNBGexpyWPhBLkSxi 5SUVwzVlU2JubBy6N96LGYhLIhJWIgiQAzQPgyTYqPhR0ARiUcjiIjDjfUooTwoVhlXc IZhtVQgjGANx8U6f5pzDn+rq+om3mn3VjLLhQHJLW+q655VA8zKLpYhrkhT0hHiNzcww ovnFQDv9NKDvMWfS+XV/D6us5X1MOEsEpXrlAqVUlJg3O/a8o8otU9wAIsQ7Kve/vdA7 wNW0kUCpDaserbnIV8Vt3anMSbzHSs1faAzWfav2sKPwZt9h2D/c26/MWHuk8B+qZJJ5 OQKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OJf14wEz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb18si17455542plb.1.2019.05.06.07.39.52; Mon, 06 May 2019 07:39:52 -0700 (PDT) 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=@kernel.org header.s=default header.b=OJf14wEz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbfEFOjv (ORCPT + 30 others); Mon, 6 May 2019 10:39:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:32918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727885AbfEFOjr (ORCPT ); Mon, 6 May 2019 10:39:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66BEE206A3; Mon, 6 May 2019 14:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153586; bh=Dy+I8rsDbFZauPhRvbkfbHNORIdzXayt9jJPqi/2LOQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OJf14wEzfjize+4yc9N6IiaFEoef5Kp9UYCTR4pTYnVPruNY7qYvjrgxMlfy50336 h5CbXHseH+m2mWMFmEWI0XFsS/a6q0ZpVLISYe6YLx2ZeeGlm0pktaK1Sa30b3PD7Y hIyU9gYJvBqiZNQL0vXqIZYgkRvb27qp+3cg8xUQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Wolfram Sang Subject: [PATCH 4.19 04/99] i2c: synquacer: fix enumeration of slave devices Date: Mon, 6 May 2019 16:31:37 +0200 Message-Id: <20190506143054.270143744@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143053.899356316@linuxfoundation.org> References: <20190506143053.899356316@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ard Biesheuvel commit 95e0cf3caeb11e1b0398c747b5cfa12828263824 upstream. 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 Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/busses/i2c-synquacer.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -602,6 +602,8 @@ static int synquacer_i2c_probe(struct pl 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);