Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1858987ybi; Thu, 20 Jun 2019 05:10:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEUpufKUxYKkpcPFGOwB1bTzgI6nYNrxTDIZz84UHNwCcM00/aHbWaCuK22LY/yDD7t7Ka X-Received: by 2002:a17:90a:c504:: with SMTP id k4mr2770977pjt.104.1561032652651; Thu, 20 Jun 2019 05:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561032652; cv=none; d=google.com; s=arc-20160816; b=KW3FyWTrMnJRqBJGaOvAvWEwcJIPObTO6vEPJ28EJhjSqmz+DkosWdXzBAUhK+/Gmd wBTnda8hKFsQFOPeDet3yRL5wY8yGVMleUIGkJ5Mdc25iK7Aw+v+6E2zaS/88/Ib7z33 /N5c9CMGhcbT2dgLNyE6ypTadq59Op550+aV5sYzfEIhM9GWkH21cZuDUPjp2gSlGWG4 FZXsGYr3GbViRFwgxP2T/oaY+d3n/Iob9ffjWFlgIzbPttlPDrYRuHg6ODKjnGs/N1vv BhbKFxqHevfjuH2Xg/iqn+i6UywgroK3I7tNx/uGAJabU7e3hkQO7s1SRJ6P/bshaQk8 ir9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GQxMq8HUfCC4G3oTDssmRAbQ5MK6gW1BXSSNb3iMR3A=; b=hL6kqCynH2OjQkxGnuDlCczwmzkSlsh8F3k4O98tQcZXHTjYbf/JRV6OXtXunasDUG wGiZuDCihAAa0hMmziLpQCW4vdBkabYWTgscoIzr735O0S/aLC3mOFD8Fi2rTrHtiDo/ 9ZaV7gvj+b6pu40v5oWR3BH1qfoIHgaoIoJjHse8b47pykhC/gEkZU0phEneVT4Fsq4B WuoRSo0+gePeuAywDM7XzkvC633YuzDC3QSSJs9y3xtFC77uU8oLSRdErvjRI584/ntH 7epk3pVkHYMtst2q0tM+Cc2rxstE55NoW5OIzUNvSLoVPq6TUpzyAFCuabI7PhyEifC5 TMBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wKQFXj/K"; 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 v4si5180752pgr.475.2019.06.20.05.10.36; Thu, 20 Jun 2019 05:10:52 -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=@kernel.org header.s=default header.b="wKQFXj/K"; 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 S1731780AbfFTMK2 (ORCPT + 99 others); Thu, 20 Jun 2019 08:10:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730596AbfFTMK2 (ORCPT ); Thu, 20 Jun 2019 08:10:28 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0906E2080C; Thu, 20 Jun 2019 12:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561032627; bh=gypvzOuIyGej/WLKSteaEHH1Cc+uthJD0zqXxf7LLJk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wKQFXj/Kk1YUVHNUjmFWLP/OYg2Z4cD55J+GL9FwDW4/YVfOMZ+Bm5ajPWetKYjUg UJ/J9WsCFYnWCc3j+g9/EEOocWMisPtXsvaQ6k8HlsrRbJy8sLYuAFVlad7O2gxuHA dOHkFYG1pY93D5BhBFAESLH8hCeT6OGJpSFWDyEc= Date: Thu, 20 Jun 2019 14:10:25 +0200 From: Greg Kroah-Hartman To: Yinbo Zhu Cc: Alan Stern , xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Ramneek Mehresh , Nikhil Badola , Ran Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 4/5] usb: host: Stops USB controller init if PLL fails to lock Message-ID: <20190620121025.GB19295@kroah.com> References: <20190614085433.22344-1-yinbo.zhu@nxp.com> <20190614085433.22344-4-yinbo.zhu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614085433.22344-4-yinbo.zhu@nxp.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 14, 2019 at 04:54:32PM +0800, Yinbo Zhu wrote: > From: Ramneek Mehresh > > USB erratum-A006918 workaround tries to start internal PHY inside > uboot (when PLL fails to lock). However, if the workaround also > fails, then USB initialization is also stopped inside Linux. > Erratum-A006918 workaround failure creates "fsl,erratum_a006918" > node in device-tree. Presence of this node in device-tree is > used to stop USB controller initialization in Linux > > Signed-off-by: Ramneek Mehresh > Signed-off-by: Suresh Gupta > Signed-off-by: Yinbo Zhu > --- > Change in v7: > keep v5 version "fall through" > > drivers/usb/host/ehci-fsl.c | 9 +++++++++ > drivers/usb/host/fsl-mph-dr-of.c | 3 ++- > 2 files changed, 11 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c > index 8f3bf3efb038..ef3dfd33a62e 100644 > --- a/drivers/usb/host/ehci-fsl.c > +++ b/drivers/usb/host/ehci-fsl.c > @@ -236,6 +236,15 @@ static int ehci_fsl_setup_phy(struct usb_hcd *hcd, > portsc |= PORT_PTS_PTW; > /* fall through */ > case FSL_USB2_PHY_UTMI: > + /* Presence of this node "has_fsl_erratum_a006918" > + * in device-tree is used to stop USB controller > + * initialization in Linux > + */ > + if (pdata->has_fsl_erratum_a006918) { > + dev_warn(dev, "USB PHY clock invalid\n"); > + return -EINVAL; > + } > + You need a /* fall through */ comment here, right? thanks, greg k-h