• Tony Lindgren's avatar
    phy: mapphone-mdm6600: Fix uninitialized status value regression · af5d44de
    Tony Lindgren authored
    Only the used bits get cleared with bitmap_zero() when we call
    gpiod_get_array_value_cansleep(). We must mask only the bits we're
    using for ddata->status as the other bits in the bitmap may not be
    initialized.
    
    And let's also drop useless debug code accidentally left over while
    at it.
    
    Fixes: b9762beb ("gpiolib: Pass bitmaps, not integer arrays, to get/set array")
    Cc: Jacopo Mondi <jacopo@jmondi.org>
    Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com>
    Cc: Linus Walleij <linus.walleij@linaro.org>
    Cc: Marcel Partap <mpartap@gmx.net>
    Cc: Merlijn Wajer <merlijn@wizzup.org>
    Cc: Michael Scott <hashcode0f@gmail.com>
    Cc: NeKit <nekit1000@gmail.com>
    Cc: Pavel Machek <pavel@ucw.cz>
    Cc: Sebastian Reichel <sre@kernel.org>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
    af5d44de
phy-mapphone-mdm6600.c 17.6 KB