From patchwork Fri Sep 8 15:36:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 811653 X-Patchwork-Delegate: boris.brezillon@free-electrons.com 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="LXybL6fp"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DXfbSxZE"; 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 3xphMX1v6xz9t16 for ; Sat, 9 Sep 2017 01:39:36 +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=LXybL6fpXWnnUrSoMyM/xZ/pN8 RLlhh4FlEbOp/tcz2TccoAzo5w9IMWkz1cRRvsts/zvVqzmM+wElGHgiAcCss6ZrUk+zZNh9hfiN4 Pm35YQhRgQIxw36Kux0DNJied6bYJGPH7N8DJrW36fB/grDpKgoWf1QCuUkp7/+dcFzFt/YOEk/nZ D8iiwnsmLzzKzWVPxZmQA5uER8QOz5CUhJwbM+muRQD8KNmBbfTjLb5LDUyyMU+9H8kDk9JSLkztd 9akTG62A3fDCoiaFBpyklvZcicnEj+dPDXDpvNvdCtmJfFqTrOK4v0DobQhqMRof+bvhpi1MR+h1z 1PgJbOaQ==; 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 1dqLN1-0007mK-1j; Fri, 08 Sep 2017 15:39:03 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dqLKi-00067u-Ou; Fri, 08 Sep 2017 15:36:43 +0000 Received: by mail-wm0-x242.google.com with SMTP id p17so1980946wmd.3; Fri, 08 Sep 2017 08:36:24 -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=DXfbSxZEy8jFYu5s+xHdTtKs2HdQC+F3zoo34yjXTO6AzxoM22A16esdLzhMWRlPVq qKRN9dUfjTM8DnKm2OWn1EAYbmNTf+q9Slu4VaH3ildxXGtRPoN13kq8P/mOcfM3QSlY IJgdZUks9k/6bN3impGPqQQhEYFGPu2cCctlJ60DP/DSWONjGbAOomlJLwcSqbS3q35k zzhDTuue7Oa5Y7AM/Ef8MYueOT4MyoZlVoVq70FKYDl3DhjlU+HHRKWLo3kMurwqjNob kM594mpasowPqzTcP2C0+WWXDLp/e3y7/2PoEuaraLD4cSByAIpnOwFBy//gjE0B4GwM QPug== 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=FptDDzkgh1J4Y1QDa3Es0YUdSue3hzuZ/0vcmtljqJyp+/hflSU7KlRbXzlgfWNko6 YSJ22GXbmXdajUBWcNWLE8n1VSZ6SMhmzk01ZQo/K27GEdqKwRKWvvZVMhAx+232cyac RpRIgD9AVecsz+RGzi6JWIjUh7w13u201sUm34vlY2I6GiGckDMRh0G2++5yT1SajGLY qs0n9o0TtUPfyo8EKufUckRFBD0xWU6k4zKhWYB5smpoREYFV/pB7ONQH5WrtudP51nb OlSrp3YFjCgAxqjSs7nEsMRwqi23x2xXNTL81LqO/VuFAqlco/Ztu99zwiWprIN9A7Ti 4Qag== X-Gm-Message-State: AHPjjUhq+1GNjv2w/Pn/jVO0kEXrRRyHsgJmvbv6F4e6eSsnO58W9ycH i5LHa0S0CPkQw0Hvg7ltVbo= X-Google-Smtp-Source: AOwi7QCHfWB3fmhi7W8FyXmwcl10k0C16EtosKFKOuS438wSvuUYxgsrACl579npoeQ0ysjc2d//gA== X-Received: by 10.28.9.137 with SMTP id 131mr1957482wmj.87.1504884983648; Fri, 08 Sep 2017 08:36:23 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id p199sm1689224wmb.28.2017.09.08.08.36.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Sep 2017 08:36:23 -0700 (PDT) From: Romain Izard To: Nicolas Ferre , Boris Brezillon , Michael Turquette , Stephen Boyd , Ludovic Desroches , Jonathan Cameron , Wenyou Yang , Josh Wu , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Thierry Reding , Richard Genoud , Greg Kroah-Hartman , Alan Stern Subject: [PATCH v1 06/10] ehci-atmel: Power down during suspend is normal Date: Fri, 8 Sep 2017 17:36:00 +0200 Message-Id: <20170908153604.28383-7-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170908153604.28383-1-romain.izard.pro@gmail.com> References: <20170908153604.28383-1-romain.izard.pro@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170908_083640_991730_6D435F1F 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:c09: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-iio@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 --- 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