mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
mrf24j40: add default channel setting
Per default mrf24j40 has the channel 11 after reset. This patch adds the right phy default value for the channel setting. Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
2e6fd648b6
commit
766928fbf8
@ -720,6 +720,11 @@ err_ret:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void mrf24j40_phy_setup(struct mrf24j40 *devrec)
|
||||||
|
{
|
||||||
|
devrec->hw->phy->current_channel = 11;
|
||||||
|
}
|
||||||
|
|
||||||
static int mrf24j40_probe(struct spi_device *spi)
|
static int mrf24j40_probe(struct spi_device *spi)
|
||||||
{
|
{
|
||||||
int ret = -ENOMEM;
|
int ret = -ENOMEM;
|
||||||
@ -759,6 +764,8 @@ static int mrf24j40_probe(struct spi_device *spi)
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto err_register_device;
|
goto err_register_device;
|
||||||
|
|
||||||
|
mrf24j40_phy_setup(devrec);
|
||||||
|
|
||||||
ret = devm_request_threaded_irq(&spi->dev,
|
ret = devm_request_threaded_irq(&spi->dev,
|
||||||
spi->irq,
|
spi->irq,
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user