From patchwork Tue Jan 6 11:04:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 5573051 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 86CD9BF6C3 for ; Tue, 6 Jan 2015 11:04:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B53A0201FB for ; Tue, 6 Jan 2015 11:04:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7F2720123 for ; Tue, 6 Jan 2015 11:04:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754708AbbAFLEM (ORCPT ); Tue, 6 Jan 2015 06:04:12 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:60216 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754040AbbAFLEI (ORCPT ); Tue, 6 Jan 2015 06:04:08 -0500 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 06 Jan 2015 20:04:06 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 1512E44F69; Tue, 6 Jan 2015 20:04:07 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 11AA51800A; Tue, 6 Jan 2015 20:04:07 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 0E0EE18070; Tue, 6 Jan 2015 20:04:07 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id WAK01933; Tue, 6 Jan 2015 20:04:07 +0900 X-IronPort-AV: E=Sophos;i="5.07,707,1413212400"; d="scan'208";a="178097505" Received: from mail-sg1lp0087.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.87]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 06 Jan 2015 20:04:06 +0900 Received: from localhost (211.11.155.147) by HKXPR06MB328.apcprd06.prod.outlook.com (10.141.133.18) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 6 Jan 2015 11:04:04 +0000 From: Yoshihiro Shimoda To: CC: , , Yoshihiro Shimoda Subject: [PATCH v2] spi: sh-msiof: fix MDR1_FLD_MASK value Date: Tue, 6 Jan 2015 20:04:00 +0900 Message-ID: <1420542240-6548-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: SINPR01CA0015.apcprd01.prod.exchangelabs.com (10.141.109.15) To HKXPR06MB328.apcprd06.prod.outlook.com (10.141.133.18) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; X-DmarcAction: None X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(3005003);SRVR:HKXPR06MB328; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:HKXPR06MB328; X-Forefront-PRVS: 0448A97BF2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(6069001)(189002)(199003)(89996001)(50986999)(101416001)(106356001)(19580395003)(19580405001)(36756003)(92566001)(76506005)(42186005)(50226001)(4396001)(78352002)(87976001)(110136001)(46102003)(42382002)(97736003)(21056001)(33646002)(40100003)(64706001)(68736005)(50466002)(77156002)(31966008)(229853001)(48376002)(47776003)(20776003)(62966003)(99396003)(77096005)(2351001)(105586002)(120916001)(66066001)(107046002)(122386002)(88662002); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB328; H:localhost; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB328; X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2015 11:04:04.1284 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB328 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Since the FLD bit field is bit[3:2], the MDR1_FLD_MASK value should be 0x0000000c. Signed-off-by: Yoshihiro Shimoda --- Changes from v1: - rebase top of spi/for-next branch. (commit id = b47ed8d2ab075a700fd517c72b9d1729f94479ba) drivers/spi/spi-sh-msiof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 3f7ea2d..c58c249 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -84,7 +84,7 @@ struct sh_msiof_spi_priv { #define MDR1_BITLSB_SHIFT 24 /* MSB/LSB First (1 = LSB first) */ #define MDR1_DTDL_SHIFT 20 /* Data Pin Bit Delay for MSIOF_SYNC */ #define MDR1_SYNCDL_SHIFT 16 /* Frame Sync Signal Timing Delay */ -#define MDR1_FLD_MASK 0x000000c0 /* Frame Sync Signal Interval (0-3) */ +#define MDR1_FLD_MASK 0x0000000c /* Frame Sync Signal Interval (0-3) */ #define MDR1_FLD_SHIFT 2 #define MDR1_XXSTP 0x00000001 /* Transmission/Reception Stop on FIFO */ /* TMDR1 */