From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 812CDC43334 for ; Wed, 8 Jun 2022 13:55:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240523AbiFHNzG (ORCPT ); Wed, 8 Jun 2022 09:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240570AbiFHNzB (ORCPT ); Wed, 8 Jun 2022 09:55:01 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 966E129F5AD for ; Wed, 8 Jun 2022 06:54:59 -0700 (PDT) Received: (qmail 440507 invoked by uid 1000); 8 Jun 2022 09:54:58 -0400 Date: Wed, 8 Jun 2022 09:54:58 -0400 From: Alan Stern To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH v2] usb: host: ohci-at91: add support to enter suspend using SMC Message-ID: References: <20220607133454.727063-1-clement.leger@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220607133454.727063-1-clement.leger@bootlin.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 07, 2022 at 03:34:54PM +0200, Clément Léger wrote: > When Linux is running under OP-TEE, the SFR is set as secured and thus > the AT91_OHCIICR_USB_SUSPEND register isn't accessible. Add a SMC to > do the appropriate call to suspend the controller. > The SMC id is fetched from the device-tree property > "microchip,suspend-smc-id". if present, then the syscon regmap is not > used to enter suspend and a SMC is issued. > > Signed-off-by: Clément Léger > --- > > Notes: > Changes in V2: > - Change check order in ohci_at91_port_suspend() > - Renamed smc_id to suspend_smc_id for clarity Acked-by: Alan Stern