Received: by 10.192.165.156 with SMTP id m28csp817272imm; Fri, 13 Apr 2018 08:19:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+LspAodqbX0eg3UTuxaDzXfqkTin1kPbST5v6vh/qxRgBzJ3vDVGskSVHjWLzz+poVatgq X-Received: by 2002:a17:902:8e83:: with SMTP id bg3-v6mr5540095plb.144.1523632744122; Fri, 13 Apr 2018 08:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523632744; cv=none; d=google.com; s=arc-20160816; b=Qu6rWnnsbIgF+yTwc+1jtptNAP1502t+sJp/C+XJcD7jvmyWvbk0sjSORrsFjtS92Z uT6ZJFYWCGO4deGAlhmMZJEb4BEjCR+IOlCxQkaDX9PEj3j2u1AEvtGtfBc1PWXrhHXm 0JqADat+nQbdmE0YtBV9zD1LVA1vF/HY0nGL+1sHz33kemh8znbs/lWb6yIwwd6Vc4TY S20/YpRbB65npCuh3/Q3xxXgVyF+76bsccFYnE25Qln8qlP1R9JxmTrMLNEVXD7BB6ax Tkzji2aUWibrJxE+DVQZtKLmwVAnrpO5bXDyW7gYEQdXitvDS1NM2aOXrQqUnwrH69ST DISQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=4X3rSnsxSFhPMJwiOyJe42CgpBCiZr+gDiSWHXLwx88=; b=ltEl0tHxdvauIzI6sT5c32k3jU/RXAHzxHPI0huRdWhp/cLoWItQJ/N7YfQdNfO6DZ qcbMCWn5YP46dQfSYx99caT0QfoBCDccMbYlqN4RVtPxBoVelIZOKD5FDD2rCifRG1Iy 288LrYAAb3/3Ido0GnjRnSM1tfSyAwQ7TFFuoQsLhoA2iqWkuSg+eMO2KjqpuwutYGv9 yf6P0Yi3yxrXX8a05eq07/HFtcbvdyhESZcrb3K6/CWKuGiQBmoKJ1LC+yamh6rXgTdk XSZ/gyO0KpDIxcxWIcBfHANPW3LvX34p6HuQoXfeyY2xq5c/ZXOipnsMCsqPnR0JYD// 5aNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=T4hw1St4; 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 24si4844391pfo.327.2018.04.13.08.18.50; Fri, 13 Apr 2018 08:19:04 -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=fail header.i=@gmail.com header.s=20161025 header.b=T4hw1St4; 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 S1751877AbeDMPRV (ORCPT + 99 others); Fri, 13 Apr 2018 11:17:21 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:44284 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbeDMPRT (ORCPT ); Fri, 13 Apr 2018 11:17:19 -0400 Received: by mail-lf0-f67.google.com with SMTP id g203-v6so13093997lfg.11; Fri, 13 Apr 2018 08:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=4X3rSnsxSFhPMJwiOyJe42CgpBCiZr+gDiSWHXLwx88=; b=T4hw1St4OTYHvP8SslsMPk485mY0++Kh4w+Iu2FhRfraaU/o0tQByo1YhI9q8MY93e buN9W2LB21gKQLR+uG+uDAByzs4QAqDl5FCXPjW1TIq/QEweG+rBWcDh/sCNrKmsjDbE /UiZMq1iBKfns/W4xewZlz1Sh0KvCNuhWnGWLOVbMIDHdAo5pEPRiXBL4LIJ4/xBqYP4 xSViRpn62nNXQ+XDcxWg+stB9DS44hECVcWQZOlkJmcQBLkxHbGG/WKS11HyEHv3NeVV pxfTT/gZ4RgxLgr3fUXlJaERfU2sdwYEkYpxyUyJpRov35WRYck71mKlYo9CKNMw3R/5 l6ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=4X3rSnsxSFhPMJwiOyJe42CgpBCiZr+gDiSWHXLwx88=; b=Mx6KVTnDHPimDeytMioVgxLan9LIP6bbMqvZTtudeinprMZ2EHCXTr855LNLxX1AcU N3dQVo5mbkv2pv9oxMCCBsKnpXIiP7OMYzKeSlFuVg6vjFzPmhswe0u/11Xes1bIWXki h5Fk6uZPRkQanBUmz7XOh8X+cShcAjzHaLnRT91DsC6hI8G+aWibIlXdBEA6g0QPCm6+ IYz6ov35eFO+sBMcZ/H0rTsTRUcMzTWZhVVwV9LJKKOd9yWm3BsQdBIaxqXAvgD/tmPo XH8kkLBbhDYm1X32wCkHnWPmqjzVCQTwMpSARes/z1l7w0mUBH7JNAoBB6Is0b8pl4hE /vMA== X-Gm-Message-State: ALQs6tDIn7Ob+daLIhVaRydXADXWxaGNHhf8Ht+SjRWpVwL3Ob+4q7B0 H414BqOIpLt7pSQ7peNWvFsO+jnp X-Received: by 10.46.144.72 with SMTP id n8mr3798252ljg.96.1523632637622; Fri, 13 Apr 2018 08:17:17 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id i143-v6sm1276308lfe.50.2018.04.13.08.17.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Apr 2018 08:17:16 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1f70Rq-0008W2-4v; Fri, 13 Apr 2018 17:17:10 +0200 From: Johan Hovold To: Bin Liu Cc: Greg Kroah-Hartman , Alan Stern , Arnd Bergmann , Kishon Vijay Abraham I , Martin Blumenstingl , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 3/3] USB: musb: dsps: propagate device-tree node Date: Fri, 13 Apr 2018 17:15:05 +0200 Message-Id: <20180413151505.32663-4-johan@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180413151505.32663-1-johan@kernel.org> References: <20180413151505.32663-1-johan@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To be able to use DSPS-based controllers with device-tree descriptions of the USB topology, we need to associate the glue device's device-tree node with the child controller device. Note that this can also be used to eventually let USB core manage generic phys. Also note that the other glue drivers will require similar changes to be able to describe their buses in DT. Signed-off-by: Johan Hovold --- drivers/usb/musb/musb_dsps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 6a60bc0490c5..23dba59045a7 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -786,6 +786,7 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue, musb->dev.parent = dev; musb->dev.dma_mask = &musb_dmamask; musb->dev.coherent_dma_mask = musb_dmamask; + device_set_of_node_from_dev(&musb->dev, &parent->dev); glue->musb = musb; -- 2.17.0