Skip to content

Commit 5eeb7fe

Browse files
Christophe Kerellomiquelraynal
authored andcommitted
mtd: rawnand: stm32_fmc2: do not display errors if the driver is deferred
A MDMA issue has been solved on Kernel 5.7. The effect of this fix is that the MDMA driver is now deferred and the FMC2 NFC driver is also deferred. All is working fine but there is a FMC2 log in the console: stm32_fmc2_nfc 58002000.nand-controller: failed to request tx DMA channel: -517 This patch removes the display of this log in the console in case of this error is -EPROBE_DEFER. Signed-off-by: Christophe Kerello <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent dcb7fd8 commit 5eeb7fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/nand/raw/stm32_fmc2_nand.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ static int stm32_fmc2_nfc_dma_setup(struct stm32_fmc2_nfc *nfc)
15701570
nfc->dma_tx_ch = dma_request_chan(nfc->dev, "tx");
15711571
if (IS_ERR(nfc->dma_tx_ch)) {
15721572
ret = PTR_ERR(nfc->dma_tx_ch);
1573-
if (ret != -ENODEV)
1573+
if (ret != -ENODEV && ret != -EPROBE_DEFER)
15741574
dev_err(nfc->dev,
15751575
"failed to request tx DMA channel: %d\n", ret);
15761576
nfc->dma_tx_ch = NULL;
@@ -1580,7 +1580,7 @@ static int stm32_fmc2_nfc_dma_setup(struct stm32_fmc2_nfc *nfc)
15801580
nfc->dma_rx_ch = dma_request_chan(nfc->dev, "rx");
15811581
if (IS_ERR(nfc->dma_rx_ch)) {
15821582
ret = PTR_ERR(nfc->dma_rx_ch);
1583-
if (ret != -ENODEV)
1583+
if (ret != -ENODEV && ret != -EPROBE_DEFER)
15841584
dev_err(nfc->dev,
15851585
"failed to request rx DMA channel: %d\n", ret);
15861586
nfc->dma_rx_ch = NULL;
@@ -1590,7 +1590,7 @@ static int stm32_fmc2_nfc_dma_setup(struct stm32_fmc2_nfc *nfc)
15901590
nfc->dma_ecc_ch = dma_request_chan(nfc->dev, "ecc");
15911591
if (IS_ERR(nfc->dma_ecc_ch)) {
15921592
ret = PTR_ERR(nfc->dma_ecc_ch);
1593-
if (ret != -ENODEV)
1593+
if (ret != -ENODEV && ret != -EPROBE_DEFER)
15941594
dev_err(nfc->dev,
15951595
"failed to request ecc DMA channel: %d\n", ret);
15961596
nfc->dma_ecc_ch = NULL;

0 commit comments

Comments
 (0)