From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sTyG15cpQzDsF9 for ; Thu, 8 Sep 2016 08:05:45 +1000 (AEST) Received: by mail-oi0-x22d.google.com with SMTP id y2so46182410oie.0 for ; Wed, 07 Sep 2016 15:05:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160905225217.C34571A245A@localhost.localdomain> References: <20160905225217.C34571A245A@localhost.localdomain> From: Linus Walleij Date: Thu, 8 Sep 2016 00:05:42 +0200 Message-ID: Subject: Re: [PATCH] soc: fsl/qe: fix gpio save_regs functions To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Scott Wood , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org list" , "linux-gpio@vger.kernel.org" , stable Content-Type: text/plain; charset=UTF-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Sep 6, 2016 at 12:52 AM, Christophe Leroy wrote: > of_mm_gpiochip_add_data() calls mm_gc->save_regs() before > setting the data. Therefore ->save_regs() cannot use > gpiochip_get_data() > > An Oops is encountered without this fix. > > fixes: 1e714e54b5ca5 ("powerpc: qe_lib-gpio: use gpiochip data pointer") > Signed-off-by: Christophe Leroy > Cc: Aha sorry for my regular screwups. :( Reviewed-by: Linus Walleij Yours, Linus Walleij