Received: by 10.192.165.156 with SMTP id m28csp1599541imm; Wed, 18 Apr 2018 12:20:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Bj/RsEXQz4Fppnyh+j0c96l5DTBKNfCo7JpdIBh5mnuSclOPNlN/OCD7lAke3Cjvcgy5e X-Received: by 10.99.170.70 with SMTP id x6mr2692742pgo.114.1524079226474; Wed, 18 Apr 2018 12:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524079226; cv=none; d=google.com; s=arc-20160816; b=QEps5IdFqWUCvbJM/0WJTuv0fY9b2pFqqEHvZhu7a0+ZdY2I2gRbZiShFguunK/KiK XVjcJyVnZa35aaaOFN69onk1XF3oElt97zA7ZzAQfLIvQyx5ubTNl22kqvJrcwRhj8p9 CouqQTl9LffOCJcWFuKEDMtbJ/HW5bnrE2iqAh01HQUK+5G/zg7lijmCNaKEJffO9/Kh CajdpawMfTM1FkZE4kcHZrbrrdR+BvUGwL7FwpSK4On4oFXkW8n+ZJigOcZmEfmaIaq0 P+E0hKAx/NN3SGWStFSLJkcmruvyJhd9eEbWIB0NhfkO1k4Lsk+QIt4n8W83IDnaGcUo yLJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=LmMdjDFFkgryiTNyDYbrMzZJcvY/rdMU3X7lKo7qOoQ=; b=nhDgIIer1eEzomO8mwOkh0RBUVFRsSjc8HG2L4yqLFkBTzR+iGLTbLAPLmEs3hy/0M YjdnDctHkJ+TVDxy6vfvICwO/flOVosxSlVBjIXMD4i6LHr2LTfCOmYsTC6acXVIT0Lz AhB0j8JjeC7pzdJu2zGMpB/Lbw/FP8QlLdkaZkdivb8/Qeaj4uZXw5Cl03IqWWwEP2r4 t3wWoz2wC2C75S8Mqs3KR8wNSA6f67V3Fru4oLhmVcvm97Lp6Y38rtztC7nVjMtuZhaZ wE57nxTK4M4apfy+Xkm2D154YjzKOlzeQpKc6+k+E0lg/1qYjtRs+YSDm6LPyVnPq7EI z25w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=L0+Lr8VZ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8-v6si1946614pli.242.2018.04.18.12.20.12; Wed, 18 Apr 2018 12:20:26 -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=@googlemail.com header.s=20161025 header.b=L0+Lr8VZ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbeDRTSx (ORCPT + 99 others); Wed, 18 Apr 2018 15:18:53 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:42429 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbeDRTSv (ORCPT ); Wed, 18 Apr 2018 15:18:51 -0400 Received: by mail-oi0-f68.google.com with SMTP id t27-v6so2619440oij.9; Wed, 18 Apr 2018 12:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LmMdjDFFkgryiTNyDYbrMzZJcvY/rdMU3X7lKo7qOoQ=; b=L0+Lr8VZQwLCnedU17xGP/7YXBqMj/z2nfEHMM7xPHDIjK44QCuf6BzKque/sW2jXf wLxpd3dI5Z/a6lpJdpxE39TWMjsQ2gusesWKdt6UN2E8/Lso/7aRp1m6Zo2J3uEe5TM4 u/pEJJG4UKJ2sYI/g4vTGp27y9jg6MCTJxLxwp7WH0axUScGO2117VAGrWbSWsSfrqwS Dovsoiygdxs8x3iFg9aEwaQH2BXuAq8TCpaOffDzdKjOEc8jY0E8b5G4+nkSteEy8T/W N4y3LpjxEyKk4A/cb31egKoVyUx87SQcEXHK5tZ2PV6BAzWrsHDUGJ0NKwd3FzMRdr9V qfnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LmMdjDFFkgryiTNyDYbrMzZJcvY/rdMU3X7lKo7qOoQ=; b=l1OJTvYyh1V1M3FLA0Z4gP6oAIJO+a+jSIajDCMcCgUANNMROBwQNG40JydaDNhpRo x+RlnoWh98kDt5aoltIEw0iv4TymBtusG4odkeyc63k5/+G5s2241bKtLVyWWMdPaV1d 5To/fABdYg4+KXjGqYPbk9BT4W6KFEY5V8KBdqyV/3xyYU8Qn+vBi9ReRGxANFaa4Ozt HXf6894bwBgxUwU+hs7xVHkqGWSUT0ivmTon5NUoFqkj180ehHrLkMH91E/tfdGC6Iyi lmw909YaCKMOKUP4fDm+/+oVDGNFWOKK41Uu7vqgWRC67Z9E/CczKG7glzhtPMSxXv6J TEOw== X-Gm-Message-State: ALQs6tAzOusuntLTj4PP3czamcbzt7QVMOV1Ghj4L8VsWFGIjJqiKGID u/H+RCIrE6FA7EicM+JGpG+48V36fJJfjRQd+Rs= X-Received: by 2002:aca:1913:: with SMTP id l19-v6mr2026298oii.213.1524079130510; Wed, 18 Apr 2018 12:18:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.44.216 with HTTP; Wed, 18 Apr 2018 12:18:30 -0700 (PDT) In-Reply-To: <20180413151505.32663-1-johan@kernel.org> References: <20180413151505.32663-1-johan@kernel.org> From: Martin Blumenstingl Date: Wed, 18 Apr 2018 21:18:30 +0200 Message-ID: Subject: Re: [PATCH 0/3] USB: musb: dsps: phy fix and DT-topology support To: Johan Hovold Cc: Bin Liu , Greg Kroah-Hartman , Alan Stern , Arnd Bergmann , Kishon Vijay Abraham I , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, On Fri, Apr 13, 2018 at 5:15 PM, Johan Hovold wrote: > I've been carrying a patch out-of-tree since my work on improving the > USB device-tree support which is needed to be able to describe USB > topologies for musb based controllers. > > This patch, which associates the platform controller device with the > glue device device-tree node, did not play well with the recent changes > which added generic phy support to USB core however. I'm the one who added this > Like the recent dwc2 regression fixed by Arnd after the device-tree > #phy-cell changes, the generic phy code in USB core can now also fail > indefinitly with -EPROBE_DEFER when the controller uses a legacy USB > phy. > > The second patch addresses this for musb, which handles its own (legacy > and generic) phys, but something more may possibly now be needed for > other platforms with legacy phys. I'm not sure if I understand the problem yet - could you please explain with your words what "legacy PHYs" are and how the "conflict" with the PHY handling in USB core? I am aware of two PHY subsystems: - drivers/phy -- also called "generic PHY framework" -- uses a "phys" property - drivers/usb/phy -- also called "USB PHY framework" -- AFAIK this should not be used for new drivers -- uses an "usb-phy" property the new PHY handling in USB core only parses the "phys" property and thus should not conflict with "usb-phy" (the legacy property) however, I probably missed something so I'd appreciate an explanation how things can break > In the process of debugging this, I stumbled over another issue which > caused the dsps legacy phy init two be called twice on every probe and > which is fixed by the first patch. > > Johan > > > Johan Hovold (3): > USB: musb: dsps: drop duplicate phy initialisation > USB: musb: host: prevent core phy initialisation > USB: musb: dsps: propagate device-tree node > > drivers/usb/musb/musb_dsps.c | 3 +-- > drivers/usb/musb/musb_host.c | 1 + > 2 files changed, 2 insertions(+), 2 deletions(-) > > -- > 2.17.0 > Regards Martin