Loading
mtd: rawnand: cadence: fix error code in cadence_nand_init()
stable inclusion from stable-v6.6.80 commit fcae111830a4c563491c4ffd3facac7d908f6219 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBXANC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fcae111830a4c563491c4ffd3facac7d908f6219 -------------------------------- commit 2b9df00cded911e2ca2cfae5c45082166b24f8aa upstream. Replace dma_request_channel() with dma_request_chan_by_mask() and use helper functions to return proper error code instead of fixed -EBUSY. Fixes: ec4ba01e ("mtd: rawnand: Add new Cadence NAND driver to MTD subsystem") Cc: stable@vger.kernel.org Signed-off-by:Niravkumar L Rabara <niravkumar.l.rabara@intel.com> Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit fcae111830a4c563491c4ffd3facac7d908f6219) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>