Re: [PATCH] gpio: mpc8xxx: Add platform device to gpiochip->parent

From: Linus Walleij
Date: Thu Nov 28 2019 - 08:39:26 EST


Hi Johnson,

On Tue, Nov 26, 2019 at 7:51 AM Johnson CH Chen (éæå)
<JohnsonCH.Chen@xxxxxxxx> wrote:

> In old kernels, some APIs still try to use parent->of_node from struct gpio_chip,
> and it could be resulted in kernel panic because parent is NULL. Adding platform
> device to gpiochip->parent can fix this problem.
>
> Signed-off-by: Johnson Chen <johnsonch.chen@xxxxxxxx>
> Link: https://patchwork.kernel.org/patch/11234609

Patch applied for fixes!

Yours,
Linus Walleij