Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1608155pxa; Sun, 23 Aug 2020 09:17:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+bLjD6XtKh7eoiIpn8gCLcEZswVv04ynpEj+QSslrqTssyZJjP1VS6Y/BaeQPUipUslJf X-Received: by 2002:aa7:d8d8:: with SMTP id k24mr2013758eds.32.1598199439154; Sun, 23 Aug 2020 09:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598199439; cv=none; d=google.com; s=arc-20160816; b=afXM08j8elUfpBehqj4gjXz9ncNyw8Bz6PALQ0dFFrtldWUP2q5ZKasj+3V61NCuoJ iTucp4kdmCB4xrBJyQGUyr7S7LXrrPmQhDT7M0h1maktFvaG+dLhbE8lbCEUa8hSIFU1 70bOQDIzoj5n8NJPQw3j/B6xtIaFZDO1Hpi0nGfqRqNhfJBoMcFRm5dyotN/nWb4CVid 3+d5L/cGo/91XMcq2yz27l/fRBPTpPZU5UlWS0IGjA8SZR2Os/zGOGNprs2QMvAIEs2m 2CzSUbmPfgAYNS756dglICDAdbSWfMsDyP+4PswzmEmG77mk2X7TM4ct+Z+GdmE3M5zy BMKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3SdWo/W+YzeLAbdKlNvpbUdqc2DiG0oZpRvtOXvG16A=; b=PHLXpOChjqG2BfKIdGtrj9B4EzKnGG86HMsLsFYsUxJpI2+e3xoaasguY7P++LDAu0 Z0ktbssgJ02+At1BKeBrF+E6eGra6wnJIjubgi1dQx4/9G1fiNrkesuD511TdFVSZVKG ToRHciYEWcMD0KFxK4veu4daB90hLCx3o+z42rtLBJekiB9z2/PzTA0fu7yRD1JA2O1N +45ygQDcJeTtN/w1N1tMJzfHd5h6ZsGRMyXG4Ad6PV8EFy7q4/gQk5UnE+gDpkH6DgbZ lDxetDgTxKNhTFYUkCcJk9qStK3f19Vg/CEuWBdMWZzW2g/aBkf3UTMA6SFGnk0eu+HR lIvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zU/EWfU0"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si5214373edr.287.2020.08.23.09.16.56; Sun, 23 Aug 2020 09:17:19 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="zU/EWfU0"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbgHWQKl (ORCPT + 99 others); Sun, 23 Aug 2020 12:10:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:40132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgHWQKl (ORCPT ); Sun, 23 Aug 2020 12:10:41 -0400 Received: from localhost (unknown [122.171.38.130]) (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 74F79204FD; Sun, 23 Aug 2020 16:10:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598199040; bh=y+p42uaIJRU0A6A1mK6c1EEMZS77qwTA9XDh2t+6/nE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zU/EWfU0b33+P65zCqO2q0L85Hw/GGYREtFZ8WY21iu3W/jEbLOlheQ4Y7RxxBsSF Ni9QwO0PH8YXT7g2YEqZ8W4e+cnleW829M/7T1N+EqJuzCCrRurEhmac6JTOaUKe5F GmUlZBQH/xT4mOlkKI5cN+jTiITQQvs+V6DPdwt0= Date: Sun, 23 Aug 2020 21:40:36 +0530 From: Vinod Koul To: Roger Quadros Cc: kishon@ti.com, nsekhar@ti.com, vigneshr@ti.com, jan.kiszka@siemens.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] phy: omap-usb2-phy: disable PHY charger detect Message-ID: <20200823161036.GY2639@vkoul-mobl> References: <20200821080356.17103-1-rogerq@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821080356.17103-1-rogerq@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-08-20, 11:03, Roger Quadros wrote: > AM654x PG1.0 has a silicon bug that D+ is pulled high after POR, which > could cause enumeration failure with some USB hubs. Disabling the > USB2_PHY Charger Detect function will put D+ into the normal state. > > This addresses Silicon Errata: > i2075 - "USB2PHY: USB2PHY Charger Detect is Enabled by Default Without VBUS > Presence" > > Signed-off-by: Roger Quadros > Tested-by: Jan Kiszka > --- > Vinod/Kishon, > > As this is an errata fix, it should be targetted for 5.9-rc cycle. > Thanks. > > cheers, > -roger > > Changelog: > v5 > - don't use dt property to enable workaround. Use soc_device_match() instead. > > v4 > - fix example to fix dt_binding_check warnings > - '#phy-cells' -> "#phy-cells" > - Add 'oneOf' to compatible logic to allow just "ti,omap-usb2" as valid > > v3 > - Removed quotes from compatibles > - changed property to "ti,disable-charger-det" > > v2 > - Address Rob's comments on YAML schema. > > drivers/phy/ti/phy-omap-usb2.c | 70 +++++++++++++++++++++++++--------- > 1 file changed, 51 insertions(+), 19 deletions(-) > > diff --git a/drivers/phy/ti/phy-omap-usb2.c b/drivers/phy/ti/phy-omap-usb2.c > index cb2dd3230fa7..65d73142d4ec 100644 > --- a/drivers/phy/ti/phy-omap-usb2.c > +++ b/drivers/phy/ti/phy-omap-usb2.c > @@ -6,26 +6,31 @@ > * Author: Kishon Vijay Abraham I > */ > > -#include > -#include > -#include > -#include > -#include > -#include > -#include > #include > -#include > -#include > #include > +#include > +#include > +#include > +#include > +#include > +#include > #include > +#include > #include > -#include > +#include > +#include > #include > -#include > +#include > +#include > +#include Can we do reorder in a separate patch and not in a fixes patch > static int omap_usb2_probe(struct platform_device *pdev) > { > struct omap_usb *phy; > @@ -366,14 +399,14 @@ static int omap_usb2_probe(struct platform_device *pdev) > phy->mask = phy_data->mask; > phy->power_on = phy_data->power_on; > phy->power_off = phy_data->power_off; > + phy->flags = phy_data->flags; > > - if (phy_data->flags & OMAP_USB2_CALIBRATE_FALSE_DISCONNECT) { > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - phy->phy_base = devm_ioremap_resource(&pdev->dev, res); > - if (IS_ERR(phy->phy_base)) > - return PTR_ERR(phy->phy_base); > - phy->flags |= OMAP_USB2_CALIBRATE_FALSE_DISCONNECT; > - } > + omap_usb2_init_errata(phy); > + > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + phy->phy_base = devm_ioremap_resource(&pdev->dev, res); > + if (IS_ERR(phy->phy_base)) > + return PTR_ERR(phy->phy_base); > > phy->syscon_phy_power = syscon_regmap_lookup_by_phandle(node, > "syscon-phy-power"); > @@ -405,7 +438,6 @@ static int omap_usb2_probe(struct platform_device *pdev) > } > } > > - this does not belong to this patch, pls feel free to send a separate one for this -- ~Vinod