From patchwork Wed Sep 27 08:35:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 819041 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="sJjF1DYN"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oHjLgRSY"; 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 3y2B5V5799z9t3x for ; Wed, 27 Sep 2017 18:37:18 +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=Mhxsf/pbPkI3SJQemZTuZV+K0AWm6ZqioXP3RxgxZgc=; b=sJjF1DYN2SRzcbP1djOVc7CLcn 1yhYCgqQlnvaHkeC3hHsY3aUMag8KOl+p1SNpoTOLFg1+ehq4fwXDQdTS3mG2Jqyzyx14DXp23MZS D1SH2N/aRn/tHJFFFCOF+oi73adciSpNJhHRYSwaFcS694Lgpd3qHCNxfxUgFjkeWVg5axd2Dr8Wi +Z1HLam3U1uLR2O8IIScO+ZSUHqGkBhlkJqQYtH+ohyXziv+FM1Q/4gT8nus78L0fAFEKga8hNVVC KlKUWb8sdafHcv/qwp+SOw5Jx3VaEd9NAUZ2FLGPnJtGN05uNN0paxvWXxuI41fg5u8tPbGmOn6Xo dmE5j1ag==; 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 1dx7q6-0003RG-Fw; Wed, 27 Sep 2017 08:37:06 +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 1dx7pa-0002lV-Oy for linux-mtd@lists.infradead.org; Wed, 27 Sep 2017 08:36:38 +0000 Received: by mail-wm0-x242.google.com with SMTP id q124so587376wmb.5 for ; Wed, 27 Sep 2017 01:36:18 -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=oHjLgRSYUMqb2Y38wrAll4VRaHsODKgmIZrb5Q6kBxAilAvtnw8If8pPIUm+0OsLHv GbVgmBBAjCtzJ6GGZw4NMTBFxP8GrfsUsiBbPFWRs/PzxN/FDPlcXtM0dNiuqg7tKyed tjD4KSdjSwb/cBanmbCE3+OfnQTA7lIncTEeKyAS0LGBlPwvx4LKbkIM8pFzDY89+/M4 rAt7Xa+JOji2MROOsDAWVQ9eEiPqwmSafW4mroWZHTFgh9bBDeAsxW5d6CV5ugLNVvEb BBHv55s4dvJJWQ+VQwCnrphCZ2+7EWyK9COOPD/R6hgB/K60TaUzfDs7eUZl5oGItEnB 9qsw== 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=MoBKiMzJ9oNrlE5Ph0z2owDBZ+1ahv01WYE+yMJNr0xLjqrwgIqYdNDam4S1uvR9Sn /CrA7Oy/teN9Y/Ajw5qfxZJD8/LuL7PuWXxB0lYyHpcgiA9YmKz89R/hRSSczDphbVwl WimlKZcR07x5VwvNQXfKx9oHyJ13p6rJYEkU2LBMX4p2hlK9HKH5A6YOTAq2QFPNE6NW AP5h+PnOW15zRbgsh0iZY5arw5rU/vgC6L14xa+XtOA/xsXXl6oNJlzzgsucQB9+xjW2 NiyvNmpUt+Aqq46JJZExrILKwOHWo46uXYlzGurF7gPpMgaZV077yNrLlZkNKA0w+2fR hBvw== X-Gm-Message-State: AHPjjUhz9lREH1iMIXx/GIynqHBMCPXCiGLkEmtQSMCXYflbmLy6+DwO Gfo7jIl0flQw7zKJ6Tbr5n8= X-Google-Smtp-Source: AOwi7QAv5KfxFnIFe6PWr5OPEhbTraPZeYD3w8K11cZj+kjpf/6Hv6yuG/jlnsD4822WpD3uiOhaZQ== X-Received: by 10.28.59.133 with SMTP id i127mr782369wma.154.1506501377065; Wed, 27 Sep 2017 01:36:17 -0700 (PDT) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id r6sm9699900wrg.40.2017.09.27.01.36.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 01:36:16 -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 Subject: [PATCH v3 5/8] ehci-atmel: Power down during suspend is normal Date: Wed, 27 Sep 2017 10:35:52 +0200 Message-Id: <20170927083555.16580-6-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170927083555.16580-1-romain.izard.pro@gmail.com> References: <20170927083555.16580-1-romain.izard.pro@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170927_013634_980773_CEB9F091 X-CRM114-Status: GOOD ( 11.29 ) 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-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 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