Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5961613ybe; Tue, 10 Sep 2019 11:23:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPenjDv5FmXEcPyKO9UJ2QRtzx3+W7mYCkLf8lLNRbfVX/FYrBr0K0T8CH7R4Js5D2xDsy X-Received: by 2002:a50:ee08:: with SMTP id g8mr32173718eds.261.1568139781155; Tue, 10 Sep 2019 11:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568139781; cv=none; d=google.com; s=arc-20160816; b=NO26NsVRYmhVtOdsTHjGeAdaFJMGlYz5gRK6gLckTeor4yhvZD7nbr820g90QQPEH0 haHj2ftPwHVWvBJ/Ibn9cycp/Sn6eq1DM0NUJU4PjmYokiopb3XCcYDacz0cW9zA2Xng zfHK+2MBZehseREWX1j9GXRMJ5sd1ZBUjYDx2QAc34idQnlxZw4LeC/lAcXsw+V/63FH gNcStmcX78yN4vriaAV2U6W5QrtTyOAtXcKPvz94RwAw9j2cjd9jac+w/1anSGp/srXt v4jAaMcj3z/n6YM2CBo0T0+3LcPNVEqU4ouiY4OqsjCuEzLo2ZqRPOF4SRUnbR3lkxPA Jlcg== 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=rwPtv2PkHjRWVfHgdMma8hT5zZLqlYAxoe2nwjsXNiM=; b=Q9A0PaPPCCgXTcWBAb2alBZQ79ronPwgM3jGhBMubtpkmsM+RotOxAkj8DEdq06fgW jaWuT847vDTrAYQalBKo5PoCAGs52qO8DRlvVUIA1NIvugSymTav6lYjAbHIKbLDSZ62 gvHIVjfqgwxOsnTowS9RTNsDzaVnwZkP+OmWvUjlgBZY/JVjUIzNlL4RY2D2J+YKGrr3 KqLIfkEdDps4i8YhWHeOMOaS0tMBTpQzkjaMgAPWUcky/m5uwQJ3D5SRvsbwE7OttBHo lpSNc5OOV2nklci3PPjluhbnUpJ2yhjqTQJ5Qd+2LVFAr1xwCINFEUuKmLkeNVRtbEJJ v2AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d0hM9Hrt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k55si12419041edd.179.2019.09.10.11.22.37; Tue, 10 Sep 2019 11:23:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d0hM9Hrt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405331AbfIIOO6 (ORCPT + 99 others); Mon, 9 Sep 2019 10:14:58 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37111 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405250AbfIIOO6 (ORCPT ); Mon, 9 Sep 2019 10:14:58 -0400 Received: by mail-lj1-f195.google.com with SMTP id y5so2104605lji.4; Mon, 09 Sep 2019 07:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rwPtv2PkHjRWVfHgdMma8hT5zZLqlYAxoe2nwjsXNiM=; b=d0hM9Hrtn18AtU+ItYS9C5KbSbAKVPpAtJi/W3hBTlbUSAWkLU0R2Mv3yQSK7Rgwwz tcsA+5RnBZdnOqJ5dtNsDjuvjPPLMWHDEE9UwxY7LK2xb/qgGxnAH85F0O4/Dc6vWzkg LnofrMxWnuLmgz3aiBmPeBMOcjjc0b3vwQhbhQ6oWa1DSisWWb1l0LCK9BfxIonpZRSt lewluv90tzc1TxR7XBO+o4nRYdZgXLVGxJj2vktBoMfD60K+MO1B9gIYVoggs6MNp+5Z WTYH0UmlsdBl/E9mryMLNUomGjZw6qwyfjxgRovhf3AJh36tirGbwfm2H3+Vbh4b6/yY OHMw== 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=rwPtv2PkHjRWVfHgdMma8hT5zZLqlYAxoe2nwjsXNiM=; b=FTdhHUrAyII4uVdlHMB+4M414uCE9YMEFHHf9e0nugGHdzgsEpelh5N8/3ppFi9YCg Y25UtFuPO2rQaGHSkqwG7ragKg/yQ04wRw6/j8dv78fzzlb908w9NLczZAZWtZnZH7fJ ysC0enDxGOToP1A87ebgpSQ1ghWj8VKMctLqSAAa0OZs5L12mNitAVJ4aXo1FZv8fYyL 0H1NR/evtgI5HWDR8LXaywxz2Wv3IG2WnTqn9fBq3CwKksaTVRtaspIrXoP1zHQwvl8B IFDYYrUARZsN3ZS7urLWWj26E41tAFxMUuiHAstdWFUp0H8xmXeLTt/GuiyQJIML7lRu 91Hw== X-Gm-Message-State: APjAAAVn4h8rlD+6sP33OPASdDfh9MuVf/PGggHzodUJ0vGwIdXzZYNy iSEsjQE8EqlLzcxUyOkKo/h1/D2tJz72VpQPmkU= X-Received: by 2002:a2e:9b43:: with SMTP id o3mr5058959ljj.214.1568038495704; Mon, 09 Sep 2019 07:14:55 -0700 (PDT) MIME-Version: 1.0 References: <20190909021214.25646-1-hui.song_1@nxp.com> In-Reply-To: <20190909021214.25646-1-hui.song_1@nxp.com> From: Fabio Estevam Date: Mon, 9 Sep 2019 11:14:45 -0300 Message-ID: Subject: Re: [PATCH v3] gpio/mpc8xxx: change irq handler from chained to normal To: Hui Song Cc: Shawn Guo , Li Yang , Rob Herring , Mark Rutland , Linus Walleij , Bartosz Golaszewski , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , "open list:GPIO SUBSYSTEM" 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 Hi Song, On Mon, Sep 9, 2019 at 11:12 AM Hui Song wrote: > static void mpc8xxx_irq_unmask(struct irq_data *d) > @@ -409,8 +409,14 @@ static int mpc8xxx_probe(struct platform_device *pdev) > if (devtype->gpio_dir_in_init) > devtype->gpio_dir_in_init(gc); > > - irq_set_chained_handler_and_data(mpc8xxx_gc->irqn, > - mpc8xxx_gpio_irq_cascade, mpc8xxx_gc); > + ret = request_irq(mpc8xxx_gc->irqn, mpc8xxx_gpio_irq_cascade, > + IRQF_NO_THREAD | IRQF_SHARED, "gpio-cascade", mpc8xxx_gc); > + if (ret) { > + pr_err("%s: failed to request_irq(%d), ret = %d\n", In drivers, it is preferred to use dev_err() instead of pr_err(). Please swicth for dev_err().