Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932090AbbEUKbG (ORCPT ); Thu, 21 May 2015 06:31:06 -0400 Received: from mail-bn1bon0079.outbound.protection.outlook.com ([157.56.111.79]:8376 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751385AbbEUKbD (ORCPT ); Thu, 21 May 2015 06:31:03 -0400 X-Greylist: delayed 843 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 May 2015 06:31:02 EDT Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; From: Subbaraya Sundeep Bhatta To: CC: , , , , "Subbaraya Sundeep Bhatta" Subject: [PATCH v2 1/3] usb: dwc3: gadget: Fix incorrect DEPCMD and DGCMD status macros Date: Thu, 21 May 2015 15:46:46 +0530 Message-ID: <1432203408-5482-1-git-send-email-sbhatta@xilinx.com> X-Mailer: git-send-email 1.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21558.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD002;1:LJEyrjPzMbH7Fsa+LtWAFi5E8qY7WrdEnbOqQXi+COEUFq7o1oPuIbblZ9YLyV5gprJV09SyBj/tOVuY1/6zeIoH8nomlWkquxZeUEcTFKQqSvZALxXeCZ5L3JhYOqDtZE8mvAD0X0v1Athn+YDkL1bVGgf2Jprv6KD/P85cIWpB1/m4sDVYKGxriETWE4bp9d5Hg3fVE5OWSJkpfWih5y+5wWUiSnN39lO7xayG3DTGsLNPuttOq0wQL8FJPcfGnVftSB2phYnU+1dOVGLSudkqLaKny7Hif0nEDdZZBetzFKkUbd5exDmSs4Mypxj7 X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(438002)(199003)(189002)(19580405001)(52956003)(6806004)(110136002)(5001960100002)(19580395003)(47776003)(87936001)(103686003)(33646002)(42186005)(64706001)(107886002)(63266004)(5001860100001)(50226001)(50986999)(5001830100001)(46102003)(36756003)(81156007)(4001540100001)(36386004)(86362001)(575784001)(45336002)(50466002)(77156002)(46386002)(62966003)(189998001)(106466001)(229853001)(92566002)(2351001)(48376002)(107986001)(4001430100001)(90966001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2FFO11HUB025;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;PTR:unknown-60-83.xilinx.com;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB025;2:75SSFigruMmwafPATaRctX3p6s7xrMsSloPPgzRX/wvanmFuRE3QUytIMtaOh0Q1;2:SOKKZZir47O2TjeqY2CII+f89m6Pkwo3AxNHiC/V4fTujeOPFaS8IeXV05kBVwYkttxp3N3vo8NR3lNMg6qiUNbHh8Dpw4hQ2mKfhkJUWJu1Ywjyk7D0MY56KyBoedc8/wj8ZrnSrg4a5u+5YRlKaDHlYXdK4qGpH9YUgyHUsNN5RjVZFWHAJxC7a2FZ/BAUqmtK3h9b4A/nknwQ/LBGl/S9G+tjHuvjetpOqY8Vw80=;6:eQn0uQMwShwONjNxYiAV5RaVRMtb8r3HptRPPSRDYAUCgtHxFgzGJgxicqp8Og+QZqaGQ/fRhpmXdeXEQmdns+1Hf0Jw+9PC33MqFY8ucRlU73GH/58nUagjIuiF0btE4lNLqvT84PXhhVbFMyfURT45/3XYd00q0nPkDy1r2OquIGdUZ8OoBdkdYOwmbgwxL2mdY93remVhwKc1hivlnXR8SOTqDMdJt2gncKQO+ZItykI8mIUV2GdsTXxEplysaZNP++RkHIFW3PRbtM7ZQe+999frVXCyhD+qkF6kEh6krXbj5K3KWrmVcUc5A7KAoUs51Vzk2hwjnEAE5qy0F+iOCBB/O2e2MuClP/bERxhCGoNhLKJ98YPL/5dYaypiOzZ1Wp19vr06RQSqohknXNLyE0u+oXJDatelx+Z77rmMuHhcEP7aQlIABNHzCfh9x/019fWHayi/KTNU2taPz3fb/ziGL+2cZkiNozUrFYu1VINh6UMxSV9oiaJwdX7F X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB025; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY2FFO11HUB025;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB025; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB025;3:8LPW9psVgHyV5dBK+A4S0g5AHlEqjPeG/ZzBchw0XOPXoIUz+p8HfQL4UERMhkznDu44DXa7nxxJgxXQBu3m5Xv/sPhsh9UJ6aIU+hmnYoaHNbK1IzRTT0+0Q0XmADIJinfDg9LuPFRpBTYaNVtP0a/KnNgLpcEmgxdoIGsoL/cIHSG//16hskGkIySgt/63LbJytfrl8Fhe6DU+0NwipUICBL0f+r9RSAV/7Wr31LhpycZZwFuP3XdEq0aa5RWnl4PTb8K5pHILPt69gjAju7BPNTmOi84Rfd8aYw+atUg= X-Forefront-PRVS: 0583A86C08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2FFO11HUB025;9:WCTEjXE9V7jXU42L4rEMcsSCqVBZOmgHAHqBeKHve?= =?us-ascii?Q?DxncA6Imnfyp0cIBGLHKZUXOI6+EE3UoIAb3FMuvv/kDo/EK9xTaSgjfUz0e?= =?us-ascii?Q?YcMLWMIWGbY/OHFSgwNW26YIZPwaKNcZIBH0km4+97sALk9H4QrEEHYtBuMW?= =?us-ascii?Q?J1KIqI3qzGZ3FvZi1qraEOX1VjdA+RtZg8xPwJ7V78fVBVszW0+qBESAxiev?= =?us-ascii?Q?aII76IHUiUb2T9gaMADOAgRe0sOFh59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kk=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB025;3:8jV48kVcdkkkmJSSV16VcIUseBYwDwn5p2dHeKFPrgElI3KP93hniST/s6L9pJFlrKn6Exet3E0WAsUelumOoJzTSqCaWF7pQnuHOMUi0iUPy7JKRdQantUl4wICm+UHj/jqyISZYopGlR+k2GjJNw==;10:19jsNeu0Zf0sAahpEoROE8MBqSm0inBXoOVH7PyqXCn/mUnWBvrHNVLYaxPaWQ007pMXXR/tTsDWH1TqDu10nmum9PYpk4hJr5abEhAsLZ4= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2015 10:16:56.4479 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2FFO11HUB025 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1503 Lines: 42 Fixed the incorrect macro definitions correctly as per databook. Signed-off-by: Subbaraya Sundeep Bhatta Fixes: b09bb64239c8 (usb: dwc3: gadget: implement Global Command support) Cc: #v3.5+ --- v2 changes: Added Fixes and Cc in commit message. drivers/usb/dwc3/core.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index fdab715..c0eafa6 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -339,7 +339,7 @@ #define DWC3_DGCMD_SET_ENDPOINT_NRDY 0x0c #define DWC3_DGCMD_RUN_SOC_BUS_LOOPBACK 0x10 -#define DWC3_DGCMD_STATUS(n) (((n) >> 15) & 1) +#define DWC3_DGCMD_STATUS(n) (((n) >> 12) & 0x0F) #define DWC3_DGCMD_CMDACT (1 << 10) #define DWC3_DGCMD_CMDIOC (1 << 8) @@ -355,7 +355,7 @@ #define DWC3_DEPCMD_PARAM_SHIFT 16 #define DWC3_DEPCMD_PARAM(x) ((x) << DWC3_DEPCMD_PARAM_SHIFT) #define DWC3_DEPCMD_GET_RSC_IDX(x) (((x) >> DWC3_DEPCMD_PARAM_SHIFT) & 0x7f) -#define DWC3_DEPCMD_STATUS(x) (((x) >> 15) & 1) +#define DWC3_DEPCMD_STATUS(x) (((x) >> 12) & 0x0F) #define DWC3_DEPCMD_HIPRI_FORCERM (1 << 11) #define DWC3_DEPCMD_CMDACT (1 << 10) #define DWC3_DEPCMD_CMDIOC (1 << 8) -- 1.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/