linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: rawnand: remove misguided comment of nand_get_device()
@ 2022-08-19  2:18 ChenXiaoSong
  2022-09-20  8:34 ` Miquel Raynal
  0 siblings, 1 reply; 2+ messages in thread
From: ChenXiaoSong @ 2022-08-19  2:18 UTC (permalink / raw)
  To: miquel.raynal, vigneshr; +Cc: linux-mtd, linux-kernel, chenxiaosong2

After commit 8cba323437a4 ("mtd: rawnand: protect access to rawnand devices
while in suspend"), it will wait while in suspend rather than returning
errors. So remove the misguided comment about return value.

Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
---
 drivers/mtd/nand/raw/nand_base.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index 6b67b7dfe7ce..5e99e4c96da4 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -335,8 +335,6 @@ static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs)
  * @chip: NAND chip structure
  *
  * Lock the device and its controller for exclusive access
- *
- * Return: -EBUSY if the chip has been suspended, 0 otherwise
  */
 static void nand_get_device(struct nand_chip *chip)
 {
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: rawnand: remove misguided comment of nand_get_device()
  2022-08-19  2:18 [PATCH] mtd: rawnand: remove misguided comment of nand_get_device() ChenXiaoSong
@ 2022-09-20  8:34 ` Miquel Raynal
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2022-09-20  8:34 UTC (permalink / raw)
  To: ChenXiaoSong, miquel.raynal, vigneshr; +Cc: linux-mtd, linux-kernel

On Fri, 2022-08-19 at 02:18:46 UTC, ChenXiaoSong wrote:
> After commit 8cba323437a4 ("mtd: rawnand: protect access to rawnand devices
> while in suspend"), it will wait while in suspend rather than returning
> errors. So remove the misguided comment about return value.
> 
> Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-20  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19  2:18 [PATCH] mtd: rawnand: remove misguided comment of nand_get_device() ChenXiaoSong
2022-09-20  8:34 ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).