From patchwork Mon Nov 25 21:26:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 3234501 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 D7C5E9F3B8 for ; Mon, 25 Nov 2013 21:27:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 113AC20177 for ; Mon, 25 Nov 2013 21:27:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3D12C20176 for ; Mon, 25 Nov 2013 21:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752196Ab3KYV1J (ORCPT ); Mon, 25 Nov 2013 16:27:09 -0500 Received: from mail-bk0-f52.google.com ([209.85.214.52]:37559 "EHLO mail-bk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752308Ab3KYV1H (ORCPT ); Mon, 25 Nov 2013 16:27:07 -0500 Received: by mail-bk0-f52.google.com with SMTP id u14so2209221bkz.39 for ; Mon, 25 Nov 2013 13:27:05 -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=fminYORLjh8iinH++zgCD4DIzl7xzqPU2iRb80OALzzQUmv+1j2jE3m+xzZ5yV9/ey mykWCl/JOrRMJPsRN5Ea0L3ggql8iqbZDgjjpK7ka6m6O8mdALzp9Au6yplhJi5w4h4a 4oJTGcRlRvMHlFRxa/Q59UGAsPIVHrJhdoGRJ3nTP/whb4dJPC+BRCjargLKrPOOYkY+ /GQ54xqcl/9WJWS8FKOebFultAAl4v8Z7c8h6aWK/35YYaWOZ3/qquvJZqSMz53dgI5R PkTDs4jtpvvF28SexqHG54YhsjZjnykwPeKMYTPrOsBHBXqkAbWgGkkJ7HR5DVcxjqzK 5F3A== X-Received: by 10.205.33.16 with SMTP id sm16mr141013bkb.55.1385414825633; Mon, 25 Nov 2013 13:27:05 -0800 (PST) Received: from tamtam.fritz.box (p54AF4EE7.dip0.t-ipconnect.de. [84.175.78.231]) by mx.google.com with ESMTPSA id on10sm48242038bkb.13.2013.11.25.13.27.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Nov 2013 13:27:04 -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 v2 3/4] usb: musb: dsps: add {tx,rx}_mode to wrapper Date: Mon, 25 Nov 2013 22:26:42 +0100 Message-Id: <1385414803-13212-4-git-send-email-zonque@gmail.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1385414803-13212-1-git-send-email-zonque@gmail.com> References: <1385414803-13212-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,