search for: tegra_mc_add_swgroup

Displaying 3 results from an estimated 3 matches for "tegra_mc_add_swgroup".

2015 Jan 06
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...wgroup() function here? That way you could turn it into something slightly more readable: unsigned int swgroup = mc->soc->clients[i].swgroup; struct tegra_mc_swgroup *group; group = tegra_mc_find_swgroup(mc, swgroup); if (!group) { /* allocates and adds to mc->swgroups */ group = tegra_mc_add_swgroup(mc, swgroup); if (!group) return -ENOMEM; } list_add_tail(&group->list, &mc->swgroups); where tegra_mc_add_swgroup() is something like this: group = devm_kzalloc(mc->dev, sizeof(*group), GFP_KERNEL); if (!group) return NULL; INIT_LIST_HEAD(&group->clients);...
2015 Jan 06
0
[PATCH nouveau 06/11] platform: complete the power up/down sequence
...to be called outside the mc driver and can only take the device node as argument because other drivers do not have the mc instance information unless they call tegra_mc_find_swgroup() or tegra_mc_find_client(). > if (!group) { > /* allocates and adds to mc->swgroups */ > group = tegra_mc_add_swgroup(mc, swgroup); > if (!group) > return -ENOMEM; > } > > list_add_tail(&group->list, &mc->swgroups); > > where tegra_mc_add_swgroup() is something like this: > > group = devm_kzalloc(mc->dev, sizeof(*group), GFP_KERNEL); > if (!group) > retu...
2015 Jan 05
2
[PATCH nouveau 06/11] platform: complete the power up/down sequence
On Thu, Dec 25, 2014 at 10:42:58AM +0800, Vince Hsu wrote: > > On 12/24/2014 09:23 PM, Lucas Stach wrote: > >Am Dienstag, den 23.12.2014, 18:39 +0800 schrieb Vince Hsu: > >>This patch adds some missing pieces of the rail gaing/ungating sequence that > >>can improve the stability in theory. > >> > >>Signed-off-by: Vince Hsu <vinceh at