From patchwork Tue Feb 25 19:40:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25309 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2D2D920143 for ; Tue, 25 Feb 2014 19:42:26 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id o6sf3339669oag.10 for ; Tue, 25 Feb 2014 11:42:25 -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=HCTszNU8ne6GsQRH9rJQKU1NlpKHOImh/OdzepIQFQM=; b=CzwRV7cZO6LPOr/3WTV1eA/VzxjZutFEbnNF5NqWHDIK7zTiaSihJrY0J3tS7iMCvg ZHjibHNaGAEzXwbEaiOPFlq/Aa6QqIfnVyjC5osL4ogMxznJoaGcqwJ7rjciAvuqbEtL 7DWlZGWrHc1N9yVWxoM8mYxpFRGeTyQkwzmNbzS++C8AB0XIwnZ0PF5qdQBJcVSRmrIP rbbjtNGUlUUg2g5efhvlMwwHRanqHiTFdKUETp8Ks1L91IOfOpj119AtPIX/XTuTp3gC wnkQEtyuBOBy4b/oMeC/O/WsBSi5n8tXneYCZXJzbCO6anZQcTSdAR4fEJ407XLQkp1P DC5A== X-Gm-Message-State: ALoCoQlLUL2MUH2X0tt0hlqjnb0KY043u1MkVFawvntu2dEkLQZaVd+7ptff9dz77dWxBPJPt3JA X-Received: by 10.50.26.65 with SMTP id j1mr2185302igg.7.1393357345641; Tue, 25 Feb 2014 11:42:25 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.41 with SMTP id f38ls2483282qge.55.gmail; Tue, 25 Feb 2014 11:42:25 -0800 (PST) X-Received: by 10.52.118.242 with SMTP id kp18mr1969279vdb.27.1393357345504; Tue, 25 Feb 2014 11:42:25 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id gq1si7086342vec.99.2014.02.25.11.42.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 11:42:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id im17so7681907vcb.5 for ; Tue, 25 Feb 2014 11:42:25 -0800 (PST) X-Received: by 10.58.243.3 with SMTP id wu3mr2399696vec.12.1393357345398; Tue, 25 Feb 2014 11:42:25 -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 u4csp163121vcz; Tue, 25 Feb 2014 11:42:25 -0800 (PST) X-Received: by 10.67.5.131 with SMTP id cm3mr3591699pad.92.1393357343166; Tue, 25 Feb 2014 11:42:23 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id io5si4633375pbc.24.2014.02.25.11.42.22; Tue, 25 Feb 2014 11:42:22 -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 S1753527AbaBYTmT (ORCPT + 3 others); Tue, 25 Feb 2014 14:42:19 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:53839 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753421AbaBYTmO (ORCPT ); Tue, 25 Feb 2014 14:42:14 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1PJgBsi028777; Tue, 25 Feb 2014 13:42:11 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PJgBPQ005421; Tue, 25 Feb 2014 13:42:11 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Tue, 25 Feb 2014 13:42:10 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PJgACW020464; Tue, 25 Feb 2014 13:42:10 -0600 From: Felipe Balbi To: Linux USB Mailing List CC: Paul Zimmerman , Paul Zimmerman , Felipe Balbi Subject: [PATCH 03/11] usb: dwc3: add 'saved_state' field to dwc3_ep structure Date: Tue, 25 Feb 2014 13:40:35 -0600 Message-ID: <1393357243-2958-4-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.220.174 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: , From: Paul Zimmerman This extra field will save endpoint state when we're about to enter hibernation. It will be used later to restore the endpoint state when resuming. Signed-off-by: Paul Zimmerman 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 7737a57..43fe290 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -393,6 +393,7 @@ struct dwc3_event_buffer { * @busy_slot: first slot which is owned by HW * @desc: usb_endpoint_descriptor pointer * @dwc: pointer to DWC controller + * @saved_state: ep state saved during hibernation * @flags: endpoint flags (wedged, stalled, ...) * @current_trb: index of current used trb * @number: endpoint number (1 - 15) @@ -415,6 +416,7 @@ struct dwc3_ep { const struct usb_ss_ep_comp_descriptor *comp_desc; struct dwc3 *dwc; + u32 saved_state; unsigned flags; #define DWC3_EP_ENABLED (1 << 0) #define DWC3_EP_STALL (1 << 1)