提交 a571259f 编写于 作者: L Liu Gang 提交者: Linus Torvalds

drivers/rapidio/rio-scan.c: use discovered bit to test if enumeration is complete

The discovered bit in PGCCSR register indicates if the device has been
discovered by system host.  In Rapidio systems, some agent devices can also
be master devices.  They can issue requests into the system.
Signed-off-by: NLiu Gang <Gang.Liu@freescale.com>
Acked-by: NAlexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 79975f13
...@@ -923,7 +923,7 @@ static int __devinit rio_enum_peer(struct rio_net *net, struct rio_mport *port, ...@@ -923,7 +923,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 * rio_enum_complete- Tests if enumeration of a network is complete
* @port: Master port to send transaction * @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 * complete flag). Return %1 if enumeration is complete or %0 if
* enumeration is incomplete. * enumeration is incomplete.
*/ */
...@@ -933,7 +933,7 @@ static int rio_enum_complete(struct rio_mport *port) ...@@ -933,7 +933,7 @@ static int rio_enum_complete(struct rio_mport *port)
rio_local_read_config_32(port, port->phys_efptr + RIO_PORT_GEN_CTL_CSR, rio_local_read_config_32(port, port->phys_efptr + RIO_PORT_GEN_CTL_CSR,
&regval); &regval);
return (regval & RIO_PORT_GEN_MASTER) ? 1 : 0; return (regval & RIO_PORT_GEN_DISCOVERED) ? 1 : 0;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册