Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4812478pxu; Tue, 22 Dec 2020 01:09:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxM4J1RJg+Rut0UZXt51ucrnnQdaD3akdSTzuJcsp6zR31kMaJLeTIk8hPuE/lPpyl6p+S X-Received: by 2002:a17:907:1010:: with SMTP id ox16mr19101396ejb.439.1608628196188; Tue, 22 Dec 2020 01:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608628196; cv=none; d=google.com; s=arc-20160816; b=SBDnHPaPQyObcOhrm35Od0wnNUW8iXckIpdV/rg5u4Msotx46/fglPlsF2ZZuWh+G1 myTH2rIQ3UnIcpuFjYo9LCKCDVbzvM1P2tQw3le9n0awom686PZCmwT64HrzUtXh3ZeH p8aIeK36CRRygf5oQUjQMGGQzPQAzjdDncsEtbN+FJHBxSDsxNEkr2gdStyJKSAFySxP mdfGmq/Nrl34wiBZLbi3AH/85Np6Cq4DEfbeNMkk+bRB80xUQD99AMWyk1qj7H/ldILQ VsWz0f9sLv54NnfxdqQoFRa4IxJLeenJC4BpvoUXvArOdd671JsCKSSGietR13mEn40Q W+KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=4O/oeW+DcpL9pS1COlbCtce/VT5KJtKT4cu5D2/df6M=; b=P4yFnQtAFpmBZGVBqTTBQALlnN0OCXhqwKxKHrI+ssc83nJ79D9Y/BfwsI+REeWahP KceiFMiMb43EIyqkk3483GrGpMS6cCxlvFiSKHAsy1MDYEEDswLLLWIq6LARCdI5L4i4 TGkIL9RSntPO4eeAud3MISbKnQ+e5XCor8Ck9OrFe3BgJBjthOZGsOH4J+65MuHMj2CA wMUKDJf0q38YPOMIXiRdTnu4EekUDkfHcHPI22N/J6WpgTM1GTcgXo9vE5KJsVCzmy1c ELW9Q0xz5Li2usb8dnSgHz2kuzPPUwWCKaUnkeKw/B9CPXhb74vUFEBtpVQ17F68+Rfv A9Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si11866482eds.239.2020.12.22.01.09.33; Tue, 22 Dec 2020 01:09:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbgLVJJJ (ORCPT + 99 others); Tue, 22 Dec 2020 04:09:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgLVJJI (ORCPT ); Tue, 22 Dec 2020 04:09:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D895C0613D3 for ; Tue, 22 Dec 2020 01:08:28 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1krdec-0001OJ-Na; Tue, 22 Dec 2020 10:08:26 +0100 Subject: Re: Correct ordering of phy_init and phy_power_on To: Kishon Vijay Abraham I , Vinod Koul , Minas Harutyunyan , linux-usb@vger.kernel.org Cc: "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , Jules Maselbas References: <6cd01e79-fdc0-3bd4-32b5-a85142533f8a@pengutronix.de> <014e75a5-ab7b-55be-e554-14ef7550b360@ti.com> From: Ahmad Fatoum Message-ID: Date: Tue, 22 Dec 2020 10:08:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <014e75a5-ab7b-55be-e554-14ef7550b360@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Kishon, On 21.12.20 04:15, Kishon Vijay Abraham I wrote: >> So how was it meant to be? > > It is intended to be ->init() and then ->power_on(). So ideally it > should be the way dwc3 is. Thanks. Should we do something about the inconsistency? Amend documentation and maybe print a warning when order is wrong, so users are encouraged to fix their drivers? The way it is, you can't properly mix some of the PHY and USB controller drivers. Cheers, Ahmad > > Thanks, > Kishon > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |