mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-20 17:34:34 +07:00
NFC: trf7970a: Set 'Modulator and SYS_CLK Control' after 'ISO Control'
Writing to the 'ISO Control' register may cause the contents of the 'Modulator and SYS_CLK Control' register to change so be sure to write to 'Modulator and SYS_CLK Control' after writing to 'ISO Control'. Note that writing to the 'Modulator and SYS_CLK Control' register shouldn't be necessary at all according to the trf790a manual but testing shows that it is necessary. Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
49d19cc794
commit
a0822a7e3b
@ -765,11 +765,6 @@ static int trf7970a_init(struct trf7970a *trf)
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
|
||||||
ret = trf7970a_write(trf, TRF7970A_MODULATOR_SYS_CLK_CTRL,
|
|
||||||
TRF7970A_MODULATOR_DEPTH_OOK);
|
|
||||||
if (ret)
|
|
||||||
goto err_out;
|
|
||||||
|
|
||||||
ret = trf7970a_write(trf, TRF7970A_ADJUTABLE_FIFO_IRQ_LEVELS,
|
ret = trf7970a_write(trf, TRF7970A_ADJUTABLE_FIFO_IRQ_LEVELS,
|
||||||
TRF7970A_ADJUTABLE_FIFO_IRQ_LEVELS_WLH_96 |
|
TRF7970A_ADJUTABLE_FIFO_IRQ_LEVELS_WLH_96 |
|
||||||
TRF7970A_ADJUTABLE_FIFO_IRQ_LEVELS_WLL_32);
|
TRF7970A_ADJUTABLE_FIFO_IRQ_LEVELS_WLL_32);
|
||||||
@ -943,6 +938,11 @@ static int trf7970a_config_framing(struct trf7970a *trf, int framing)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
trf->iso_ctrl = iso_ctrl;
|
trf->iso_ctrl = iso_ctrl;
|
||||||
|
|
||||||
|
ret = trf7970a_write(trf, TRF7970A_MODULATOR_SYS_CLK_CTRL,
|
||||||
|
TRF7970A_MODULATOR_DEPTH_OOK);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user