Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1779547pxb; Fri, 10 Sep 2021 13:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+Cgh0sDEC7V3R8i5qq8B9zTGeS5kRTT4qMwE0bo++HGVeamGLhyJvE4ZsNaFdRQgY3+wP X-Received: by 2002:a92:cda4:: with SMTP id g4mr7671502ild.236.1631307045804; Fri, 10 Sep 2021 13:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631307045; cv=none; d=google.com; s=arc-20160816; b=pikyise3Zo5zzyiV/CF+pJ6DAILhba8vD/Wg58pIp4gpHW2hes27FP01nhRgVI9G73 pK1o3fwSWIaaANqYN3llng0TJSpScJMvvq9B+yXZ4jqnRv0T4MzWa2jdGofh2UswBUwT vpmefCCBBuDNorNSSTfJtY+kBrB/ES8GtfrV82KOi7DozaiyIt8ikdWiVLuOcWcGAh16 H8iR63A4In4inlH6OrFfe4IWM83+cOu4ONJNoXWwZ4BF7xG7Z/XDe+7IXmY5mnoRdSdN bOGDULNUHeBGfsAsv+Zd80SaR9QjUTNRuzJxlBgCpnEYFph8WEhjGd6lInypDv8VZEQX LIdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=z5pzlw2JJecsf292hGJ8ZezywLKubIxZZbWjZVXCUX0=; b=Nsb6wZODx4LZmarEefk9RN+mOAJ0jMIFThTj722q5tG0RHRS/CThV7l4AXfc/PGs4y rkYX2torJXZtoaBIse7xBU36M1WhoIXsS1OHoW1uiOA2g+j4Z7OI+p0Fh272hA0EYVqq 4vPC1a2lBx0GzI0f4akMLAN2SzBZsqWtP4c5iBzgInMXcMF1kmfWO+Lx8PAM+brRWOks BxbXF/6b+bSa3Y+1Skefs2aJPxSDbr+zIviucpB94VMxE7b34gnqJnPMWeoGKqwoPZ3+ cgQzAA5hWbpqbF5NbH0XUPnwmuo6l/vqxHM+2MoJFrwlzP0bDjHTCl0BR4AQFUJNryCy eQtQ== 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 b8si6378711ios.12.2021.09.10.13.50.34; Fri, 10 Sep 2021 13:50:45 -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; 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 S233498AbhIJUuO (ORCPT + 99 others); Fri, 10 Sep 2021 16:50:14 -0400 Received: from netrider.rowland.org ([192.131.102.5]:46007 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S233733AbhIJUuO (ORCPT ); Fri, 10 Sep 2021 16:50:14 -0400 Received: (qmail 50185 invoked by uid 1000); 10 Sep 2021 16:49:01 -0400 Date: Fri, 10 Sep 2021 16:49:01 -0400 From: Alan Stern To: cristian.birsan@microchip.com Cc: gregkh@linuxfoundation.org, nicolas.ferre@microchip.com, ada@thorsis.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] USB: host: ehci-atmel: Add support for HSIC phy Message-ID: <20210910204901.GA50170@rowland.harvard.edu> References: <20210910163842.1596407-1-cristian.birsan@microchip.com> <20210910163842.1596407-3-cristian.birsan@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910163842.1596407-3-cristian.birsan@microchip.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 07:38:42PM +0300, cristian.birsan@microchip.com wrote: > From: Cristian Birsan > > Add support for USB Host High Speed Port HSIC phy. > > Signed-off-by: Cristian Birsan > --- Acked-by: Alan Stern > drivers/usb/host/ehci-atmel.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c > index e893467d659c..05d41fd65f25 100644 > --- a/drivers/usb/host/ehci-atmel.c > +++ b/drivers/usb/host/ehci-atmel.c > @@ -18,6 +18,8 @@ > #include > #include > #include > +#include > +#include > > #include "ehci.h" > > @@ -25,6 +27,9 @@ > > static const char hcd_name[] = "ehci-atmel"; > > +#define EHCI_INSNREG(index) ((index) * 4 + 0x90) > +#define EHCI_INSNREG08_HSIC_EN BIT(2) > + > /* interface and function clocks */ > #define hcd_to_atmel_ehci_priv(h) \ > ((struct atmel_ehci_priv *)hcd_to_ehci(h)->priv) > @@ -154,6 +159,9 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev) > goto fail_add_hcd; > device_wakeup_enable(hcd->self.controller); > > + if (of_usb_get_phy_mode(pdev->dev.of_node) == USBPHY_INTERFACE_MODE_HSIC) > + writel(EHCI_INSNREG08_HSIC_EN, hcd->regs + EHCI_INSNREG(8)); > + > return retval; > > fail_add_hcd: > -- > 2.25.1 >