From patchwork Tue Nov 26 12:31:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 3238961 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 22B6F9F3A0 for ; Tue, 26 Nov 2013 12:31:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C0B12015E for ; Tue, 26 Nov 2013 12:31:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1A850203C4 for ; Tue, 26 Nov 2013 12:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756727Ab3KZMbe (ORCPT ); Tue, 26 Nov 2013 07:31:34 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:44224 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756730Ab3KZMbY (ORCPT ); Tue, 26 Nov 2013 07:31:24 -0500 Received: by mail-bk0-f46.google.com with SMTP id u15so2553066bkz.33 for ; Tue, 26 Nov 2013 04:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BMOcr+HOkcpceGxi8IVYxy5QF6I+PRmIb1euxn/KkCg=; b=Ll/fwr0SmYyxLU1KeZl2C88AJOMa885VQFZASDH59tawyw/KM4XAJEXP6wafpeh6iq uU0SHNE1ymF9MFzlcaPlZrFq2TWOW5hkuFC/AN8RnZvgRRwdpf/A+taJHlMU0HK91qE0 4koVRLoT7OVskjoPYfksWcAr2ZZ4uGy9ZTKChbIXLB4xHjmbY2BMiCvkNyJOli5H49Pn VdsjMWAY0luC/4Vk4tpUIKwVYlLjnHPT1iByE5taa967QSI5i5tUWdnqY9DVKWsxxYWS VsdiXVHXUU9Voq1HJnx3ui+8/CqaBBoRhRYUGm4B8kOY86Id5bZgXRAgdrNgKWS5gayj UafA== X-Received: by 10.204.65.132 with SMTP id j4mr24170bki.138.1385469083477; Tue, 26 Nov 2013 04:31:23 -0800 (PST) Received: from tamtam.fritz.box ([2001:4dd0:ff00:9394:224:d7ff:fec6:a0ec]) by mx.google.com with ESMTPSA id b7sm50912648bkg.1.2013.11.26.04.31.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2013 04:31:22 -0800 (PST) From: Daniel Mack To: balbi@ti.com Cc: bigeasy@linutronix.de, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, neumann@teufel.de, Daniel Mack Subject: [PATCH v4 3/4] usb: musb: dsps: add {tx,rx}_mode to wrapper Date: Tue, 26 Nov 2013 13:31:13 +0100 Message-Id: <1385469074-19312-4-git-send-email-zonque@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1385469074-19312-1-git-send-email-zonque@gmail.com> References: <1385469074-19312-1-git-send-email-zonque@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP rx_mode and tx_mode need to be read at suspend time and restored on resume for dsps platforms. So add it to the wrapper struct first, and initialize the values. Signed-off-by: Daniel Mack --- drivers/usb/musb/musb_dsps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 1901f6f..e57d712 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -83,6 +83,8 @@ struct dsps_musb_wrapper { u16 coreintr_status; u16 phy_utmi; u16 mode; + u16 tx_mode; + u16 rx_mode; /* bit positions for control */ unsigned reset:5; @@ -605,6 +607,8 @@ static const struct dsps_musb_wrapper am33xx_driver_data = { .coreintr_status = 0x34, .phy_utmi = 0xe0, .mode = 0xe8, + .tx_mode = 0x70, + .rx_mode = 0x74, .reset = 0, .otg_disable = 21, .iddig = 8,