[PATCH 2/7] RapidIO: Add switch locking during discovery
Micha Nelissen
micha at neli.hopto.org
Fri Feb 26 06:11:08 EST 2010
Bounine, Alexandre wrote:
> Micha Nelissen wrote:
>> Alexandre Bounine wrote:
>>> + mport->host_deviceid = RIO_GET_DID(mport->sys_size,
>> This fixes something else, should be a separate patch.
>
> This sets an ID used for locking during discovery. On a startup only
> enumerator's ID is set to the specified value. All discovering agents
Ah I see. Isn't it a bit ugly to have "host_deviceid" being the device's
own destid?
I have removed mport->host_deviceid, and added rdev_host and rdev_self
to rio_net. I also added code to create a rio device for the "self"
instance; then the locking would always use net->rdev_self->destid.
Micha
More information about the Linuxppc-dev
mailing list