Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3984317ybh; Tue, 6 Aug 2019 04:35:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDrJIql/HMyxnBLAVuaC+KmSb841Oq3NER1nyidT2/9InwHKWDyngHLMaWhEWswBmNRu3t X-Received: by 2002:a17:90a:35e5:: with SMTP id r92mr2813968pjb.34.1565091354533; Tue, 06 Aug 2019 04:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565091354; cv=none; d=google.com; s=arc-20160816; b=D8AsI7HHZhvVMGaZxnDRLsbkvlQicncHfP42VuBIOEsP7n5Vj7fCXVRXuojEpqsx9x rR0UoEGKIWnrq0m2mGHc4daHHaM+Gzt4L0aJO58JHWc2PBkTnMIMlz9ZV+/a+WMXe79x CoPu1XoXOUWd/IEPUyvzvIyZ/EZv2l3o2GytvXbQpsxahJT/szUdildVQ4AMZKIzN+4P tJorhl2bxSz0mA9cDbdE9k8XWhv5iU6DOU7RO7DC1hR57UkMnH0B5tW2FQpydK5iyJbl Z/VM/K19Q+EKRML26VGYuFaK+0m0Ns68LxjTvjM+65epcb2UKCHHqqEIaixCrVOGfofr wPbQ== 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; bh=f8wIn17C8PEKFAbRSbRFM7hs+KwbmSESXx2xjqCzYU0=; b=b3nqEQmODSvrZVy0zZKSKBWENOSA14QjTqMVJVWpDgax+RF3ZkBEIvRQ/HPcins4Vp Zszq1YqHHbl/YjVnvToBPjUfuQ85Ify02HUpyZqUByZixB9yGmqlNEQKeKz1UGdLWt/D 2+/Qz6/9itSuIag0MUYomlhTyoPqm3mcqaA64m/QrzWSDq3V5V6pyXXzn77X0DCe9xP3 yCJFquy/s3BatTbtOp5YsiY3IP9Qk/0UxE2/4IG/kOmxcR9WNqyO1by6qZTotaSrsS7W rq+TFpydj+vrcEj4WPZvfon2EwFLyVWL2ZLsMOny+IohJ3QBHEXNNihNy0iLmJjO3kEM ZTgw== ARC-Authentication-Results: i=1; mx.google.com; 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 g6si44487150pll.82.2019.08.06.04.35.38; Tue, 06 Aug 2019 04:35:54 -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; 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 S1730935AbfHFLfD (ORCPT + 99 others); Tue, 6 Aug 2019 07:35:03 -0400 Received: from unicorn.mansr.com ([81.2.72.234]:51060 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726783AbfHFLfC (ORCPT ); Tue, 6 Aug 2019 07:35:02 -0400 Received: by unicorn.mansr.com (Postfix, from userid 51770) id F0FFA16F1B; Tue, 6 Aug 2019 12:35:00 +0100 (BST) From: Mans Rullgard To: Bin Liu , Maxime Ripard Cc: Greg Kroah-Hartman , Chen-Yu Tsai , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND][PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Date: Tue, 6 Aug 2019 12:34:58 +0100 Message-Id: <20190806113458.3304-1-mans@mansr.com> X-Mailer: git-send-email 2.22.0 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 In order for devicetree nodes to be correctly associated with attached devices, the controller node needs to be propagated to the glue device. Signed-off-by: Mans Rullgard --- drivers/usb/musb/sunxi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c index 832a41f9ee7d..a72665fbf111 100644 --- a/drivers/usb/musb/sunxi.c +++ b/drivers/usb/musb/sunxi.c @@ -781,6 +781,8 @@ static int sunxi_musb_probe(struct platform_device *pdev) pinfo.name = "musb-hdrc"; pinfo.id = PLATFORM_DEVID_AUTO; pinfo.parent = &pdev->dev; + pinfo.fwnode = of_fwnode_handle(pdev->dev.of_node); + pinfo.of_node_reused = true; pinfo.res = pdev->resource; pinfo.num_res = pdev->num_resources; pinfo.data = &pdata; -- 2.22.0