Re: [net-next v4 01/12] Implementation of Virtual Bus

2020-05-21 Thread Jason Gunthorpe
On Thu, May 21, 2020 at 07:43:58PM +0200, gre...@linuxfoundation.org wrote: > On Thu, May 21, 2020 at 02:57:55PM +, Parav Pandit wrote: > > Hi Greg, Jason, > > > > On 5/20/2020 12:32 PM, Jeff Kirsher wrote: > > > From: Dave Ertman > > > > > > > > +static const > > > +struct virtbus_dev_id *

Re: [net-next v4 01/12] Implementation of Virtual Bus

2020-05-21 Thread gre...@linuxfoundation.org
On Thu, May 21, 2020 at 02:57:55PM +, Parav Pandit wrote: > Hi Greg, Jason, > > On 5/20/2020 12:32 PM, Jeff Kirsher wrote: > > From: Dave Ertman > > > > > +static const > > +struct virtbus_dev_id *virtbus_match_id(const struct virtbus_dev_id *id, > > + stru

Re: [net-next v4 01/12] Implementation of Virtual Bus

2020-05-21 Thread Parav Pandit
Hi Greg, Jason, On 5/20/2020 12:32 PM, Jeff Kirsher wrote: > From: Dave Ertman > > +static const > +struct virtbus_dev_id *virtbus_match_id(const struct virtbus_dev_id *id, > + struct virtbus_device *vdev) > +{ > + while (id->name[0]) { > + if

[net-next v4 01/12] Implementation of Virtual Bus

2020-05-20 Thread Jeff Kirsher
From: Dave Ertman This is the initial implementation of the Virtual Bus, virtbus_device and virtbus_driver. The virtual bus is a software based bus intended to support registering virtbus_devices and virtbus_drivers and provide matching between them and probing of the registered drivers. The bu