Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1745289pxb; Mon, 13 Sep 2021 04:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBz0ZnymxkiqBJMa0GEGj93vdJLA1CEr3+5mDy7jlK9PPqbHUZzjWzIfJ0FDcBlw5Q3jeP X-Received: by 2002:aa7:cf82:: with SMTP id z2mr12635183edx.254.1631533491114; Mon, 13 Sep 2021 04:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631533491; cv=none; d=google.com; s=arc-20160816; b=rIIZTVuB8uzE+S+F8mbBYjE2q/AAlYqDtVz6boY2yfnciWvmm8O5v51jSGCf6nHQZR pV34Z0Ek4PH+0rUUjzNoqE0PDFFBG7RuaSH3JvqzbbIkulgnc2kBsWdPOre/w7MppAUY xV9Wf3G5cfO0uKMFUFc64GwDqxVxVTs0YLX4NYtNSqaeIVOatMUNe8mCmzNj3zkkPPVe R7SkHOKHFymTE6MtgsAtVPNfsW72UAESaOopd8dFeydRjh/ks4pZoHetZLxxOYWZlHPC 9sNbvHwoU8KaHiIoW4NPHYTXt7ABnL9BgQ2TvlP1/ZLkugd9bc+3J7JQOoub9pyhBQAv LQ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=kumRFFWaUdlWZCS8nrhUBUkoTSGVtTyiSvCPdRF8aK8=; b=CR6XmWCftCfiLSII2c3TXUw9PT9F9RTktqK7CbKv1IbmkBCjtPhKq4G2MoibGnIyLZ oo+DtcaLQgmhB7djU7ygWXpDNPSpvsn9pib5/taU19Awp8ChT774rdOLI4zRqyRxiNvV Vwdfzp1QW8WIZyXOPNaoWvYPgfBT7rqhr93hyZXlAJjn072YyzqwyHHnydwCyy1HOJn8 GevJ6ekD5/6nON6Pr0PePboT+zGyZc5c0O4bFqXGSPNMMwIcre0EzOiqatPQBsQNEh94 IN/WGVCn33mCqydIzTrWJ3ZEMrx5SGz8k1b+jw9Cr95JYuP+pXLZ09dxf+3m+TANr+oX F4FA== 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 i18si8253745edc.541.2021.09.13.04.44.27; Mon, 13 Sep 2021 04:44:51 -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 S238710AbhIMLkt (ORCPT + 99 others); Mon, 13 Sep 2021 07:40:49 -0400 Received: from mail.thorsis.com ([92.198.35.195]:40947 "EHLO mail.thorsis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234635AbhIMLks (ORCPT ); Mon, 13 Sep 2021 07:40:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id 1B09BEB0; Mon, 13 Sep 2021 13:39:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FWrQzF6qtVib; Mon, 13 Sep 2021 13:39:31 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id 132561FEE; Mon, 13 Sep 2021 13:39:28 +0200 (CEST) X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was * blocked. See * http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block * for more information. * [URIs: microchip.com] * -0.0 NO_RELAYS Informational: message was not relayed via SMTP * -0.0 NO_RECEIVED Informational: message has no Received headers From: Alexander Dahl To: cristian.birsan@microchip.com Cc: stern@rowland.harvard.edu, gregkh@linuxfoundation.org, nicolas.ferre@microchip.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 Date: Mon, 13 Sep 2021 13:39:22 +0200 Message-ID: <2607416.cmL5XOGpRJ@ada> In-Reply-To: <20210910163842.1596407-3-cristian.birsan@microchip.com> References: <20210910163842.1596407-1-cristian.birsan@microchip.com> <20210910163842.1596407-3-cristian.birsan@microchip.com> Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Christian, Am Freitag, 10. September 2021, 18:38:42 CEST schrieb cristian.birsan@microchip.com: > From: Cristian Birsan > > Add support for USB Host High Speed Port HSIC phy. > > Signed-off-by: Cristian Birsan > --- > 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: Tested-by: Alexander Dahl Greets Alex