Re: [PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-06 Thread Xu Yilun
On Thu, Aug 06, 2020 at 03:11:14PM +0800, Wu, Hao wrote: > > > > +static int dfl_bus_uevent(struct device *dev, struct kobj_uevent_env > > *env) > > > > +{ > > > > +struct dfl_device *ddev = to_dfl_dev(dev); > > > > + > > > > +return add_uevent_var(env, "MODALIAS=dfl:t%08Xf%04X", > > > > + dde

RE: [PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-06 Thread Wu, Hao
> > > +static int dfl_bus_uevent(struct device *dev, struct kobj_uevent_env > *env) > > > +{ > > > +struct dfl_device *ddev = to_dfl_dev(dev); > > > + > > > +return add_uevent_var(env, "MODALIAS=dfl:t%08Xf%04X", > > > + ddev->type, ddev->feature_id); > > > > Then we only print 12bit of feature

Re: [PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-05 Thread Xu Yilun
On Wed, Aug 05, 2020 at 06:29:11PM +0800, Wu, Hao wrote: > > Subject: [PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL > > devices > > > > A new bus type "dfl" is introduced for private features which are not > > initialized by DFL feature

RE: [PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-05 Thread Wu, Hao
> Subject: [PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL > devices > > A new bus type "dfl" is introduced for private features which are not > initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these > private features could be ha

[PATCH v3 3/4] fpga: dfl: create a dfl bus type to support DFL devices

2020-08-04 Thread Xu Yilun
A new bus type "dfl" is introduced for private features which are not initialized by DFL feature drivers (dfl-fme & dfl-afu drivers). So these private features could be handled by separate driver modules. DFL feature drivers (dfl-fme, dfl-port) will create DFL devices on enumeration. DFL drivers c