From patchwork Tue Oct 8 08:32:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13825994 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 EC80ECED27C for ; Tue, 8 Oct 2024 08:42:45 +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=5iXHwxjrqBQK8sHr010QOJx/eXaFmBLOWZIE9cm3pZc=; b=MwHJYKkBECD8JY3X8ZxXLGRqyb eM9Z9IqjZw1DJb0OOGu72M9cVJdolnyNyl6XkmG43WJg0iBVYZ0uTINPRUjvKOg+YxFXW9fYCsTmH 4WwUY+ofenGSQTm/zB/KRk2ih7D5T0TcxJxsb9kPmlN7D36MRFKpeslWjEYwE4wMI29jKkp/Qz5i3 Tp1nowE+h43vSglqLumzaneUrDjSs0tfjkOdRLxKaOqzQv6enCgxht+y0Ox1knZZ7yaEs/yTwysUb AWPzG16mM/l4MbfNYLBb0fPH7sRpykVHzSiZ1zFFmAsnqqoFbZ9wPp/0A3BVIRb6g3KgwtTCbVPXR 8llokYpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy5nc-000000056YU-0qc7; Tue, 08 Oct 2024 08:42:32 +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 1sy5eL-000000053mF-3d68 for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 08:33:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1728376377; x=1759912377; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=C/9kjE0IKBLPyXAJuCEK/YE6AmWF7Huay4NBcgr0Q6Q=; b=YYPs+5jEsLC4KOAp177tZ3nFXAlqZLpz84eNEP49i1VnNlhLQFY//Tn4 ITZmBomAjR4lH+6/eJUM8lShXSGlKJThzt9ycbuemKNStwACSHXjkbhwo YSaSe5iIccImQZClW4/dDRwk1VFgyjXNrUppnU9nw8mOIv3OekQDt8baN 5btpbY+juOH4T7Q6FT/iM/2MFLDp7zyqPuQCP1PhhLS1IVH/P1JlYRbS1 ATAwrQLp4ft5do0c8YZtpTm98jIshWTi0ZE8+DlDIXqi9u1/7dd9PV8re LOUam2wIO7qGHTFIVaXGk7Ox6Pqgq574CdEK14yzMJ/6L++XvZt4p5ahk Q==; X-CSE-ConnectionGUID: k+6XvfjjS8Wv4g1uerPOyA== X-CSE-MsgGUID: +NJs6W61QiSTcmlgdVmqrg== X-IronPort-AV: E=Sophos;i="6.11,186,1725346800"; d="scan'208";a="32554911" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 08 Oct 2024 01:32:56 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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:32:43 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 8 Oct 2024 01:32:42 -0700 From: Mihai Sain To: , , , , , , CC: Mihai Sain Subject: [PATCH] spi: atmel-quadspi: Print the controller version and used irq Date: Tue, 8 Oct 2024 11:32:26 +0300 Message-ID: <20241008083226.51163-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_013258_168716_4C86F180 X-CRM114-Status: UNSURE ( 8.71 ) 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 and used irq similar to other at91 drivers (spi, twi, usart). Signed-off-by: Mihai Sain --- drivers/spi/atmel-quadspi.c | 2 ++ 1 file changed, 2 insertions(+) base-commit: 87d6aab2389e5ce0197d8257d5f8ee965a67c4cd prerequisite-patch-id: 5e1313094386b146c9180d72c15bae49aaffbfa8 diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 95cdfc28361e..757f07132585 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -687,6 +687,8 @@ static int atmel_qspi_probe(struct platform_device *pdev) pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); + dev_info(&pdev->dev, "AT91 QSPI Controller version %#x (irq %d)\n", + atmel_qspi_read(aq, QSPI_VERSION), irq); return 0; disable_qspick: