[PATCH v3] mtd: bcm47xxnflash: Add error handling for bcm47xxnflash_ops_bcm4706_ctl_cmd()
Miquel Raynal
miquel.raynal at bootlin.com
Tue Apr 29 02:26:32 PDT 2025
On Mon, 07 Apr 2025 17:43:47 +0800, Wentao Liang wrote:
> The function bcm47xxnflash_ops_bcm4706_cmd_ctrl() calls the function
> bcm47xxnflash_ops_bcm4706_ctl_cmd(), but does not check its return value.
> A proper implementation can be found in bcm47xxnflash_ops_bcm4706_write().
>
> Add error log to the bcm47xxnflash_ops_bcm4706_ctl_cmd() via pr_err()
> to prevent silent failure. The error Log funciton 'dev_err' is unsuitable
> in this situation for it is hard to get device pointer.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: bcm47xxnflash: Add error handling for bcm47xxnflash_ops_bcm4706_ctl_cmd()
commit: 00b102d9e3827fabad366e464512a34f97406389
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-mtd
mailing list