linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rio: Use discovered bit to test if enumeration is complete
@ 2011-08-09  2:17 Liu Gang
  2011-08-09 12:36 ` Bounine, Alexandre
  0 siblings, 1 reply; 3+ messages in thread
From: Liu Gang @ 2011-08-09  2:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: r58472, Liu Gang, r61911, linuxppc-dev, Liu Gang, akpm, B11780

The discovered bit in PGCCSR register indicates if the device has
been discovered by system host. In Rapidio system, some agent devices
can also be master devices. They can issue requests into the system.

Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
---
 drivers/rapidio/rio-scan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c
index ee89358..2dac1f0 100644
--- a/drivers/rapidio/rio-scan.c
+++ b/drivers/rapidio/rio-scan.c
@@ -924,7 +924,7 @@ static int __devinit rio_enum_peer(struct rio_net *net, struct rio_mport *port,
  * rio_enum_complete- Tests if enumeration of a network is complete
  * @port: Master port to send transaction
  *
- * Tests the Component Tag CSR for non-zero value (enumeration
+ * Tests the PGCCSR discovered bit for non-zero value (enumeration
  * complete flag). Return %1 if enumeration is complete or %0 if
  * enumeration is incomplete.
  */
@@ -934,7 +934,7 @@ static int rio_enum_complete(struct rio_mport *port)
 
 	rio_local_read_config_32(port, port->phys_efptr + RIO_PORT_GEN_CTL_CSR,
 				 &regval);
-	return (regval & RIO_PORT_GEN_MASTER) ? 1 : 0;
+	return (regval & RIO_PORT_GEN_DISCOVERED) ? 1 : 0;
 }
 
 /**
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] rio: Use discovered bit to test if enumeration is complete
  2011-08-09  2:17 [PATCH] rio: Use discovered bit to test if enumeration is complete Liu Gang
@ 2011-08-09 12:36 ` Bounine, Alexandre
  2011-08-17  9:45   ` Liu Gang-B34182
  0 siblings, 1 reply; 3+ messages in thread
From: Bounine, Alexandre @ 2011-08-09 12:36 UTC (permalink / raw)
  To: Liu Gang, linux-kernel
  Cc: r58472, r61911, linuxppc-dev, Liu Gang, B11780, akpm

On Monday, August 08, 2011 at 10:17 PM, Liu Gang wrote:
> Subject: [PATCH] rio: Use discovered bit to test if enumeration is
> complete
>=20
> The discovered bit in PGCCSR register indicates if the device has
> been discovered by system host. In Rapidio system, some agent devices
> can also be master devices. They can issue requests into the system.
>=20
> Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
> ---
>  drivers/rapidio/rio-scan.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] rio: Use discovered bit to test if enumeration is complete
  2011-08-09 12:36 ` Bounine, Alexandre
@ 2011-08-17  9:45   ` Liu Gang-B34182
  0 siblings, 0 replies; 3+ messages in thread
From: Liu Gang-B34182 @ 2011-08-17  9:45 UTC (permalink / raw)
  To: 'Bounine, Alexandre',
	'linux-kernel@vger.kernel.org'
  Cc: 'linuxppc-dev@ozlabs.org',
	'akpm@linux-foundation.org', Gala Kumar-B11780,
	Li Yang-R58472, Zang Roy-R61911

Hi, Andrew,

Could you please apply this patch into your tree?

Thanks a lot!

Regards,

Liu Gang

-----Original Message-----
From: Bounine, Alexandre [mailto:Alexandre.Bounine@idt.com]=20
Sent: Tuesday, August 09, 2011 8:36 PM
To: Liu Gang-B34182; linux-kernel@vger.kernel.org
Cc: Li Yang-R58472; Zang Roy-R61911; linuxppc-dev@ozlabs.org; Liu Gang-B341=
82; akpm@linux-foundation.org; Gala Kumar-B11780
Subject: RE: [PATCH] rio: Use discovered bit to test if enumeration is comp=
lete

On Monday, August 08, 2011 at 10:17 PM, Liu Gang wrote:
> Subject: [PATCH] rio: Use discovered bit to test if enumeration is=20
> complete
>=20
> The discovered bit in PGCCSR register indicates if the device has been=20
> discovered by system host. In Rapidio system, some agent devices can=20
> also be master devices. They can issue requests into the system.
>=20
> Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
> ---
>  drivers/rapidio/rio-scan.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-17  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09  2:17 [PATCH] rio: Use discovered bit to test if enumeration is complete Liu Gang
2011-08-09 12:36 ` Bounine, Alexandre
2011-08-17  9:45   ` Liu Gang-B34182

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).