From patchwork Thu Sep 28 09:46:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 9975611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AACF86034B for ; Thu, 28 Sep 2017 09:47:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BA1629541 for ; Thu, 28 Sep 2017 09:47:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FD9129546; Thu, 28 Sep 2017 09:47:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FE2C29541 for ; Thu, 28 Sep 2017 09:47:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752005AbdI1Jrl (ORCPT ); Thu, 28 Sep 2017 05:47:41 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55352 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088AbdI1Jqq (ORCPT ); Thu, 28 Sep 2017 05:46:46 -0400 Received: by mail-wm0-f68.google.com with SMTP id u138so1025844wmu.4; Thu, 28 Sep 2017 02:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eKJJGM2P5nU+uYh8EoUwdBNRZw/Ddz+yhB47PcZ+a/0=; b=vWx4FWkicTubDyGDjpCOulDSm0sWQ2yHje+kJgWMLiCNgdtfCiCPFFArEAJm+lsDsn UmvxoG9+G4KSAL8UadclAzzaBC4Js7DF73N3qf/GmXVcaGdJ+W4+JoAEkg1gDiNiHwyK 5dtXzfnqxWZbqdBaKATu1WwYCMo30+UIvgAh4LE/cE3itUmlQ2udgLBcPaV24o2Q7cNa eb6m2Bi3n0u/P8GZpbdboCSLGsMqimKCotmV17GxgCSFTDV+6UB5C2YA7UhINmOOnF5y vAJT5n2aqHuEQCWo40e01nbkI3hKjILzvsxTngFTCA9MpF722Q/PpH3PwtxoFt81wUx9 eb5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eKJJGM2P5nU+uYh8EoUwdBNRZw/Ddz+yhB47PcZ+a/0=; b=e1TpQcTujlL9k+kh54yF4vWy4rLcxFgqMo9B5MRZ+K9zTPbxCJXdJgDyASFUMHtxHU MetHuRv8+K2eLxgAaIb4jPNSYOJrZEcWIR9gvP+hKBlgf6c3cPIAqbF9L86+lxdpbq8V 8ysYx0iIPGR1c8XyErUcVxmLKpxgfqPHivDnPt7IsGgZgmu/f7/kfXinMiNOUCZ26KOs cP+i99Bi3OnbzSWmncULFWRglUj2pIa8i1jjig7cppbHFcRzeRYI4dPhMNTt2xI2dplh Qq88AmZVcxKglhamOynACgwOM3AS6aLdJB0Oe7oDAp+7v4vk9ag7BLyN5J9s3HecX4oU +Hww== X-Gm-Message-State: AHPjjUjD9M62+fJuLWu5CyjBUhiZ0c7MXYPXuAA2uAQ6wc7umDfJUN/V vNCo7GCJLRLA98JhhB7Y7W4= X-Google-Smtp-Source: AOwi7QCoxtRe7b/1eLS94XTVWGb7k6k8pu8dZyI9lz9BhQH9ZGTTsKPp2nRRiMq7ESBBvT+67BLp+g== X-Received: by 10.28.234.72 with SMTP id i69mr501777wmh.80.1506592004842; Thu, 28 Sep 2017 02:46:44 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id z10sm3272395wre.6.2017.09.28.02.46.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 02:46:44 -0700 (PDT) From: Romain Izard To: Boris Brezillon , Michael Turquette , Stephen Boyd , Lee Jones , Wenyou Yang , Josh Wu , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Thierry Reding , Richard Genoud , Greg Kroah-Hartman , Jiri Slaby , Alan Stern , Ludovic Desroches , Nicolas Ferre , Alexandre Belloni Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pwm@vger.kernel.org, linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, Romain Izard Subject: [PATCH v4 5/8] ehci-atmel: Power down during suspend is normal Date: Thu, 28 Sep 2017 11:46:24 +0200 Message-Id: <20170928094627.31017-6-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170928094627.31017-1-romain.izard.pro@gmail.com> References: <20170928094627.31017-1-romain.izard.pro@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index 7440722bfbf0..2a8b9bdc0e57 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -205,7 +205,8 @@ static int __maybe_unused ehci_atmel_drv_resume(struct device *dev) struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); atmel_start_clock(atmel_ehci); - return ehci_resume(hcd, false); + ehci_resume(hcd, false); + return 0; } #ifdef CONFIG_OF