device-dax: Auto-bind device after successful new_id
authorDan Williams <dan.j.williams@intel.com>
Thu, 24 Jan 2019 21:12:04 +0000 (13:12 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 24 Jan 2019 21:12:04 +0000 (13:12 -0800)
commit664525b2d84abca1074c9546654ae9689de8a818
tree7dd2a25b1198aa6d7b5db47ca68c34d2d143deaf
parent8fc5c73554db0ac18c0c6ac5b2099ab917f83bdf
device-dax: Auto-bind device after successful new_id

The typical 'new_id' attribute behavior is to immediately attach a
device to its driver after a new device-id is added. Implement this
behavior for the dax bus.

Reported-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Reported-by: Brice Goglin <Brice.Goglin@inria.fr>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.c