Patch "spi: dw: Make debugfs name unique between instances" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
spi: dw: Make debugfs name unique between instances
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
spi-dw-make-debugfs-name-unique-between-instances.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Aug 4 13:32:40 PDT 2017
From: Phil Reid <[email protected]>
Date: Thu, 22 Dec 2016 17:18:12 +0800
Subject: spi: dw: Make debugfs name unique between instances
From: Phil Reid <[email protected]>
[ Upstream commit 13288bdf4adbaa6bd1267f10044c1bc25d90ce7f ]
Some system have multiple dw devices. Currently the driver uses a fixed name for the debugfs dir. Append dev name to the debugfs dir name to make it unique.
--- drivers/spi/spi-dw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/spi/spi-dw.c +4 -1
@@ -107,7 +107,10 @@ static const struct file_operations dw_sstatic int dw_spi_debugfs_init (struct dw_spi *dws) { - dws->debugfs =debugfs_create_dir ("dw_spi" ,NULL ); +char name[128 ]; + +snprintf (name,128 ,"dw_spi-%s" ,dev_name (&dws->master->dev)); + dws->debugfs =debugfs_create_dir (name,NULL );if (!dws->debugfs)return -ENOMEM ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/spi-dw-make-debugfs-name-unique-between-instances.patch