Re: [PATCH][RESEND 2] component: enhance handling of devres group for master

From: Russell King - ARM Linux
Date: Thu Jul 26 2018 - 04:26:33 EST


On Wed, Jul 25, 2018 at 11:06:28PM -0700, bgoswami@xxxxxxxxxxxxxx wrote:
> From: Banajit Goswami <bgoswami@xxxxxxxxxxxxxx>
>
> The devres group opened for a master is left open-ended (without
> devres_group_close) even after bind() is complete. Similarly, while
> releasing the devres resources for master, the most recently opened
> devres group is selected, and released without identifying the
> targeted group. As the devres group opened before master bind was
> never closed, there may have unintended consequences of releasing
> devres resources that were allocated after master bind() function
> was complete.

... as intended, because this layers on top of the driver model.
You are aware that the driver model leaves its implicit group open
as well?

I think you need to explain why you need this - what is the problem
scenario that you are encountering.

--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 13.8Mbps down 630kbps up
According to speedtest.net: 13Mbps down 490kbps up