From patchwork Tue Jan 6 10:01:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 5572321 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B52ED9F50F for ; Tue, 6 Jan 2015 10:01:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D8656201DD for ; Tue, 6 Jan 2015 10:01:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BF72201CE for ; Tue, 6 Jan 2015 10:01:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754573AbbAFKBh (ORCPT ); Tue, 6 Jan 2015 05:01:37 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:15861 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752716AbbAFKBc (ORCPT ); Tue, 6 Jan 2015 05:01:32 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 06 Jan 2015 19:01:31 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 1AF3F4B53B; Tue, 6 Jan 2015 19:01:31 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id F37FE8002E; Tue, 6 Jan 2015 19:01:30 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id EB88F8002D; Tue, 6 Jan 2015 19:01:30 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id VAE22728; Tue, 6 Jan 2015 19:01:30 +0900 X-IronPort-AV: E=Sophos;i="5.07,706,1413212400"; d="scan'208";a="178094486" Received: from mail-sg1lp0090.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.90]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 06 Jan 2015 19:01:30 +0900 Received: from localhost (211.11.155.147) by HKNPR06MB321.apcprd06.prod.outlook.com (10.141.38.15) with Microsoft SMTP Server (TLS) id 15.1.53.17; Tue, 6 Jan 2015 10:01:28 +0000 From: Yoshihiro Shimoda To: CC: , , Yoshihiro Shimoda Subject: [PATCH] spi: sh-msiof: fix MDR1_FLD_MASK value Date: Tue, 6 Jan 2015 19:01:26 +0900 Message-ID: <1420538486-1420-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: HK2PR01CA0023.apcprd01.prod.exchangelabs.com (25.160.175.33) To HKNPR06MB321.apcprd06.prod.outlook.com (10.141.38.15) 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:HKNPR06MB321; X-Forefront-PRVS: 0448A97BF2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(189002)(199003)(77096005)(87976001)(42186005)(62966003)(77156002)(106356001)(105586002)(229853001)(107046002)(2351001)(19580395003)(122386002)(97736003)(21056001)(76506005)(19580405001)(110136001)(31966008)(66066001)(48376002)(42382002)(4396001)(50466002)(50226001)(46102003)(50986999)(92566001)(120916001)(64706001)(47776003)(20776003)(99396003)(78352002)(89996001)(36756003)(33646002)(68736005)(40100003)(101416001)(88662002); DIR:OUT; SFP:1102; SCL:1; SRVR:HKNPR06MB321; H:localhost; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2015 10:01:28.9285 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKNPR06MB321 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 Acked-by: Geert Uytterhoeven --- 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 96a5fc0..3ab7a21 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -82,7 +82,7 @@ struct sh_msiof_spi_priv { #define MDR1_SYNCMD_LR 0x30000000 /* L/R mode */ #define MDR1_SYNCAC_SHIFT 25 /* Sync Polarity (1 = Active-low) */ #define MDR1_BITLSB_SHIFT 24 /* MSB/LSB First (1 = LSB first) */ -#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 */