]> git.baikalelectronics.ru Git - kernel.git/commit
phy: mapphone-mdm6600: Fix uninitialized status value regression
authorTony Lindgren <tony@atomide.com>
Fri, 30 Aug 2019 21:43:12 +0000 (14:43 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 26 Dec 2019 10:57:53 +0000 (16:27 +0530)
commit9e4d1b124e00b2e1d45f44de529922f35ca69405
treea04b3685529ce85ecc43a56d690e92a4653d703e
parent491ec94a573a93d35662f075af9507ec6d11d3f6
phy: mapphone-mdm6600: Fix uninitialized status value regression

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: 600b2d248853 ("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: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/motorola/phy-mapphone-mdm6600.c