Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2187094rdd; Fri, 12 Jan 2024 01:55:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+Cy6ZmO7Xxkg4SorvdzPU/nrKnPXWqaJR+/vSgnqPrv/KOENT/L+5niGlS805Or+FOoyU X-Received: by 2002:aa7:c6ce:0:b0:557:dd03:cd with SMTP id b14-20020aa7c6ce000000b00557dd0300cdmr1169465eds.19.1705053318448; Fri, 12 Jan 2024 01:55:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705053318; cv=none; d=google.com; s=arc-20160816; b=lE4/vigbljYkeoW/d5RmJ5xcpSSBrkAaWaR2Sq8Xpwh0O9Mis17dj+BAcdquCUPnpR ewz5s7RWqympV4liOIu/XKQ11toMjtCR/MLt2WPpLOeAnDFuuetaVXphn9jmxG+W2yg6 NZDX+5+TQDL6VcocdImBau1LEmiM9tcgtYBUvyOGct1twfP7+Zgr6pdz2aSqSZk2dYhW DnPmDNzg76PDCm2H5FqQHF14yokm9KK5htWRftAEkyLZPt1gDPYWeDDWpa6srFVCDMA/ 2JTKhG4AGiKA6ets568RAdawFqY1oYI69pECFAx+9RmUC4HERUf/OaVha9fpriLVmilw DnmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BPsKvGwCvtumO70J1qmyLApJgoRqO+4A21EFeihpSLQ=; fh=bEiFvm1oFETnhthfmRO1fO/Guwyf6Wl65aY9TwW5Pe0=; b=NFAa7yoGAloDp5Yj3gJvWLMHLNlbBYiQW466PxTk7UMoXaKxACTXt0mga9QBQS/Vnt BnHfP93ioDZkRYqyxKwQtWh8/m9T2ZMePyS2NDIUgGg+W5LGptkmPfFlpvuKWOsn92PC EM6ZtRP8yYhwN9N1Mi/RK2g3b61u02aeGnonrI/PFye5nU4BQPzMMzOKciAmecYb3gvn zza2A+YIhLMYFB5PJNqLqMxJ9k+FhFE4dKT21KF7t9H9OmqQGAojBF0xTAvP0ScqPkWe XT3/DP42elEWj6SdwIzg3QlVwkBghX/KBVh6NB7YrmdnQZ6MEnacuiVC1sC3HfvnjVlF 9Qcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=UDpBVYMj; spf=pass (google.com: domain of linux-kernel+bounces-24529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24529-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l14-20020a056402254e00b00557675c369esi1321135edb.349.2024.01.12.01.55.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:55:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=UDpBVYMj; spf=pass (google.com: domain of linux-kernel+bounces-24529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24529-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 34A941F274CB for ; Fri, 12 Jan 2024 09:55:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FBE45EE81; Fri, 12 Jan 2024 09:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="UDpBVYMj" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16F565DF39; Fri, 12 Jan 2024 09:53:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40C8bCIZ006983; Fri, 12 Jan 2024 10:53:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=BPsKvGwCvtumO70J1qmyLApJgoRqO+4A21EFeihpSLQ=; b=UD pBVYMjDjnJNjr1QLk+RLRTvjibKIvdCLuilnRkyyJgm3Gi/laODH+O4E1JUI5yaG gQHjiwnHxh/9hHiKmX8gbrH5K4ma785VRVyx9ZjQGrApkAti0jW5dtdsB4dwRUoc APAdygVQYZGIoLo3i6jmR2coDidTUzcMytJRFmZPEAfRqdVzpF1sZCuav4FNB6Mv poEnr8Fv8UfCPRJjFDEUyqbVZ2YBfGUj7f/QZw7XkdKZjmKkzYuuAkfTZJQQcbO6 vqwB0IjhM9pAdxPyCHEemd+dmbnmYo8/vR5P9Vm7lq6R4O1O8eKw5v6h40899S9z yp/uSxoA+CjRQZ7OXkdg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3vk22u0bk5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 10:53:25 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 21C7A10004F; Fri, 12 Jan 2024 10:53:25 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1AF58208D4E; Fri, 12 Jan 2024 10:53:25 +0100 (CET) Received: from localhost (10.201.21.102) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 12 Jan 2024 10:53:24 +0100 From: Valentin Caron To: Greg Kroah-Hartman , Jiri Slaby CC: Alexandre Torgue , , , , , Valentin Caron Subject: [PATCH v2 2/4] serial: stm32: extend max number of U(S)ART to 9 Date: Fri, 12 Jan 2024 10:52:58 +0100 Message-ID: <20240112095300.2004878-3-valentin.caron@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240112095300.2004878-1-valentin.caron@foss.st.com> References: <20240112095300.2004878-1-valentin.caron@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-05_08,2024-01-05_01,2023-05-22_02 STM32MP25x got 9 instances of U(S)ART. So extend STM32_MAX_PORTS to 9, in order to handle all instances. Signed-off-by: Valentin Caron --- drivers/tty/serial/stm32-usart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.h b/drivers/tty/serial/stm32-usart.h index 8cecfdce9386..5ce1d3aae07e 100644 --- a/drivers/tty/serial/stm32-usart.h +++ b/drivers/tty/serial/stm32-usart.h @@ -183,7 +183,7 @@ struct stm32_usart_info { #define USART_PRESC_MAX 0b1011 #define STM32_SERIAL_NAME "ttySTM" -#define STM32_MAX_PORTS 8 +#define STM32_MAX_PORTS 9 #define RX_BUF_L 4096 /* dma rx buffer length */ #define RX_BUF_P (RX_BUF_L / 2) /* dma rx buffer period */ -- 2.25.1