mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
Merge branch 'microchip-lan865x-fix-probing-issues'
Stefan Wahren says: ==================== microchip: lan865x: Fix probing issues Recently I setup a customer i.MX93 board which contains a LAN8651 chip. During this process I discovered some probing related issues. ==================== Link: https://patch.msgid.link/20250827115341.34608-1-wahrenst@gmx.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
788bc43d83
|
|
@ -423,13 +423,16 @@ static void lan865x_remove(struct spi_device *spi)
|
|||
free_netdev(priv->netdev);
|
||||
}
|
||||
|
||||
static const struct spi_device_id spidev_spi_ids[] = {
|
||||
static const struct spi_device_id lan865x_ids[] = {
|
||||
{ .name = "lan8650" },
|
||||
{ .name = "lan8651" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, lan865x_ids);
|
||||
|
||||
static const struct of_device_id lan865x_dt_ids[] = {
|
||||
{ .compatible = "microchip,lan8650" },
|
||||
{ .compatible = "microchip,lan8651" },
|
||||
{ /* Sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, lan865x_dt_ids);
|
||||
|
|
@ -441,7 +444,7 @@ static struct spi_driver lan865x_driver = {
|
|||
},
|
||||
.probe = lan865x_probe,
|
||||
.remove = lan865x_remove,
|
||||
.id_table = spidev_spi_ids,
|
||||
.id_table = lan865x_ids,
|
||||
};
|
||||
module_spi_driver(lan865x_driver);
|
||||
|
||||
|
|
|
|||
|
|
@ -1249,7 +1249,8 @@ struct oa_tc6 *oa_tc6_init(struct spi_device *spi, struct net_device *netdev)
|
|||
|
||||
/* Set the SPI controller to pump at realtime priority */
|
||||
tc6->spi->rt = true;
|
||||
spi_setup(tc6->spi);
|
||||
if (spi_setup(tc6->spi) < 0)
|
||||
return NULL;
|
||||
|
||||
tc6->spi_ctrl_tx_buf = devm_kzalloc(&tc6->spi->dev,
|
||||
OA_TC6_CTRL_SPI_BUF_SIZE,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user