From: Alexander Aring Date: Mon, 21 Sep 2015 09:24:27 +0000 (+0200) Subject: mrf24j40: add default channel setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=766928fbf8c989f65184c3ed0d48fd3004213c46;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index 89150bd43ab2..7c224cdbe561 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -720,6 +720,11 @@ err_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) { 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,