NVMe: tage the disk with flag of is_rk_disk

For rockchip platform, we may need to support
NVMe bootup, so we need to add this flag so that
the rk partition layout could be able to find the
correct partition from parameter.

Change-Id: I3e0213df893bd137fa6d5fd0a0120cabeb6259e8
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
Shawn Lin 2017-01-04 15:36:00 +08:00 committed by Huang, Tao
parent 67ed0175f0
commit b90df318ef

View File

@ -2290,6 +2290,11 @@ static void nvme_alloc_ns(struct nvme_dev *dev, unsigned nsid)
disk->queue = ns->queue;
disk->driverfs_dev = dev->device;
disk->flags = GENHD_FL_EXT_DEVT;
#ifdef CONFIG_ARCH_ROCKCHIP
disk->is_rk_disk = true;
#else
disk->is_rk_disk = false;
#endif
sprintf(disk->disk_name, "nvme%dn%d", dev->instance, nsid);
/*