From patchwork Thu Feb 28 11:20:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TcOlbnMgUnVsbGfDpXJk?= X-Patchwork-Id: 10832829 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B07F31390 for ; Thu, 28 Feb 2019 11:21:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CC7E2DE31 for ; Thu, 28 Feb 2019 11:21:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 909AF2E1A2; Thu, 28 Feb 2019 11:21:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 45A2E2DE31 for ; Thu, 28 Feb 2019 11:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JfNsKCtp2npDZMavwHszJmU18kVdAbVEpINWnkzHXLQ=; b=cQTX4HpWx5FUsK 5voIBQXT36Lgkt1/evuVUo56izMp61/KCdMGXjs7m5lIKmUtl4+ZYW4p+so1Q9cd+PqifI+SLf3lR JsY9eF51w/o4MiFBpTWOofIU0DPRhxKpRep5PLhd7VFKYUnMt2GXuF9hcNrJ71bVNlYBvsWaLGZws KdGkj0SdDzaHEXDXth77PlK0k0lDwWqLptYI1oEgZC9sJUKqP+jlw0Kxr8oJTj0BoMTfFBulDsm3T 9dia7HD9kNpoQ+iM6m6zNI63GbnAc6H93vCvSE8FJWXd0uFv77ej0gW7/V0yQsIbuvyH0KMo9vLyK CnSYI5B75Jk5KxDhHSSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzJkT-0002M4-Uo; Thu, 28 Feb 2019 11:21:09 +0000 Received: from unicorn.mansr.com ([81.2.72.234]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzJkP-0002LP-1E for linux-arm-kernel@lists.infradead.org; Thu, 28 Feb 2019 11:21:07 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id EC1B015632; Thu, 28 Feb 2019 11:20:41 +0000 (GMT) From: Mans Rullgard To: Bin Liu , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Date: Thu, 28 Feb 2019 11:20:31 +0000 Message-Id: <20190228112031.8122-1-mans@mansr.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190228_032105_233488_8DC6983A X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- This depends on 2c1ea6abde88 ("platform: set of_node in platform_device_register_full()") which is currently winding its way through the staging trees. --- 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;