• Ioana Ciornei's avatar
    soc: fsl: dpio: keep a per dpio device MC portal · 9182ee28
    Ioana Ciornei authored
    At the moment, the dpio-driver allocates an MC portal at probe time and
    frees it right after usage. The same thing happens on the remove path.
    This behavior could lead to scenarios where an MC portal is available
    for use at probing but not longer free on the remove path which could
    lead to unproper unbind of resources.
    
    Change the driver's behavior in such a way that an MC portal is
    allocated at probe and kept until the DPIO device is removed. This will
    ensure that at any time after a DPIO device was successfully probed, all
    its dependencies will be met.
    Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
    Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
    9182ee28
dpio-driver.c 6.61 KB