From patchwork Tue Feb 25 19:40:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25305 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 75B5220143 for ; Tue, 25 Feb 2014 19:42:16 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id c9sf15143793qcz.11 for ; Tue, 25 Feb 2014 11:42:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=0IUeZTeyGiRvRJYrXM+XH2OA8IDlJFV2Mq3UWUQlSiE=; b=iH1JpaSHuQeVfUcQ2QokIDHV78fbUer1loDXDFJbVi1koIHEb8lEmg911zberyXdsc lpdslQcMnxuYEd+zruF9uvXIJEaF3V29aIk1LZIm3CF9hRg9ToZbSEJfYiDPaJyYuB4a Rw3rPozrH6vBf/ef+177fsInBqX31senoOqMtjflBad7DcgkFjLIZEOYHNDFXN94fHy+ sw9guFsjK8DCvUhnfhAY6vdJ+NSRYP185GkKHkMFXfXvvZPNjUAdSepum+gmm5zn+d5+ /SJZ9yFlyRcQHWg6pIZlaQyM1BGoLxgqgWtME2yIjYnxQ6GOXop8l9erDCYYx1cUSbNR VLNQ== X-Gm-Message-State: ALoCoQl3si8dVx/BHtu2ky91IhSyXP6x3gttIoiBglLa0nNdOqr5RQIZFveYhsMHuK4LHLpjgUDW X-Received: by 10.236.70.202 with SMTP id p50mr583219yhd.18.1393357336165; Tue, 25 Feb 2014 11:42:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.35 with SMTP id 32ls764467qgu.80.gmail; Tue, 25 Feb 2014 11:42:16 -0800 (PST) X-Received: by 10.52.181.199 with SMTP id dy7mr842195vdc.43.1393357335971; Tue, 25 Feb 2014 11:42:15 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id f7si7085747vch.99.2014.02.25.11.42.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 11:42:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db12so1014160veb.36 for ; Tue, 25 Feb 2014 11:42:15 -0800 (PST) X-Received: by 10.52.186.230 with SMTP id fn6mr2131462vdc.14.1393357335822; Tue, 25 Feb 2014 11:42:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp163108vcz; Tue, 25 Feb 2014 11:42:15 -0800 (PST) X-Received: by 10.66.164.104 with SMTP id yp8mr3507429pab.25.1393357334992; Tue, 25 Feb 2014 11:42:14 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tg2si3562791pbc.53.2014.02.25.11.42.14; Tue, 25 Feb 2014 11:42:14 -0800 (PST) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753416AbaBYTmM (ORCPT + 3 others); Tue, 25 Feb 2014 14:42:12 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:43624 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbaBYTmK (ORCPT ); Tue, 25 Feb 2014 14:42:10 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1PJgAIp014198 for ; Tue, 25 Feb 2014 13:42:10 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PJgAog026888 for ; Tue, 25 Feb 2014 13:42:10 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Tue, 25 Feb 2014 13:42:09 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PJg9SZ004157; Tue, 25 Feb 2014 13:42:09 -0600 From: Felipe Balbi To: Linux USB Mailing List CC: Felipe Balbi Subject: [PATCH 02/11] usb: dwc3: add has_hibernation flag Date: Tue, 25 Feb 2014 13:40:34 -0600 Message-ID: <1393357243-2958-3-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393357243-2958-1-git-send-email-balbi@ti.com> References: <1393357243-2958-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , this will tell driver that this version of the core was configured with hibernation feature enabled. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 02c4877..7737a57 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -635,6 +635,7 @@ struct dwc3_scratchpad_array { * @delayed_status: true when gadget driver asks for delayed status * @ep0_bounced: true when we used bounce buffer * @ep0_expect_in: true when we expect a DATA IN transfer + * @has_hibernation: true when dwc3 was configured with Hibernation * @is_selfpowered: true when we are selfpowered * @needs_fifo_resize: not all users might want fifo resizing, flag it * @pullups_connected: true when Run/Stop bit is set @@ -728,6 +729,7 @@ struct dwc3 { unsigned delayed_status:1; unsigned ep0_bounced:1; unsigned ep0_expect_in:1; + unsigned has_hibernation:1; unsigned is_selfpowered:1; unsigned needs_fifo_resize:1; unsigned pullups_connected:1;