From patchwork Fri Sep 15 14:04:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 814297 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gHHa/imC"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vh9O4Tsy"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xty1B0tSmz9sPs for ; Sat, 16 Sep 2017 00:08:30 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ML9vWC0lwdIfG5z+vU41ldV0cd/NAIqXWcd23LdoxlI=; b=gHHa/imCWLp7DXT9LHog2QyzaF iNMYCnt0tB5bD4FXaf8Cky67QvZvlE0rVWYyLZXga5WpCVUBPhp/rfyhStL/WNIhBxn9qcYG8yT9P MKBdh3o8CX0a5VejFlKIkL4p0kzWkn+xijz8YE2q+DVIH7BlT/ABnO99EAEZz8rTT+AoJaB3loSJf uyUCECGYYfVdLOLHzAxk60gqz7xpOoOrPPiSfxIl6K7Fem3oI9el6341S+/tXkKXvf5UD7GDDMdBn K97YC4hdgoTg1N/AKt5pjeLj6wd4RZ/MuauP4q9DDzZ5w0XCAApVyBO3ZJysGI2a8Tj/HV7SSgOwE fAcMMRHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dsrI3-0007R7-W7; Fri, 15 Sep 2017 14:08:20 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dsrFG-0004on-GM; Fri, 15 Sep 2017 14:05:35 +0000 Received: by mail-wr0-x242.google.com with SMTP id p37so1366705wrb.5; Fri, 15 Sep 2017 07:05:15 -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=oXmKn1KofyZwcjnBOUm74XmkxLMf8Z2wlrhdx+nzJUc=; b=vh9O4Tsybr3bhL5ObliPQMU4ynOXM25qIyf623a8YIWFLByJDGLQOkVpjeoIKV+l5k /OcWc4knDbg7ZUchOQwsmDu08RLMR1wGB9JYDbR2YUGmaYSEDzicJyRSLKY372gP5S6j lVLJr+PBNEw+Hat2G/phHQbn3Cf5x7z34WlXDje7GzIlb/RhnXtK2i8ovoSfVtynj4Pf HYb64//DR1sa7+YjItgKGqORNYM3r4504TdZOOFTa5SbkrabyLx3qe8IVU50RIhcoBuG qOzLS/+M2FbE9zHldM3TtrRP3WFpSlM7KJkBIP0muj2hKyeLOuYWIHLyNaHeVHC2hBQ0 rX2w== 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=oXmKn1KofyZwcjnBOUm74XmkxLMf8Z2wlrhdx+nzJUc=; b=X0zySSnqlh9oMq232hNb9/1oMa1RdjPhwub534HTHx3Fc7lle68+l3F509zaPI4QDC 7ksxwAJGn06zh2rjEYwaUs61vtN6dZEn2kJV19Ef7BjVS0FYgr9KjtMmqG9Pk74j4tD1 z9GIp5EjMCNLSYwalcqJBb3u8BOO3SMK56BAqu1FiFDmhTDTP9C6JBc2yjmQ8yBmWhAe bMqqIqQ1IdgnyqaOCagk3ZpSaiS1SaMpBeUHVzCaIuHDJ6UmQzNc1HOMIdLfrvsa9+Ct L3gnRG7+us9YMXqhU9HpaF8/weVcZsoFxUqaoxk6GyZbA9YtqkhBhIugv0UW9M86QdBl 1Qqw== X-Gm-Message-State: AHPjjUiem1ZF03zqkznj8gmQwANG5hLIglmMv/R0XA2J7QDGwPdyVwqi ZCn8YxKvcPYM7Q== X-Google-Smtp-Source: ADKCNb7xekKSIL47MdNvldeVKMomoc2DB4T5GEPnXy5IO1uEfSOTCKq9skNfzLcZO+c/tsY4GPjtwA== X-Received: by 10.223.186.67 with SMTP id t3mr21517131wrg.22.1505484314064; Fri, 15 Sep 2017 07:05:14 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id 55sm1399225wrw.60.2017.09.15.07.05.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 07:05:13 -0700 (PDT) From: Romain Izard To: Nicolas Ferre , Alexandre Belloni , Boris Brezillon , Michael Turquette , Stephen Boyd , Ludovic Desroches , Wenyou Yang , Josh Wu , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Thierry Reding , Richard Genoud , Greg Kroah-Hartman , Alan Stern Subject: [PATCH v2 6/9] ehci-atmel: Power down during suspend is normal Date: Fri, 15 Sep 2017 16:04:08 +0200 Message-Id: <20170915140411.31716-7-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170915140411.31716-1-romain.izard.pro@gmail.com> References: <20170915140411.31716-1-romain.izard.pro@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170915_070527_361944_811B7C58 X-CRM114-Status: GOOD ( 10.90 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (romain.izard.pro[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-serial@vger.kernel.org, Romain Izard , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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