Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1005610ybi; Fri, 2 Aug 2019 07:51:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUlIyHdnoPH06MxkLDk7Bvbyk8w7zLxGUzR5Ey3GaNYsdO5FMsjZWT251WFVi9lGqzC/Tl X-Received: by 2002:a62:5344:: with SMTP id h65mr60862476pfb.32.1564757462280; Fri, 02 Aug 2019 07:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564757462; cv=none; d=google.com; s=arc-20160816; b=hKjcNeoQX7oUlugxEoSHNo4JQ19IUMuBP4Qh5/s0qXF9v/D0O8feVb/zihuZB9VEOe LOop3gelR7DDFswOAV7RIaFOslXibVulx89TeIKfQXWRoIu3VQnUZo+Gde9Vafi96/Mk liTsUAcUqQ1w9hNVOUBHQbrvamWKKTZ8+IV0ZVQz/0NkbMlBktIprhOie/Tk8lpAbng1 uv3T7ZwxLZesYDC16h+teP8+OpRa/CaVjImH1dkqQQatTehiQhZQi2OibqwNwVdBlWm+ PnJlkZ8Pv74wb6khFBfxlFx63Pl5YtClPP7UoY8Yn5AFucIl8upEvas9W5rvjALBhkfb /paw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QgJvzcGk8M12gPshEa5Kc1IOInHgJhdp9fCvbvdx6+M=; b=YmqsT6Q0Dcq6vMZ/Un1rkZAqGMm9ov8DgIW1tTESuen0V7grWKedR/RkUzuN+2EhaE voOMaKKfUw0wwEbl8Lw7iKovp4h4wvf1Pro+hhai9d7F86irOfD439flpQy7vglem8Ef f+5m+KjSmVdMmnUoqSgLWgj+3IWow2b9RrHPDVjsaENz8XkbKRerFSV9WIiqTwZlu2as sWnMCkg8e7fmCKV2Mxl87ENbFoX+hz0+nGkTzNk4wXsXYE4xJoLKekyu5lred67L5ZXw D3f2ZVjywzpl4a+0Tkh6FW5Yswfn04UynKg8Yzjr5GTnE2Ti3Lrp/l8VlawBwf6SzAhf AJ/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="qfeMe/qc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o71si6856437pjb.8.2019.08.02.07.50.47; Fri, 02 Aug 2019 07:51:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="qfeMe/qc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388862AbfHBJ35 (ORCPT + 99 others); Fri, 2 Aug 2019 05:29:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:55200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbfHBJ34 (ORCPT ); Fri, 2 Aug 2019 05:29:56 -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 6EC9421783; Fri, 2 Aug 2019 09:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564738195; bh=HP3/a2oZIL74Jk6LrFo/J/9++kAyvAYs/l+UguAunkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qfeMe/qcYWtf53z3Z9dF+oxGOcJaUAjCrGcvyULlxDBqw36yQU/hChfAu0qTelaID AQinUj+FtVVIUkZhspjFMhGHrN/Vdn4Xy9kV9Z5cgxDvejZLF7uVIenpCf4bBryTIS npr/gwuhMBk+ptEwJPy9Nyab4WzCSqGcusck5tcw= 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.4 001/158] MIPS: ath79: fix ar933x uart parity mode Date: Fri, 2 Aug 2019 11:27:02 +0200 Message-Id: <20190802092203.934918516@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802092203.671944552@linuxfoundation.org> References: <20190802092203.671944552@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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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