Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp187883pxk; Wed, 9 Sep 2020 02:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYHdOtCWPUwcP2qswlKSCnPcIKUoO3Tc4StOQUxF4f3DwovR3DBaNq+yVPee0tZ3p+dpg3 X-Received: by 2002:a50:cbc7:: with SMTP id l7mr3213799edi.148.1599644752539; Wed, 09 Sep 2020 02:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599644752; cv=none; d=google.com; s=arc-20160816; b=Ol0c6TXsVhh3jbs5qPFuDz2YUCOcsvUCJeFamLAXD3vScG84A4IkcVlLtMXO5Wuhzz jCekpPenT08qPZGilOrgWJzZOLN5bcldtVfKczwmHzZxOno2f5nuLcaMolOqkqiC9/jf JetqywQ71IeND6ow1A0/Ef5664XIRNgaUQKrorjdadjv/5JejisdJ/K46sq3R36TwAk6 OsaPZypMdcKWg3yXaLBE34cAdumJAO/IDHmh31nKdA3EQ00/jHWKrPqyrnryRxStmbwP TkvYhyMF+/XDxCsLDjywkhDo97q+M3PiPPJEuJNafSoUktqsb+hlKTfPW0U187wYGHj7 XB+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cZ5lMQza2vBQuSWYO95GLXBotDPAQE05BEf+7WEyMpQ=; b=0yolSCV7FSvU28+rfq9Vq1ryB6Z6HttqI6bZC4A++cbtbZG7XG8QTj5vOKA9mw0/0S yuTGfXzLIUJXju/2w3npjrzvVZEQVHx0Ab6EDE8MGKJXrmHSunpjU9w+B+PBADTla3gY ZKmjOcYtnLAsxAzV47LrcWHLMuG3HTmaWghuyjwz34c2Yw0K9U6GEtNYtgOfsKjhjc3M 2oZyQXuCO7OOGOgqpu0HQmwlD0oF7Zhkoz24uKlQReaNissrd0AjHq0ZAIItoA5kRkR3 lHBAnaMw0yhJOPLrzSC+DdBFD1Em7PaTs4tQrqm2Z23AZWdfS6Gkv5Rboa0GI4rjjv8/ cuMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MVBKWr6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc11si1104459edb.532.2020.09.09.02.45.28; Wed, 09 Sep 2020 02:45:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MVBKWr6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730329AbgIIJoV (ORCPT + 99 others); Wed, 9 Sep 2020 05:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730273AbgIIJni (ORCPT ); Wed, 9 Sep 2020 05:43:38 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E71EC061573 for ; Wed, 9 Sep 2020 02:43:36 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id b12so1947631edz.11 for ; Wed, 09 Sep 2020 02:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cZ5lMQza2vBQuSWYO95GLXBotDPAQE05BEf+7WEyMpQ=; b=MVBKWr6zhXCnDFG4JjFB4b320z+06N3btYzZRaTE6z9nFbPCID5IatZTdMF/ylZ0qO Ng2aXrjANBTyfo49Ubmykhj6P9cKaLX1uZb4etsHfcUr3tNhYhvWb/XsilUpCU1qV9q2 wKJpPoivRRAuLfoeaKC95DxM5m/tFLq9+uRfp1a/ARogeL8/hR+dnF93sde3w3ZET9fM HLfTqpZpNEcH/FWBKBDIYXNkjUdbCamIZBzoUvagZSpDCTegx45Gd46KoI2JhyprxPLG 4oT5GUCkccqHeSqtZt2yL1MmJEj2YBCJfE7lNtzRRys1wcP1B0SSEDPoDbFXzB0eCC7N ySrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cZ5lMQza2vBQuSWYO95GLXBotDPAQE05BEf+7WEyMpQ=; b=cLi1nL3REQCnm/tsUkGtLBe5VQu/4qJo5h7PrHJMV0KrgAVAFOlrza8AAZF/qiEWoG zAmv4RuRpr+S3B6AD3xSmjXEQzOlz5N21FGPV3jybszHU5WFi1ydnRIpZyJADb7iAwxV pZU9BH5EzpFsSbTnbIjdy9Cg/tfjM+JFE5sVkPuVJt56bE2CzCXL6GB1cScLVrpQhmWk vp8CeFMQi+IZGOrqFG+dWQh4qLKbKg/b22l9H1pEWgtMAnOIUAqkNEtMo3VD7+jza2EC b0kmUzcl5s46JQa3kl4hLzB9azaj2LOzBtO7Tmxu7JI2EFaTIRz6p/UDKxOylQypyMCF spcg== X-Gm-Message-State: AOAM531Zh2R5wxLFNvegmNuH0de15jCKnxmGWSnLoA09IV52X27K5/Ca 4iixexMWoADmGo78VujkwkhDOXWLx8cmkmd9nBguIA== X-Received: by 2002:a05:6402:2c3:: with SMTP id b3mr3217458edx.213.1599644615064; Wed, 09 Sep 2020 02:43:35 -0700 (PDT) MIME-Version: 1.0 References: <20200907153135.3307-1-a.fatoum@pengutronix.de> In-Reply-To: <20200907153135.3307-1-a.fatoum@pengutronix.de> From: Bartosz Golaszewski Date: Wed, 9 Sep 2020 11:43:24 +0200 Message-ID: Subject: Re: [PATCH v2] gpio: siox: explicitly support only threaded irqs To: Ahmad Fatoum Cc: Thorsten Scherer , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Pengutronix Kernel Team , Linus Walleij , Thomas Gleixner , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 7, 2020 at 5:32 PM Ahmad Fatoum wrote: > > The gpio-siox driver uses handle_nested_irq() to implement its > interrupt support. This is only capable of handling threaded irq > actions. For a hardirq action it triggers a NULL pointer oops. > (It calls action->thread_fn which is NULL then.) > > Prevent registration of a hardirq action by setting > gpio_irq_chip::threaded to true. > > Cc: u.kleine-koenig@pengutronix.de > Signed-off-by: Ahmad Fatoum > --- Could you add a Fixes tag? This looks like stable material. Bart