BACKPORT: NVMe: Export NVMe attributes to sysfs group

Adds all controller information to attribute list exposed to sysfs, and
appends the reset_controller attribute to it. The nvme device is created
with this attribute list, so driver no long manages its attributes.

Reported-by: Sujith Pandel <>
Cc: Sujith Pandel <sujithpshankar@>
Cc: David Milburn <>
Signed-off-by: Keith Busch <>
Signed-off-by: Jens Axboe <>
(cherry picked from commit 779ff75617099f4defe14e20443b95019a4c5ae8)
Signed-off-by: Gwendal Grignou <>

TEST=Check serial/model/firmware_rev are populated.

Change-Id: I0cd08487f79177ccfad34715d1e63233a1f59113
Signed-off-by: Gwendal Grignou <>
Reviewed-by: Puthikorn Voravootivat <>
1 file changed