From patchwork Tue Feb 21 12:03:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 9584351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1532B600C1 for ; Tue, 21 Feb 2017 12:06:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAF6B285FB for ; Tue, 21 Feb 2017 12:06:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFD3D287D2; Tue, 21 Feb 2017 12:06:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5CBA2285FB for ; Tue, 21 Feb 2017 12:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XI32cGm62mLDs+RLuIrQyclPsjqHa1kgcFMazRZVQ5o=; b=uoyUEWJoMWlMme Ac+1Qc6VpbqxwgAFkl5GE1q0OIUoYeUgKSFzZmT664oRZf2vDOrfsnbBEtlKLsnYjU1+ZzJ6oXVj5 xpM412cD+bQYLbFiE4SKyZJL8t6JXNWDqei1ibXCkfRnlZ17pxbYa+v+FVBqe6gHOroBXIWAPwBn4 lbNzIyK9h+LE3bXprRDTDgB74c1DrtipADCDdNfnrDuZFdanovTDkDpdM0WigD21u8b7WuayK3Rpq rqAZgIlGCco7V0CUjc53gzBcNDhUg1FthaYuurQHAkMuuOWycnQMQUZddfdM41urjD28iVdFngl2x Ke/pVGpz/9ZOMN5o0jtQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cg9Cq-0006b7-8k; Tue, 21 Feb 2017 12:06:08 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cg9BF-0004av-Vd for linux-arm-kernel@lists.infradead.org; Tue, 21 Feb 2017 12:04:34 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id AFCEA207E8; Tue, 21 Feb 2017 13:04:08 +0100 (CET) Received: from localhost (unknown [88.191.26.124]) by mail.free-electrons.com (Postfix) with ESMTPSA id 85B412045B; Tue, 21 Feb 2017 13:03:58 +0100 (CET) From: Alexandre Belloni To: Richard Genoud Subject: [PATCH] tty/serial: atmel: increase ATMEL_MAX_UART Date: Tue, 21 Feb 2017 13:03:56 +0100 Message-Id: <20170221120357.13623-1-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_040430_867283_DFC92E40 X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Nicolas Ferre , Alexandre Belloni , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The samx7 family uses the same UART/USART IP as the at91/sama5 families but has 8 of those. Suggested-by: Szemző András Signed-off-by: Alexandre Belloni Acked-by: Richard Genoud --- drivers/tty/serial/atmel_serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index f0d4894267c2..8cc152e67bfb 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -119,8 +119,9 @@ struct atmel_uart_char { /* * at91: 6 USARTs and one DBGU port (SAM9260) * avr32: 4 + * samx7: 3 USARTs and 5 UARTs */ -#define ATMEL_MAX_UART 7 +#define ATMEL_MAX_UART 8 /* * We wrap our port structure around the generic uart_port.