From patchwork Fri Jul 15 09:13:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 72076 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp509923qga; Fri, 15 Jul 2016 02:14:48 -0700 (PDT) X-Received: by 10.98.41.198 with SMTP id p189mr19680994pfp.18.1468574088106; Fri, 15 Jul 2016 02:14:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t63si3175385pfa.44.2016.07.15.02.14.47; Fri, 15 Jul 2016 02:14:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932422AbcGOJOm (ORCPT + 5 others); Fri, 15 Jul 2016 05:14:42 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:36155 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932312AbcGOJOj (ORCPT ); Fri, 15 Jul 2016 05:14:39 -0400 Received: by mail-pf0-f169.google.com with SMTP id t190so39483169pfb.3 for ; Fri, 15 Jul 2016 02:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=mralMldkVpmIewIKNsUiU863kDMEjBharYrRSZHpCho=; b=K9o8Z8iuFx2OMjPUl7j0f6xfgvNT0gO+LocOPfhwl001DXCpu91pNZrHVW2nnXGsLU PCm8UkysQT5htrPmganNnWX7fAU/PZ+fWEi/MdSnd4HwqcnoWXaOwjAxV9zBm8wZbLXV J55g+us7yiliGNbfs7/kPA60GPcScIezE5PlI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=mralMldkVpmIewIKNsUiU863kDMEjBharYrRSZHpCho=; b=HmfAm30YhCz8j53WFaWhttIaeSiwOPUuzwdi48t819DTe0+U0/TspTH9THlwrVkuwf h3Z7tRAFtMvw9nHVQlJL/Qwxan+hfsG3DT2c6yk4oyysIce17w93+T/ueRq7hefBmknM ctRcuUFruUraFpWV13+neeyuYC4SBAlpjSX3FVf562udF3ADoOhjUQlS3P92JhJT1IV3 zo4HxagqfloyL2P3LsCc2PcdVum+rILNUCafTGgnSDf9iiWCJkjGyqKVQ6Sqh3cI6Sfd 5O5MpqWk6b9/yCX8glw2ZtQWu4uXaCloC3h4y/po1EJ0bGHkSzP8mt6XWTCavL/lX7Bv ceHQ== X-Gm-Message-State: ALyK8tJxlEMVYBesKzMmCh32xgUdJ6c0FyULTyXPeJ3BkZ6SNdeE3oI8LqIRX8b2XR2h8QgS X-Received: by 10.98.59.205 with SMTP id w74mr19775010pfj.156.1468574073918; Fri, 15 Jul 2016 02:14:33 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id da2sm1820199pad.3.2016.07.15.02.14.31 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jul 2016 02:14:33 -0700 (PDT) From: Baolin Wang To: balbi@kernel.org, gregkh@linuxfoundation.org Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 2/4] usb: host: xhci: Introduce one new 'usb3_slow_suspend' member for xhci private data Date: Fri, 15 Jul 2016 17:13:26 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Now some usb controllers (such as dwc3 controller) need 'XHCI_SLOW_SUSPEND' quirk when suspending the xhci, thus we need to add 'usb3_slow_suspend' member in xhci platform data to support this. Signed-off-by: Baolin Wang --- drivers/usb/host/xhci-plat.c | 3 +++ include/linux/usb/xhci_pdriver.h | 3 +++ 2 files changed, 6 insertions(+) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index e2e2487..162f17c 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -250,6 +250,9 @@ static int xhci_plat_probe(struct platform_device *pdev) (pdata && pdata->usb3_lpm_capable)) xhci->quirks |= XHCI_LPM_SUPPORT; + if (pdata && pdata->usb3_slow_suspend) + xhci->quirks |= XHCI_SLOW_SUSPEND; + return 0; diff --git a/include/linux/usb/xhci_pdriver.h b/include/linux/usb/xhci_pdriver.h index 376654b..1276de1 100644 --- a/include/linux/usb/xhci_pdriver.h +++ b/include/linux/usb/xhci_pdriver.h @@ -18,10 +18,13 @@ * * @usb3_lpm_capable: determines if this xhci platform supports USB3 * LPM capability + * @usb3_slow_suspend: determines if it need an extraordinary delay when + * suspending xhci. * */ struct usb_xhci_pdata { unsigned usb3_lpm_capable:1; + unsigned usb3_slow_suspend:1; }; #endif /* __USB_CORE_XHCI_PDRIVER_H */