Re: [PATCH v2] mfd: dln2: Fix sanity checking for endpoints

From: Lee Jones
Date: Fri Mar 13 2020 - 02:57:48 EST


On Wed, 26 Feb 2020, Andy Shevchenko wrote:

> While the commit 2b8bd606b1e6 ("mfd: dln2: More sanity checking for endpoints")
> tries to harden the sanity checks it made at the same time a regression,
> i.e. mixed in and out endpoints. Obviously it should have been not tested on
> real hardware at that time, but unluckily it didn't happen.
>
> So, fix above mentioned typo and make device being enumerated again.
>
> While here, introduce an enumerator for magic values to prevent similar issue
> to happen in the future.
>
> Fixes: 2b8bd606b1e6 ("mfd: dln2: More sanity checking for endpoints")
> Cc: Oliver Neukum <oneukum@xxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> v2: Add enumerator (Lee)
> drivers/mfd/dln2.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)

Applied, thanks.

--
Lee Jones [æçæ]
Linaro Services Technical Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog