Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6967895rwb; Tue, 22 Nov 2022 23:34:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf52nu2i3KyVt8K1ooUdZibJN6/zgnuA0gr5GNNmcSxkPL8X/MFWksQLsY2ImJ6ZpLY8+8/3 X-Received: by 2002:a63:4c4b:0:b0:476:a862:53c1 with SMTP id m11-20020a634c4b000000b00476a86253c1mr16977858pgl.197.1669188859821; Tue, 22 Nov 2022 23:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669188859; cv=none; d=google.com; s=arc-20160816; b=USHzt1e3vV3JcIjPbksxqNRvrYX/HLmzjvv82bwiViALGrwRNqiQD/AKR1mg36kg9E 0o49QzgT+TEg9Ra+8OvuiVbiZkmRH+WbWfpSQ4TZVYfeybaRqpsa4+vIEROFRMjGRdvd i1xgBqSKHBlFm9qoIUiObJjivFCgDew5IFMMAi9Hf4f+61RfTQwQGXwCY/1QzBtU5e8b A7Zu+egrHFcPjaTROaquhGRYMr69VkjWZ0c4F/e7ywk80Ht96B6q7JlRZahH+iHlfRw6 K5ar0+J3UIsnITSBr7BHYvihCyD2FTJOS3d+hUekbhJYhRFJ/Vspn5cSDRv1/mLqcMZA pVlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OIYyALv6fQ3JaJSDccGn0Zm5VKzxXieKgqBDhfmERf8=; b=dBAuqGbMwbKp//Q/8I8sXccxaDA1XDG+RDvuo+8rbS8wFAxGLzIvCPvPtbzEVFtEDW 2Pd8FhnsxhT4tRiQJNQXMRwq3SvZccjyEGfINnpPBuMKs/s4tJl9iiqxcy0ieQiY5pLN uhfbCjhRcnZuJ29Ir69FKrrcpGb9fMnB4sIzXLymatmneHd+lbuhCgaLW0flOKLuy1w6 p3KGdS1lB866Oh5YsPMS/GQClkRncHZSkZ/Lx5nw7qIoJhrfJayMldyYUE0CW2sD6IM/ pM7y+DnILzaVUKXqu01/DlAA562KHjhNjsVrYTZzWuRx6qqkIPFE2lTnd+ulhSYmKB9z ui4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=RZcr20f3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 36-20020a17090a09a700b0020ad8a730dbsi1059094pjo.58.2022.11.22.23.34.08; Tue, 22 Nov 2022 23:34:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=RZcr20f3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236242AbiKWHQu (ORCPT + 89 others); Wed, 23 Nov 2022 02:16:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235612AbiKWHQt (ORCPT ); Wed, 23 Nov 2022 02:16:49 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21A956DCF5; Tue, 22 Nov 2022 23:16:48 -0800 (PST) Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 576808517E; Wed, 23 Nov 2022 08:16:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1669187805; bh=OIYyALv6fQ3JaJSDccGn0Zm5VKzxXieKgqBDhfmERf8=; h=From:To:Cc:Subject:Date:From; b=RZcr20f3rmxjLNXy72K3I1ssAqLpDp6cuc8zAiMNGampKqrIt2jqQTE168nJylOvu Q2rSgDvnbv7tp3Txcs7ZCgfhnwg9W+TstMJNFYlME1LzdTDuwPFCXc94hLasPbnIz6 0vWoCW0bbGfNJXQr1DorIsRIoG9n8bgvKL8+ul3JTxNKfqjPUup9Ql41EtDZSsRh3p gr2r8e2zhi0Khsmci6gQ8s+QNuJSw01zvlOIb3Y7zMXK0vJwOKeithboB50eEPotN3 vccv7+M1C5nM5N1S3oq8V0I2tUVEo8U+P/N5sMgs5rWh0ruoqzKES08WU0Mrf1bqBy vWDcPFED6STog== Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTPS id E3031180523; Wed, 23 Nov 2022 08:16:38 +0100 (CET) Received: by pollux.denx.de (Postfix, from userid 515) id A8CD41A86FB; Wed, 23 Nov 2022 08:16:38 +0100 (CET) From: Heiko Schocher To: linux-can@vger.kernel.org Cc: Heiko Schocher , Marc Kleine-Budde , Wolfgang Grandegger , linux-kernel@vger.kernel.org Subject: [PATCH v1] can: sja1000: fix size of OCR_MODE_MASK define Date: Wed, 23 Nov 2022 08:16:36 +0100 Message-Id: <20221123071636.2407823-1-hs@denx.de> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bitfield mode in ocr register has only 2 bits not 3, so correct the OCR_MODE_MASK define. Signed-off-by: Heiko Schocher --- include/linux/can/platform/sja1000.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/can/platform/sja1000.h b/include/linux/can/platform/sja1000.h index 5755ae5a4712..6a869682c120 100644 --- a/include/linux/can/platform/sja1000.h +++ b/include/linux/can/platform/sja1000.h @@ -14,7 +14,7 @@ #define OCR_MODE_TEST 0x01 #define OCR_MODE_NORMAL 0x02 #define OCR_MODE_CLOCK 0x03 -#define OCR_MODE_MASK 0x07 +#define OCR_MODE_MASK 0x03 #define OCR_TX0_INVERT 0x04 #define OCR_TX0_PULLDOWN 0x08 #define OCR_TX0_PULLUP 0x10 -- 2.37.3