Linux FPGA development
 help / color / mirror / Atom feed
From: Xu Yilun <yilun.xu@linux.intel.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: mdf@kernel.org, yilun.xu@intel.com, trix@redhat.com,
	linux-fpga@vger.kernel.org
Subject: Re: [PATCH] fpga: xilinx-spi: Add missing spi_device_id table
Date: Mon, 3 Nov 2025 22:57:23 +0800	[thread overview]
Message-ID: <aQjC0yIFp7SLcBeM@yilunxu-OptiPlex-7050> (raw)
In-Reply-To: <20251026110237.986279-1-festevam@gmail.com>

On Sun, Oct 26, 2025 at 08:02:37AM -0300, Fabio Estevam wrote:
> The "xlnx,fpga-slave-serial" devicetree compatible string currently misses
> its SPI device ID entry. Without an spi_device_id table, the driver still
> works with device tree, but triggers the following runtime warning when
> registered via SPI core:
> 
> SPI driver xlnx-slave-spi has no spi_device_id for xlnx,fpga-slave-serial
> 
> Fix it by adding a corresponding spi_device_id table entry.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  drivers/fpga/xilinx-spi.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/fpga/xilinx-spi.c b/drivers/fpga/xilinx-spi.c
> index 8756504340de..26348a768bbc 100644
> --- a/drivers/fpga/xilinx-spi.c
> +++ b/drivers/fpga/xilinx-spi.c
> @@ -57,6 +57,12 @@ static int xilinx_spi_probe(struct spi_device *spi)
>  	return xilinx_core_probe(core);
>  }
>  
> +static const struct spi_device_id xilinx_spi_ids[] = {
> +	{ "fpga-slave-serial" },
> +	{ },
> +};
> +MODULE_DEVICE_TABLE(spi, xilinx_spi_ids);
> +
>  #ifdef CONFIG_OF
>  static const struct of_device_id xlnx_spi_of_match[] = {
>  	{
> @@ -73,6 +79,7 @@ static struct spi_driver xilinx_slave_spi_driver = {
>  		.of_match_table = of_match_ptr(xlnx_spi_of_match),
>  	},
>  	.probe = xilinx_spi_probe,
> +	.id_table       = xilinx_spi_ids,

One whitespace is enough, I fixed it in place.

Others look good to me.

Reviewed-by: Xu Yilun <yilun.xu@linux.intel.com>

Applied to for-next, thanks

>  };
>  
>  module_spi_driver(xilinx_slave_spi_driver)
> -- 
> 2.34.1
> 
> 

      reply	other threads:[~2025-11-03 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-26 11:02 [PATCH] fpga: xilinx-spi: Add missing spi_device_id table Fabio Estevam
2025-11-03 14:57 ` Xu Yilun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aQjC0yIFp7SLcBeM@yilunxu-OptiPlex-7050 \
    --to=yilun.xu@linux.intel.com \
    --cc=festevam@gmail.com \
    --cc=linux-fpga@vger.kernel.org \
    --cc=mdf@kernel.org \
    --cc=trix@redhat.com \
    --cc=yilun.xu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox