From patchwork Mon May 6 14:31:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 163406 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp48772ilm; Mon, 6 May 2019 07:34:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0Chdjxi2Q2ytXA/xhV2uzbyW+tDJGeso1wDxP0UncaWrxYpCvCeu9DTKEbV4smTDZRkPx X-Received: by 2002:a65:6545:: with SMTP id a5mr33222143pgw.264.1557153266480; Mon, 06 May 2019 07:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557153266; cv=none; d=google.com; s=arc-20160816; b=vwRlVZn6JtCWsbu171Ezzv9RH2IGN3K6PupUDSlAXTQ/UbVcCSyVpTohupOBChfOcc nTgBL42kZ2vY+bfiVRWJE/3sJqphtxkgf9w4B6bmoON7Az21dGVQp0i4K0b6120aCywj 6mtusEie7VRDeEL358qzUbPMGsiXwOOB+d/pb+Uryc8pvo4i3tMmEiaTcfon03BwNfsf CAke9Y4TwZ4aEvVKKIURhDAnmpCbuXQsdltwpnF/DfebMFIz/NTRg+kWCyuCnXdQC+zu p8JsfDt4mtzwhoXCO6BWSuV7Wo9CUuZUcxNs9A371FH56zG2ywp/PK25LUScRd3F9AAh xMJQ== 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=FgAJENqfWPmwxaS++hGE0TvHRgwtAAsz687Bz72l3UOkXtWMjZ2Q+jTU0xVEYc9UQ/ aSzudC9XXVRUa94Vv5C9uJLcw1CiPd5fMBZyBvehu7Ui0IUj8MQFtd+UdnCaxz2Ow4Uy ILZKsQ6j/WWAsoTNhJi2bXzkbXaNwdk60rtCyDWjIdu9vLXtmaQZ7SUJtumG7JxCGXRc kddAfonqOlix95OS0PggTfe1gyB2ceN4m2ZbLfRWTVx9zK9cIDZow0i4xVvN/3DGPjYg WZFCOiUyly/9UoMBTPqbn8wLuLnvMJMjO0/xIG1JtlW5JVcLVMnpqT6gIaiAv+b2rdSK SchQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AQ0by/w8"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 n22si15277485pff.1.2019.05.06.07.34.26; Mon, 06 May 2019 07:34:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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="AQ0by/w8"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbfEFOeZ (ORCPT + 14 others); Mon, 6 May 2019 10:34:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:54012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbfEFOeY (ORCPT ); Mon, 6 May 2019 10:34:24 -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 15BCB204EC; Mon, 6 May 2019 14:34:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153264; bh=Dy+I8rsDbFZauPhRvbkfbHNORIdzXayt9jJPqi/2LOQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AQ0by/w8+HvrszFna+yDXTQdRS9iJNKzJV5cKgIKRpkHMcQB0z6YL7XgX/PStIz+2 nUb84OMLvegcjC6mgVLDEABmifPbS+YbLnuKKiN3/wv33nBjugBvzmP39911boSiir k782lt3wPsEaBy9lVw14MYw8haVYBJNpWsBhWqoc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ard Biesheuvel , Wolfram Sang Subject: [PATCH 5.0 008/122] i2c: synquacer: fix enumeration of slave devices Date: Mon, 6 May 2019 16:31:06 +0200 Message-Id: <20190506143055.458618424@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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);