mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
drivers: rk_nand: fix android 9.0 block device count not mount issue
The android 9.0 scan block device type: platform, vbd and pci. The old nand driver create nand device uevent in "sys/devices/ virtual/", android 9.0 could not support. update new driver create nand device uevent in "sys/devices/ platform/ff3b0000.nandc/block/rknand0" to fix the issuex. Change-Id: Idda634cc5584fb4a8b531fbbea481d1a08c63cca Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
This commit is contained in:
parent
0031c0242e
commit
a537107cc8
|
|
@ -586,6 +586,7 @@ static int nand_add_dev(struct nand_blk_ops *nandr, struct nand_part *part)
|
|||
part->name);
|
||||
} else {
|
||||
gd->flags = GENHD_FL_EXT_DEVT;
|
||||
gd->driverfs_dev = g_nand_device;
|
||||
gd->minors = 255;
|
||||
snprintf(gd->disk_name,
|
||||
sizeof(gd->disk_name),
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ struct nand_blk_ops {
|
|||
struct module *owner;
|
||||
};
|
||||
|
||||
extern struct device *g_nand_device;
|
||||
void rknand_dev_suspend(void);
|
||||
void rknand_dev_resume(void);
|
||||
void rknand_dev_shutdown(void);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user