From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFC72C76186 for ; Wed, 24 Jul 2019 20:01:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B646D2173B for ; Wed, 24 Jul 2019 20:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998484; bh=HP3/a2oZIL74Jk6LrFo/J/9++kAyvAYs/l+UguAunkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=B4dbXhURZMKv3hMHG58T6kGRvlgOUXlobm7bnFKISvT1wDu29N5WLdpZuwfuwc7UM vLccWY9eYN0CCcGpe9pxilcNYUMtoqenv61EDtQdaWSFhZFjYThhC0yo9z5CHY8fg+ snA/sIP8FGsANf570eZEXFKbluG7n1j9ctQzfHWA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404295AbfGXUBX (ORCPT ); Wed, 24 Jul 2019 16:01:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:50086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405403AbfGXUBV (ORCPT ); Wed, 24 Jul 2019 16:01:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 218A622ADC; Wed, 24 Jul 2019 20:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998480; bh=HP3/a2oZIL74Jk6LrFo/J/9++kAyvAYs/l+UguAunkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OqGjFEgb+xmJFaMxvNLwQROwYJukh2E0ptcje7+TkJh6B3RvZWeUazgkBvrwINwe8 kXX/IDD07+cX5+NMoIx2jzqbLRhiiYlqrGiP7omq/Gdqoj0NBx9UW4b4WJbR5usaHQ gnNlJyVEy4YtvSYjKZp6Mn/V0MAZuL3osAxW++9E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Hellermann , Paul Burton , linux-mips@vger.kernel.org, Sasha Levin Subject: [PATCH 4.19 001/271] MIPS: ath79: fix ar933x uart parity mode Date: Wed, 24 Jul 2019 21:17:50 +0200 Message-Id: <20190724191655.386114701@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org [ Upstream commit db13a5ba2732755cf13320f3987b77cf2a71e790 ] While trying to get the uart with parity working I found setting even parity enabled odd parity insted. Fix the register settings to match the datasheet of AR9331. A similar patch was created by 8devices, but not sent upstream. https://github.com/8devices/openwrt-8devices/commit/77c5586ade3bb72cda010afad3f209ed0c98ea7c Signed-off-by: Stefan Hellermann Signed-off-by: Paul Burton Cc: linux-mips@vger.kernel.org Signed-off-by: Sasha Levin --- arch/mips/include/asm/mach-ath79/ar933x_uart.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/mach-ath79/ar933x_uart.h b/arch/mips/include/asm/mach-ath79/ar933x_uart.h index c2917b39966b..bba2c8837951 100644 --- a/arch/mips/include/asm/mach-ath79/ar933x_uart.h +++ b/arch/mips/include/asm/mach-ath79/ar933x_uart.h @@ -27,8 +27,8 @@ #define AR933X_UART_CS_PARITY_S 0 #define AR933X_UART_CS_PARITY_M 0x3 #define AR933X_UART_CS_PARITY_NONE 0 -#define AR933X_UART_CS_PARITY_ODD 1 -#define AR933X_UART_CS_PARITY_EVEN 2 +#define AR933X_UART_CS_PARITY_ODD 2 +#define AR933X_UART_CS_PARITY_EVEN 3 #define AR933X_UART_CS_IF_MODE_S 2 #define AR933X_UART_CS_IF_MODE_M 0x3 #define AR933X_UART_CS_IF_MODE_NONE 0 -- 2.20.1