From patchwork Fri Feb 2 21:24:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamseel Shams X-Patchwork-Id: 196130 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp812111dyc; Fri, 2 Feb 2024 18:21:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNAR5GPKCiS4z/i62hFoHJMzWd1yj8iJgv9kh4mLduX0ntHiug3pIzzDuC2WILA2/w+Zrp X-Received: by 2002:a05:6a00:390a:b0:6df:fb4f:ab28 with SMTP id fh10-20020a056a00390a00b006dffb4fab28mr3238824pfb.14.1706926879599; Fri, 02 Feb 2024 18:21:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706926879; cv=pass; d=google.com; s=arc-20160816; b=BbAEbWVQ3726+VtuwAreRTbBfL1s+cM8JbZ2WEkR4fgjNrCjJBNEEzt5N/EabBXFVk lMLZCgL2D8qfy4JvrAJw5W1OKZzkEYi3dk7xcv66jkjw0NjOWrhsxDxu6XBaoP3CcBQ7 EPh50Xa9MEC+R+3TpE6/cVYXyin6OOZJBuLDaCHVUttrV5sYTDYiKz6sGDei3liwmVQ7 sU2LlXGeBIgmA3y55+/eVIJcBv/WfL5GUvPXxjkZm4vv8FXZiVhc/rVfXhnq4j2iln+g ftlbqd5pAYgaus8z36q992tFXYLVOMbxnj3PaV4CQ9A4mEbWfEF+ZFYDjjXCb4GLxOOs 2FDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :dlp-filter:cms-type:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=VKWOrraSGT+Gzd2NQjMMwCtPcf85H8O4/u9KpUJECSg=; fh=/vQEn2i/o/cW7jLTEVyYBJAXV2Yc3YCJhjKcsuLglI4=; b=A1QqqrOcHEPIaPVdLbw3jZpttQaBAGooVn2+Lwr5auS0Ntd7CTm6FFm4O6p00OEPHn +e6ZQu1vQlZ0SieJj6hu+pueyQ+RjDgcZIFD7zG983DAsjcAc8OYCHcwGpe94lu3bN+W sCSungMGoqVhFz7i5dmx6+JYjq5OhiyG/YZ0Xw5dyz2r1B7xlExp10P7RedfxZb5t1+e iojOT5x1bqAo+/erXjxz5D6xw+RtDTtatLagKSzkSOxXWfHT1gsPn30FEhGhwn1nxnu6 7Oe40G6CtokZGVtVMLqhEqgWPTznqsvJ/iwnbwMhTq7eZOjHpwk7WFsNIYLhQ6M467k1 8Obg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CjL1dJsd; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-50822-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50822-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=1; AJvYcCVfnzRKf8XL8zumT36Qbu+2lWr5XpT9KHxgagegPAw4Q76D/THgSTDZ3HncxYFB3XbOQtWkAuPgnyOmnieXo3yaTRLhmg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x4-20020a056a00188400b006dbd09069bcsi2409950pfh.197.2024.02.02.18.21.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 18:21:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50822-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CjL1dJsd; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-50822-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50822-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 56B4A28A239 for ; Sat, 3 Feb 2024 02:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2E755244; Sat, 3 Feb 2024 02:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="CjL1dJsd" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 3E34B612B for ; Sat, 3 Feb 2024 02:21:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706926866; cv=none; b=bK5QCvgYyT80ReUv3GcUau0ziropLXa9iqdkEA9EjAw8Gq7xrkUt9xiS7MiGwrIW6fX1/736i+2fAO98c4qLRCRhpphmu2NvV5VbaiXeQb5A7VYoRLY0MkYudeex9z+Ce+8y6u6Gy6fM0rSjTINhnIASh3t+Wy5H+tDDEh2xo44= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706926866; c=relaxed/simple; bh=wPUk1BPhWZU4IVetHCywU4mKyGrBFvnVln1QytgmoUQ=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:References; b=h/mIGGMUnSxEatJ98OzIcPufWyJmFXkyqoSwSk8QIZnT2Qw+WL/YfggDxyZpG1U/0FQabtxs/UcjCk/gAKgmbVzRWvLRlX53//IrX015F+TbvDlhyEDHic87WMTErVkftkZTipFkOXLdbQop95NDb6dljmGdaVWtW6b6BzAvy94= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=CjL1dJsd; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240203022056epoutp044716ea01a6ae7cf4e322ff1763dd1307~wOO6dGqQ-2307123071epoutp04H for ; Sat, 3 Feb 2024 02:20:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240203022056epoutp044716ea01a6ae7cf4e322ff1763dd1307~wOO6dGqQ-2307123071epoutp04H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1706926856; bh=VKWOrraSGT+Gzd2NQjMMwCtPcf85H8O4/u9KpUJECSg=; h=From:To:Cc:Subject:Date:References:From; b=CjL1dJsdRZ3NKEh8TMsCUnpw5c+vgfe1igpulgJSZOzhK8FIPoCu/az9UGCmUkuxm 9HA3mc0FKdhRM3uFexhl8jl9Y8U1toKJP/FPBgtDYfTtDCobK6+58kqM07uP683jGi kCB+ku1mu0jbdXIzXU7Z/H5keyRqlo8CqL9xq+AA= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240203022055epcas5p2ff1cb017c7ea0a608c725fc0a6238787~wOO6CSq8Q0473604736epcas5p2q; Sat, 3 Feb 2024 02:20:55 +0000 (GMT) Received: from epsmgec5p1-new.samsung.com (unknown [182.195.38.177]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4TRbwQ1dWPz4x9Ps; Sat, 3 Feb 2024 02:20:54 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmgec5p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 5A.A2.19369.603ADB56; Sat, 3 Feb 2024 11:20:54 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20240202212456epcas5p15589813cd79526e9d0c444082e2f0e51~wKMe2a4fu2319923199epcas5p1c; Fri, 2 Feb 2024 21:24:56 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240202212456epsmtrp225338eb9a31b5ce02096033e4d2a6fea~wKMe1srJ10549205492epsmtrp2Z; Fri, 2 Feb 2024 21:24:56 +0000 (GMT) X-AuditID: b6c32a50-9e1ff70000004ba9-2e-65bda3061007 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id 0B.43.18939.8AD5DB56; Sat, 3 Feb 2024 06:24:56 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240202212455epsmtip1c148fc79a26232a10e5b2b1a89409868~wKMdBvRWu2776927769epsmtip1C; Fri, 2 Feb 2024 21:24:54 +0000 (GMT) From: Tamseel Shams To: alim.akhtar@samsung.com, linux-fsd@tesla.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Tamseel Shams Subject: [PATCH 1/2] serial: samsung: honor fifosize from dts at first Date: Sat, 3 Feb 2024 02:54:47 +0530 Message-Id: <20240202212448.74840-1-m.shams@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBKsWRmVeSWpSXmKPExsWy7bCmhi7b4r2pBs3XOC0ezNvGZrFm7zkm i/lHzrFaNC9ez2bxbq6MRd+Lh8wWmx5fY7V4+Crc4vKuOWwWM87vY7I4s7iX3eJu62J2i9a9 R9gdeD02repk87hzbQ+bx/65a9g9Ni+p9+jbsorR41/TXHaPz5vkAtijsm0yUhNTUosUUvOS 81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgG5VUihLzCkFCgUkFhcr6dvZ FOWXlqQqZOQXl9gqpRak5BSYFOgVJ+YWl+al6+WlllgZGhgYmQIVJmRnzNtkVLCIp+LF7LQG xq1cXYycHBICJhKtN66xdTFycQgJ7GGUWHP3MyOE84lR4t+eOcxwzs1bU1m7GDnAWhr2B0HE dzJK/O/bxAThtDJJbJ68kw2kiE1AU+L4eW6QuIjAJkaJaVPfgk1iFjjDKHGhYz0zyHJhATeJ /rnLwGwWAVWJ30/3sILYvAIWEhO3nWCEOFBeYvWGA2DNEgL32CV2r+9ghUi4SCxYc58ZwhaW eHV8CzuELSXx+d1eNgg7XWLuw14mCLtAYtmu71A19hIHrsxhAbmUGejS9bv0IcKyElNPrQMr Zxbgk+j9/QSqlVdixzwYW1Hi/+5+qDHiEu9WTIE6x0PiwA8IW0ggVmLjwXOsExhlZyFsWMDI uIpRKrWgODc9Ndm0wFA3L7UcHlHJ+bmbGMFJUCtgB+PqDX/1DjEycTAeYpTgYFYS4Z0gvDdV iDclsbIqtSg/vqg0J7X4EKMpMNAmMkuJJucD03BeSbyhiaWBiZmZmY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MBUqrC3j9ymoK Z9pM8/39zHyDQtNdz/4rMhk3PeUf5wsYmOYd+CYbXvKbd33Kby+27t1a1w9uCIme4nPsv3/p OdYQHZWMf8vOv/cV9fo+daFAq0RZzIdHt4+Ueuof/PGfeb7dGUf55YdS7f13185KY5WbttDw TrG/e1zISqUzsyoT7y912z/Zuu5g+oILl1deSjlx+XD7/xs8fRWL+VuuartvmmT/NNq6UW/m Zr1vDV0m7+/Yizh/qFYLcl63T5Sz7NXEwEcsR3yClViKMxINtZiLihMBVCpzwLECAAA= X-CMS-MailID: 20240202212456epcas5p15589813cd79526e9d0c444082e2f0e51 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240202212456epcas5p15589813cd79526e9d0c444082e2f0e51 References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789842559718921837 X-GMAIL-MSGID: 1789842559718921837 Currently for platforms which passes UART fifosize from DT gets override by local driver structure "s3c24xx_serial_drv_data", which is not indentded. Change the code to honor fifosize from device tree at first. Signed-off-by: Tamseel Shams --- drivers/tty/serial/samsung_tty.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 71d17d804fda..e4c4c9f4f9b0 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -1990,8 +1990,7 @@ static int s3c24xx_serial_probe(struct platform_device *pdev) } if (np) { - of_property_read_u32(np, - "samsung,uart-fifosize", &ourport->port.fifosize); + ret = of_property_read_u32(np, "samsung,uart-fifosize", &ourport->port.fifosize); if (of_property_read_u32(np, "reg-io-width", &prop) == 0) { switch (prop) { @@ -2009,10 +2008,13 @@ static int s3c24xx_serial_probe(struct platform_device *pdev) } } - if (ourport->drv_data->fifosize[index]) - ourport->port.fifosize = ourport->drv_data->fifosize[index]; - else if (ourport->info->fifosize) - ourport->port.fifosize = ourport->info->fifosize; + if (ret) { + if (ourport->drv_data->fifosize[index]) + ourport->port.fifosize = ourport->drv_data->fifosize[index]; + else if (ourport->info->fifosize) + ourport->port.fifosize = ourport->info->fifosize; + } + ourport->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_SAMSUNG_CONSOLE); /* From patchwork Fri Feb 2 21:24:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamseel Shams X-Patchwork-Id: 196131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp812190dyc; Fri, 2 Feb 2024 18:21:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IErMSMG72mqiq4+FpXsvboPFQ2pX3oC4ZyZOJo2EduXA5Fx2n+DrwFXOKOpVe9UVD8rq6Ws X-Received: by 2002:a05:622a:312:b0:42b:edde:4460 with SMTP id q18-20020a05622a031200b0042bedde4460mr54756qtw.46.1706926897173; Fri, 02 Feb 2024 18:21:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706926897; cv=pass; d=google.com; s=arc-20160816; b=K2lXhnOtbNBBNvVWIDps5xhRxOnHeAgX7yWWr7TRjWudX5szen1LvwiJB+9TN+FEZR fAKwn5qHsnO0AMP8uqUyWXdVhHg/BJYC4q1E0FU3ery7Gzt/lcqPRinoWavH/2UkkP03 gImynVjbkU2UcmRTGQ3fYgjxbM49OoDY8r1ZfeiRK6uEcQho5f2Kmvy2iEVN86d8y4RM lddQQ3hI8kgIb+oNbapFE4V02ITtoAMYUwPpnYzPurzXRZ2gdmtdlvLMseazFy68BFCl vHSKGidilLfFVW4Ht2eBuRDiHjKs9eMroZ+YC6v/bTKkj1Ix0cWsx4unH0XOgxVRcWzU oK+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :dlp-filter:cms-type:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=rTfeTZ1ggn+RSJzom8PUIzN6CDAju1vOdXUC/7MJkyo=; fh=zIeY+slQPcNMs2JinskGfSmvlSia0d3pZpl4wt3XnhE=; b=XCmFrLenlrat5NqsIHPYE9XzqxvlVJmHs32lhx2ZTDYXDm6sHboOitcXrrRwOphm3U YTQ12FDsP96V6rQcsSMdET+iK+cTSbFsUAF2tgpxvozW4Udw3RzvknMtgFJ+6G8jGH8A mKTqv8PgKg2YrHI6oiifxslUMbzVBVdHdPKQpPu/PkYe+2PeDnU825L2wW6sCPwmel9p CNe87nMWJLXV/smWNCEpmdRUsSjBK3yU03deY9aHxsu6Eo3f0IIaZj1ksJ/ZO52WZQUA hw5oJ7AiboctBBxN4R7G2H0Pg3ON2OrFf4iyHuBwOdHN6Cpc0cD0fX55JAEHyBJT5Jsd v4LA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Z7eg7EEI; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-50823-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50823-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=1; AJvYcCUjYSP63XbGcMig3N5LKVaTLGRrvxSdOxtmcYB9DAvjuuYLHWhjVRe9goFGNsAlPOxBVOUtsiRcNJ9AnjwIr2qsAoPGMA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b10-20020ac85bca000000b0042aa4381f7esi3448243qtb.3.2024.02.02.18.21.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 18:21:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50823-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Z7eg7EEI; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-50823-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50823-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E44481C21874 for ; Sat, 3 Feb 2024 02:21:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E4E379D0; Sat, 3 Feb 2024 02:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Z7eg7EEI" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 7DE4C7464 for ; Sat, 3 Feb 2024 02:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706926873; cv=none; b=SKW/N6aYH3IthFSwYs3ZOxSwV14p2rheu23ZYmJHTfT0b6QaPkN8UDXyfRCN2T1ux72CZkHzgFy/M6/OhlHRBFoaNEAP6Hmd40jbs01xpjlt0ZOs0NJpv2AXCa0kGZ1PPFAFehIEbj91oSxfDAFBJ2McKXgNW6hXY/OgaRAVsVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706926873; c=relaxed/simple; bh=MFOE+nUaSwDTYdIw9JQlFvPuda2tfFqnXYWlhZRBQXc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=Dn++tn/ojL1EnfzVLL33/+a3UHSCMCQ8sjQC5hvf+scLmrBoB4hzKJY/e8lvY2eR6F0hU0ZXTXr/d40jb/AJY9LWk3Lo0lHtC6ezl4TmN1oJF4Tau2BipJiI5Rv0PzXEIAkGHsmgMJilLyRMUZrykrVW9+I3IAR0VF8cVOoVNN4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=Z7eg7EEI; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240203022109epoutp044f805447934370874686a783ba038274~wOPGvz6jP2307123071epoutp04N for ; Sat, 3 Feb 2024 02:21:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240203022109epoutp044f805447934370874686a783ba038274~wOPGvz6jP2307123071epoutp04N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1706926869; bh=rTfeTZ1ggn+RSJzom8PUIzN6CDAju1vOdXUC/7MJkyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z7eg7EEIlK/mhLhTPJolRKNed07EJdR+lp40BnruGQIGEB9pw3t7q2D2hEsst3avh NhySbkh1qKjU9thDKpyT8OmcGWnr0ISBfRok6XXTHSHxXNaxVp9lm58wRwWUq2CQw6 NLBV4S1rDlxJDyG2jKHBOwB2RVmN8xjeV+sidu/Y= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240203022108epcas5p231f876cc1c931ed688c54c4274e2434f~wOPFaRoUJ1637916379epcas5p2E; Sat, 3 Feb 2024 02:21:08 +0000 (GMT) Received: from epsmgec5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4TRbwf6LwKz4x9Pq; Sat, 3 Feb 2024 02:21:06 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmgec5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 86.37.08567.213ADB56; Sat, 3 Feb 2024 11:21:06 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20240202212459epcas5p2e1703c35ebe9302ac5b2f3d3fcd853c0~wKMgv5ky52407524075epcas5p2x; Fri, 2 Feb 2024 21:24:59 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240202212459epsmtrp21812ca3f066d52542904ed328fd6ca46~wKMgvGfhC0549205492epsmtrp2a; Fri, 2 Feb 2024 21:24:59 +0000 (GMT) X-AuditID: b6c32a44-3abff70000002177-0a-65bda3128b3b Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 46.6F.08817.AAD5DB56; Sat, 3 Feb 2024 06:24:58 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240202212457epsmtip1d30d18afeb2388fde8b116ce91299907~wKMe7cwip2723127231epsmtip1g; Fri, 2 Feb 2024 21:24:56 +0000 (GMT) From: Tamseel Shams To: alim.akhtar@samsung.com, linux-fsd@tesla.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Tamseel Shams Subject: [PATCH 2/2] arm64: dts: fsd: Add fifosize for UART in Device Tree Date: Sat, 3 Feb 2024 02:54:48 +0530 Message-Id: <20240202212448.74840-2-m.shams@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240202212448.74840-1-m.shams@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjk+LIzCtJLcpLzFFi42LZdlhTS1do8d5Ug+lzdS0ezNvGZrFm7zkm i/lHzrFaNC9ez2bxbq6MRd+Lh8wWmx5fY7V4+Crc4vKuOWwWM87vY7I4s7iX3eJu62J2i9a9 R9gdeD02repk87hzbQ+bx/65a9g9Ni+p9+jbsorR41/TXHaPz5vkAtijsm0yUhNTUosUUvOS 81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgG5VUihLzCkFCgUkFhcr6dvZ FOWXlqQqZOQXl9gqpRak5BSYFOgVJ+YWl+al6+WlllgZGhgYmQIVJmRnnF92kK2gl72iafMt lgbGO6xdjJwcEgImEvs6m4FsLg4hgd2MEruaDzFCOJ8YJTqfbmCCcL4xSjRfPsoM07Lq8jeo lr2MEpev7oVqaWWS+P9jIpDDwcEmoClx/Dw3SFxEYBOjxLSpb5lBHGaBM4wSFzrWM4MUCQt4 SZxp4gaZyiKgKjF180w2EJtXwEKibUEv1DZ5idUbDoDZnAKWEqdnHW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WvFgA5HBxsApoSx89zg8RFBHYxStw/1gY2iVngEqPE648/WUGKhAW8JM40 cYMMYhFQlZi6eSYbiM0rYCHRtqCXGWKBvMTqDQfAbE4BS4nTs46yg9hCQDXPLz9gncDIt4CR YRWjZGpBcW56brFhgVFearlecWJucWleul5yfu4mRnAAa2ntYNyz6oPeIUYmDsZDjBIczEoi vBOE96YK8aYkVlalFuXHF5XmpBYfYpTmYFES5/32ujdFSCA9sSQ1OzW1ILUIJsvEwSnVwHSe 4Z+O5XGm1q/eK59eYDpg9uZv+34nuY8MUou3aZU9tpxy5cCm2vvPL0VlZZ2M5FQ5x3LjUINU G9OfpJ8PherSduR2Wl51Ytp8y2Gvyv9Kv8K711jOGQhd/GCj+v+Ri+SC7KWdKV+Nks4IWudK rfZNYWUQPL39s3SdV0OUZ346f0lyvVuNukrFfSeV9Az97iqfH3+5r7+Z4WRpobXmw7c7NsZz trV/OSZg5jn3ql2QSFFkzZYm2wOmOkKNQa1XhLqY6sV1W37xr9m8sl+tTVX35fIgP8HabCa+ WQ05vwTFTxfYG2e6lkzomd5u+srr6s81GlufK+2JF3z/7GacV7zH7GsS7zMP73AoDZ2lxFKc kWioxVxUnAgAvM6sY88CAAA= X-CMS-MailID: 20240202212459epcas5p2e1703c35ebe9302ac5b2f3d3fcd853c0 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240202212459epcas5p2e1703c35ebe9302ac5b2f3d3fcd853c0 References: <20240202212448.74840-1-m.shams@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789842578338197732 X-GMAIL-MSGID: 1789842578338197732 UART in FSD SoC has fifosize of 64 bytes. Set fifosize as 64 bytes for UART from Device Tree. Signed-off-by: Tamseel Shams --- arch/arm64/boot/dts/tesla/fsd.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index aaffb50b8b60..047a83cee603 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -601,6 +601,7 @@ clocks = <&clock_peric PERIC_PCLK_UART0>, <&clock_peric PERIC_SCLK_UART0>; clock-names = "uart", "clk_uart_baud0"; + samsung,uart-fifosize = <64>; status = "disabled"; }; @@ -613,6 +614,7 @@ clocks = <&clock_peric PERIC_PCLK_UART1>, <&clock_peric PERIC_SCLK_UART1>; clock-names = "uart", "clk_uart_baud0"; + samsung,uart-fifosize = <64>; status = "disabled"; };