• Itai Katz's avatar
    staging: fsl-mc: don't use object versions to make binding decisions · 9787d4e0
    Itai Katz authored
    Up until now if the object version expected by a driver (in the API header
    file) did not match the actual object version in the MC hardware the bus
    driver refused to bind the object to the driver or printed out WARN_ON
    dumps.
    
    This patch removes those checks, and the responsibility of object version
    checking should now be done in the object drivers themselves.  If the actual
    version discovered is not supported, the driver's probe function should fail.
    Drivers should use version checks to support new features and provide
    backwards compatibility if at all possible.
    
    This patch also removes the checks that caused bus driver probing to fail
    if the overall MC version discovered did not match the firmware version
    from the API header...this was too strict.  The overall MC version is
    informational like a release number, and continues to be printed in the
    boot log.
    Signed-off-by: default avatarItai Katz <itai.katz@nxp.com>
    (Stuart: reworded commit log)
    Signed-off-by: default avatarStuart Yoder <stuart.yoder@nxp.com>
    Acked-by: default avatarGerman Rivera <german.rivera@nxp.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    9787d4e0
dprc-driver.c 20.2 KB