Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2488607pxb; Mon, 23 Aug 2021 23:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsqHPHDpD6qKf2qMMC8auOClsstULfrDCTwBSbTZQ8xemNVJVcWqZGlduWP00IX2e+/Etm X-Received: by 2002:a05:6402:4384:: with SMTP id o4mr16926711edc.206.1629787686917; Mon, 23 Aug 2021 23:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629787686; cv=none; d=google.com; s=arc-20160816; b=o2bfIuYR5H10xIKEveJnl2VI4D/5ztnJs+UvBMvc/iGdoMrXI11QElzaysDlReihnT ifOs6KOfTCqtbAbhTeJOb3dDg64CZCwaZ8Dkli7NMNxOszuOZ8k74erp2Fxrm9/+LNNR 2Qa0xM0tP+k9r/w/V5HNC0xHcW1WdsPGB7sY5uvPDoZX7dfCrcDSbg1AGQ9BeYAJxhMx NEKt0e4AFfDVYJdmHswvls5qDJCufWvxwCFgfUnD3dy+g1d4roI+NPq3ApHVZ1mCnu+t LPweY+SfWan9Qp5DOyeU3e8mr73vc5EaNPXD7I5c2KZqqEUGQX3QIkU7UMMhyosN4JRW oQ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WgmL7wiC2YjeDJe1wUe7fwsu3cXvLhrHiYL0xNHFLHs=; b=mNC7hklXPzf/vKVKFm+iESlq4J+lZODc6CdPq2S4WNRrYA9K3TZWy6S4zJtqVlIN3a shbcRLPbmQ0wE9a1fvsmzR5X/fqb1FjwxCPmZcNmDv4/qu8mlB1E32V9qQFD0McAgvYF xV3sywRNTKOmS9GKdxvOe7Oy6EL3sg8f+26OhexU6by2BVOMjOrGqxPBGMPl8Z0cBYfN km5wWSCuG7PqJt9tihZrbqJ7iVvaYLpae5BYhJAgTpiPQFvfvgUqrSDh60HHnu+2Zrl9 cAutBi18GTnHraeiskeYmbzre8X4GBMVnA8Q7J3xD18RPREkoGhg6tFeIAbv9rMbRbew F51Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xGWMER6q; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si19229221edf.169.2021.08.23.23.47.43; Mon, 23 Aug 2021 23:48:06 -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=@linuxfoundation.org header.s=korg header.b=xGWMER6q; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233048AbhHXGqN (ORCPT + 99 others); Tue, 24 Aug 2021 02:46:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:44312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbhHXGqM (ORCPT ); Tue, 24 Aug 2021 02:46:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5D87F61101; Tue, 24 Aug 2021 06:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629787529; bh=Kubh2nvvp1Q6uolaYfDooSop8qoFrJBPwS451q3QqQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xGWMER6q+ZDV6Hm4DxrGKvKsHkFDy8BDt6PNPXTysOZDKEdnwernVRLzn7TS/3Evl GUhFInVIHNNsVxBZSDZ0VmXBTNgiiT2TJiC2djbzXkYTqJoXGLDf2G57b6ZSyxLmK9 P+TCRogG1zFDExrBgJV1rbTjS3lR406ezv9jq510= Date: Tue, 24 Aug 2021 08:45:25 +0200 From: Greg Kroah-Hartman To: Alexander Dahl Cc: linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alan Stern , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] USB: host: ehci-atmel: Allow enabling HSIC on SAMA5D2 Message-ID: References: <20210823140052.GA120849@rowland.harvard.edu> <20210824063702.24586-1-ada@thorsis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210824063702.24586-1-ada@thorsis.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 08:37:02AM +0200, Alexander Dahl wrote: > Unlike other SoC series featuring the 'atmel,at91sam9g45-ehci' USB EHCI > controller, which have embedded USB high-speed transceivers for each > port, the third port on the SAMA5D2 series is HSIC only. That HSIC > interface is not enabled after a power-on reset, but can be enabled by > setting a flag in a vendor specific EHCI register. > > The register offsets added to the new header file were compared with > those for the SAM9G45, SAM9X25, SAMA5D3, SAMA5D4, and SAM9X60 series and > there are no differences in the offsets or contents of those registers. > Which of those additional vendor specific registers are supported, > differs by SoC family. So while the HSIC enable feature is currently > only present for SAMA5D2, it probably does not hurt to set it on the > other families, hence no additional check for SoC family here. > > Tested on a custom board featuring a SAMA5D27C-D5M SiP connected to an > USB3503 hub with an upstream HSIC interface. > > Link: https://community.atmel.com/forum/sama5d2-using-hsic-under-linux > Signed-off-by: Alexander Dahl > --- > > Notes: > - for introducing new dt binding, would be nice to convert old one > first, probably needs split up and multiple iteration review? > - name of that new dt property? > - register definitions put to a separate file, like > 'drivers/usb/host/ehci-fsl.h' > - unsure where exactly in the probe process that register write should > happen, datasheet gives no hint > - should suspend/resume be considered? > > drivers/usb/host/ehci-atmel.c | 17 +++++++++++++++++ > drivers/usb/host/ehci-atmel.h | 19 +++++++++++++++++++ No need for a new .h file that is only used in a single .c file. Just put those few lines in the .c file please. thanks, greg k-h