Re: [Freedreno] [PATCH 3/7] component: Introduce struct aggregate_device

2021-05-24 Thread Stephen Boyd
Quoting Saravana Kannan (2021-05-20 13:20:45) > On Wed, May 19, 2021 at 5:25 PM Stephen Boyd wrote: > > > > - master->parent = parent; > > - master->ops = ops; > > - master->match = match; > > + id = ida_alloc(_ida, GFP_KERNEL); > > + if (id < 0) { > > +

Re: [Freedreno] [PATCH 3/7] component: Introduce struct aggregate_device

2021-05-20 Thread Saravana Kannan
On Wed, May 19, 2021 at 5:25 PM Stephen Boyd wrote: > > Replace 'struct master' with 'struct aggregate_device' and then rename > 'master' to 'adev' everywhere in the code. While we're here, put a > struct device inside the aggregate device so that we can register it > with a bus_type in the next

[Freedreno] [PATCH 3/7] component: Introduce struct aggregate_device

2021-05-19 Thread Stephen Boyd
Replace 'struct master' with 'struct aggregate_device' and then rename 'master' to 'adev' everywhere in the code. While we're here, put a struct device inside the aggregate device so that we can register it with a bus_type in the next patch. The diff is large but that's because this is mostly a