Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp504210ybe; Tue, 10 Sep 2019 23:45:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYpMIWY/GoMXxnhlmi08yty3CHKJh0jwI06naNxjhlacXHRZk0mw7bncbSFhlvbBYGyujT X-Received: by 2002:aa7:ce89:: with SMTP id y9mr34041950edv.255.1568184303361; Tue, 10 Sep 2019 23:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568184303; cv=none; d=google.com; s=arc-20160816; b=eZe/GRAlrhS25Rvc/+YhosJ4oZ5DuRih0wuJRxvq3J3Ng0AWQs0Q9OY6a1lw9Yjhi3 7ey5Qe8hFEyNNe/g+WdhMuGBEuS9r0OG+amQN+ih8okHHIimbC3c2gMgVcDlvWZUcKrT SF8EE6HCBvh/m+VIQlT6v75fU99O4WJVpzTJE0/3SRnz+xH/B8QuqjBx47axnl/fSC4O wKmXXWVUvFTKULblGR9Q8exwNTiOrihRguKKAn6U50FVQbp3BNIE4u37cK9TRNGdmiKO NzrKshWl87BG1+N/e8kDKat+EtcRiYPj1deDIwrGUbNt7Cl7ELKFIYEWiB6HGu+JwkNQ iYpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr; bh=awiHN6x9LMuWHO7cNJO4TJ8K50D9n35doHvRg3+/o+0=; b=tqC4d3bV/w2fCxkQZAVSw/09jcFkPCRh2RJyIVZFctANfBIbV7otOU1k9WbPsSXDdn LiRLZSsTmBYFgkE2xP1rmnEs9Cq3/jSlzIYR1V3jC/9ijZaIuWtkcQlqD/f8Z0W2R+nt TPbRUBPOnY1xMMsKgsXnaWF/JXUqpWWj+sSDdOLeacrDnFY8NIVx0/THgMtD5cqW/Tlu OaA3B+v0ubAq5mKXAkJOG9atl3CyH6GGJzn1x7SdTVlt7fDyo7/ebL4DK6PfryLRqYkO 0JWQD2VUt45Hk+IL1n/IcKKufDHnucRVAQ1jfKdOh+6IvZWhK4uFceP7msjEZcTjv5kq hQ5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si5524704ejd.212.2019.09.10.23.44.39; Tue, 10 Sep 2019 23:45:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbfIKGme (ORCPT + 99 others); Wed, 11 Sep 2019 02:42:34 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:20595 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbfIKGmc (ORCPT ); Wed, 11 Sep 2019 02:42:32 -0400 Received-SPF: Pass (esa4.microchip.iphmx.com: domain of Nicolas.Ferre@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Nicolas.Ferre@microchip.com"; x-sender="Nicolas.Ferre@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa4.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Nicolas.Ferre@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa4.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Nicolas.Ferre@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: 5yWmCU/eC/kZOOl+i+gnJ/U/PEQsPNXfWGbS6VvSOyi7qIpmNwKVkAtlUZt8eMIHRW4z5E0NZL VNPHRXglOXu8BGiFyhzcE3Cqkw5WvkF/A96RuBlapFSoaJtTVYB1xRuMI1ZkomhmsnIvHmwcLT FrIUNiov7/8UYzUD4mbv64OSboKkRGJ3I8tMQhodKAENpaMT5nbvSPcAAPWWh2CKR0KD+mKn2V oEx2zMW/Sd5wMvbUkob1zaSE8IrvRKbp8dTjTxmUJ8QmshU3KTuN5i7ExQ1eV6/Z1O4rZ799Dx Qtw= X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="47503548" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 Sep 2019 23:42:32 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 10 Sep 2019 23:42:29 -0700 Received: from tenerife.corp.atmel.com (10.10.85.251) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 10 Sep 2019 23:42:28 -0700 From: Nicolas Ferre To: , , , CC: Alexandre Belloni , Ludovic Desroches , , , Nicolas Ferre Subject: [PATCH 2/3] USB: host: ohci-at91: suspend: delay needed before to stop clocks Date: Wed, 11 Sep 2019 08:41:53 +0200 Message-ID: <20190911064154.28633-3-nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190911064154.28633-1-nicolas.ferre@microchip.com> References: <20190911064154.28633-1-nicolas.ferre@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to completely remove marginal power consumption in PM suspend, we need to let the controller settle down before being stopped. In ohci_hcd_at91_drv_suspend() function, one additional delay is needed before to stop the clocks. Reported-by: Boris Krasnovskiy Signed-off-by: Nicolas Ferre --- drivers/usb/host/ohci-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index cb63bcd5049a..85d67fe42d59 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -628,6 +628,7 @@ ohci_hcd_at91_drv_suspend(struct device *dev) /* flush the writes */ (void) ohci_readl (ohci, &ohci->regs->control); + msleep(1); at91_stop_clock(ohci_at91); } -- 2.17.1