From patchwork Wed May 31 11:03:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 687635 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37407C77B7C for ; Wed, 31 May 2023 11:33:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232598AbjEaLdZ (ORCPT ); Wed, 31 May 2023 07:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbjEaLdZ (ORCPT ); Wed, 31 May 2023 07:33:25 -0400 X-Greylist: delayed 1779 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 31 May 2023 04:33:24 PDT Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB15E8 for ; Wed, 31 May 2023 04:33:24 -0700 (PDT) Received: from [167.98.27.226] (helo=rainbowdash) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1q4JcD-0072Jh-NF; Wed, 31 May 2023 12:03:41 +0100 Received: from ben by rainbowdash with local (Exim 4.96) (envelope-from ) id 1q4JcD-001Lbs-0q; Wed, 31 May 2023 12:03:41 +0100 From: Ben Dooks To: linux-spi@vger.kernel.org, broonie@kernel.org Cc: fancer.lancer@gmail.com, Sudip Mukherjee , Jude Onyenegecha , Greentime Hu , Jeegar Lakhani , Ben Dooks , Ben Dooks Subject: [PATCH] spi: dw: announce driver probe Date: Wed, 31 May 2023 12:03:39 +0100 Message-Id: <20230531110339.321387-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org From: Ben Dooks It is useful to know the driver probed, so print some basic info when it does, such as the spi bus name, irq, etc. Signed-off-by: Ben Dooks Signed-off-by: Ben Dooks --- drivers/spi/spi-dw-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-dw-core.c b/drivers/spi/spi-dw-core.c index 071a7604a8ab..8e8a0d063519 100644 --- a/drivers/spi/spi-dw-core.c +++ b/drivers/spi/spi-dw-core.c @@ -958,6 +958,9 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) goto err_dma_exit; } + dev_info(dev, "%s: irq %d, %d fifo, max freq %u", + dev_name(&master->dev), dws->irq, dws->fifo_len, + dws->max_freq); dw_spi_debugfs_init(dws); return 0;