Thread (6 messages) 6 messages, 2 authors, 2012-08-27

RE: [PATCH] rapidio/tsi721: modify mport name assignment

From: Bounine, Alexandre <hidden>
Date: 2012-08-27 14:49:31
Also in: lkml

On Friday, August 24, 2012 5:02 PM
Andrew Morton [off-list ref]
=20
On Tue, 21 Aug 2012 10:23:54 -0400
Alexandre Bounine [off-list ref] wrote:
=20
quoted
Modify mport device name assignment to provide clear reference to device=
s
quoted
in systems with multiple Tsi721 bridges.

This patch is applicable to kernel versions starting from v3.2.
=20
This seems to imply that you think the patch should be backported into
earlier kernels.  But no reason for doing this was provided.
We cannot prevent users of earlier versions from using more than one Tsi721
device in their systems. In that case the old name form will not provide
definitive reference to a particular mport. Please, see comment below.
=20
quoted
--- a/drivers/rapidio/devices/tsi721.c
+++ b/drivers/rapidio/devices/tsi721.c
@@ -2165,7 +2165,8 @@ static int __devinit tsi721_setup_mport(struct
tsi721_device *priv)
quoted
 	rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0,
0xffff);
quoted
 	rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 3);
 	rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 3);
-	strcpy(mport->name, "Tsi721 mport");
+	snprintf(mport->name, RIO_MAX_MPORT_NAME, "%s(%s)",
+		 dev_driver_string(&pdev->dev), dev_name(&pdev->dev));
=20
And it's a non-back-compatible change to a userspace-visible interface!
As such we'd need extraordinary justification to merge it into
*future* kernels, let alone backport it.
An mport device do not provide a userspace-visible interface at this point.
This name is used internally in RapidIO subsystem for resource tracking and
debugging. For Tsi721 as a PCIe peripheral, having the mport name that may =
be
easily associated with its PCIe base helps with tracking of assigned PCIe
resources. This option looks to me better than adding simple indexing
component into existing name format, especially for systems that use add-on
cards with PCIe-to-SRIO bridges.
=20
Please, do provide much better changelogging than this.
Modify RapidIO mport device name assignment to include device name of PCIe
side of Tsi721 bridge. The new name format is intended to provide definitiv=
e
reference between RapidIO and PCIe sides of the bridge in systems with
multiple Tsi721 bridges.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help