From patchwork Tue Oct 8 08:34:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13826000 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C6A0CED27E for ; Tue, 8 Oct 2024 08:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC: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=8zKxcdLta4qDV+wM2xy+jpQ0e2wwoqG40rIpTeSenoQ=; b=KfKgyTN/03ERK/OJUAxHHamrZb aQzRWRUoGBw+D9I+ssgVd2LzeWnlU52TvZjuxFwRi0e6yDT1JIZ0W0e5IkCJDo45w7/pqIdaZHbyo hXGjDOq2MGNctWtMSE1nHoGwuRbskx43NzPj8Nl+ooo2ZuCd36wk67k8JFnthSpHCGRgf4Ckh44Mu mUTantdA1Kgi9ieY06G6iP7ynXaeUwLWe3sy6Ap2fS96mivyBAWB9IdDPBVi9/k78rcCl8sUm6hgd srWwYNDGoFrdx64325/G3nXxcYIs1d3kXK9AKIqokJMNDiaiy6x2SHqebhCCLgSN9d8wfRzi0L0Ck tdvkkELA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy5qK-000000057Vk-3t7v; Tue, 08 Oct 2024 08:45:20 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy5gj-000000054ZR-44vN for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 08:35:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1728376526; x=1759912526; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YhFfJuMCV4lTci8xB84pERvoub1l7ZXh/JbnRzKvkE4=; b=lb3UTfGpTw6qyhFkAz6mfXOtGzApLB3xMQ1VzXr7eP8xx3b63/Ij0up3 8hPwxoWR7j4TtMP2BWrKz/sc1i6GqAkBU54TEuft/GTwIfTuUqPdIFRLg izu6b42jJ1F76JQaP2q5ztJZAu8/is0tmzEpU8tRblAODzy7abEHmfeYg 2r7UtkDGPbqwYjZ+wHYldd9oA0poqLDcHg46QgHK950TDBhFiJ5dsd0Dx 0BD58qSWDoFjwcL5Ap4vQXA1itH8RBmUuRhUPf9nZg0Dxib8gg7k5H3+m J7dwKLo8oUFSq52TWFXqB9go1E7n/zwY6poGAbeozcMQ7a3QBVBFdXqtI w==; X-CSE-ConnectionGUID: VNNFp7ZBRESLYVTNhM1m7w== X-CSE-MsgGUID: VTUf1i0WR4iiR9cwNszzgA== X-IronPort-AV: E=Sophos;i="6.11,186,1725346800"; d="scan'208";a="33314300" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 08 Oct 2024 01:35:24 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 8 Oct 2024 01:35:04 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 8 Oct 2024 01:35:01 -0700 From: Mihai Sain To: , , , , , , , , CC: Mihai Sain Subject: [PATCH 1/2] tty: atmel_serial: print the controller version Date: Tue, 8 Oct 2024 11:34:59 +0300 Message-ID: <20241008083459.51249-1-mihai.sain@microchip.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_013526_093561_1EFB572D X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support to print the controller version similar to other at91 drivers like spi and twi. Signed-off-by: Mihai Sain --- drivers/tty/serial/atmel_serial.c | 2 ++ 1 file changed, 2 insertions(+) base-commit: 87d6aab2389e5ce0197d8257d5f8ee965a67c4cd diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 09b246c9e389..5f93974918c0 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -2970,6 +2970,8 @@ static int atmel_serial_probe(struct platform_device *pdev) */ clk_disable_unprepare(atmel_port->clk); + dev_info(&pdev->dev, "AT91 USART Controller version %#x", + atmel_uart_readl(&atmel_port->uart, ATMEL_US_VERSION)); return 0; err_add_port: