Commit 766928fb authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

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: default avatarStefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2e6fd648
......@@ -720,6 +720,11 @@ static int mrf24j40_hw_init(struct mrf24j40 *devrec)
return ret;
}
static void mrf24j40_phy_setup(struct mrf24j40 *devrec)
{
devrec->hw->phy->current_channel = 11;
}
static int mrf24j40_probe(struct spi_device *spi)
{
int ret = -ENOMEM;
......@@ -759,6 +764,8 @@ static int mrf24j40_probe(struct spi_device *spi)
if (ret)
goto err_register_device;
mrf24j40_phy_setup(devrec);
ret = devm_request_threaded_irq(&spi->dev,
spi->irq,
NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment