Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp431206ybl; Wed, 11 Dec 2019 02:05:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzsZbbIk04HHtrZO8NgIfXLjfIQcNvtw/HG8nsdc9FTdpYbnHw2AGf2hpIBaVoLl+kZstHY X-Received: by 2002:a9d:74d8:: with SMTP id a24mr1793590otl.100.1576058734984; Wed, 11 Dec 2019 02:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576058734; cv=none; d=google.com; s=arc-20160816; b=eZDlrfdAOIJQ2fbiygwVTl5W4BARL8cSkOhqvw8RWDOR11ILZ+IyeWBMB+YsouEfJA 0kYq+MEA8Scnj0ysAQEA6csvjeARoRqx5CkDaOU9NfEfsrsw/BBfTEe4r06rTEaM2rQ8 AAoT9K0o8r+VAnGOTceGJhzpEVP4K3rrT4bxkSnI5y+RaNl8mho5LjWt+YYfavKo7A9e jnpSW4y2a5aRKwvJrseCYOdn5auWT8iKB7z45jVcx/vErAGdOHLhAAdnZD8xviZOgJbp fh8IHidh2bLvEYYWVHqsGtlm0VZkb0p7AAfDV19HYsMD/W4/nQsMZGY3yDTWxgLoKpog snfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9cAOkUmumX1baWPx8mq3cUq6Rwz3U0hfDddkRl9OQAQ=; b=aCQUl+m0zebRQoDsz+HpCgGzG0NuKI+xJ5JH542y0cyP4S7KmM+YYrkKT2eukUfmIk pHBJ+wcjQgtUbGk3tLl6YmyMNnOyJd8XVfPcGPrqPkfcG8DY2RBvD0/kF24pS5c0LNqc YxM9aot5NJMntNqsqg+/8onyQAZqjQCeKjH6lJ8kanu8JvY6PzEiCq8KcuvNxZkXJrL8 OhnmBc2UpQRK2/68tUWtEXCdA1lS4eNiiQYA7NbiJkuwExoXVvkGWyGDfsKn8mKmol77 UoY5OKulSzmmNPQx76kbLXDcsYCED/mn6bIK+MV04OM7mAFU9ko0eBO1/LNeO0y/DeId vwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="aMd/OWlq"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si816210oig.184.2019.12.11.02.05.22; Wed, 11 Dec 2019 02:05:34 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="aMd/OWlq"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728660AbfLKKDZ (ORCPT + 99 others); Wed, 11 Dec 2019 05:03:25 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33018 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728634AbfLKKDZ (ORCPT ); Wed, 11 Dec 2019 05:03:25 -0500 Received: by mail-qt1-f193.google.com with SMTP id d5so5786051qto.0 for ; Wed, 11 Dec 2019 02:03:24 -0800 (PST) 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:content-transfer-encoding; bh=9cAOkUmumX1baWPx8mq3cUq6Rwz3U0hfDddkRl9OQAQ=; b=aMd/OWlqZFzVIYrC+5D3onezrFpfiY4lwf7ZzCS9YYoEonUgO1FmDUptCXo1djU6bW h+QaDHb47NJmtyOD3WXT4eYT/6dSgxYeNQHtHWgTNwBGc93BJslZj5h3bItsM/Sp0elI s2kIkrYn6Z3mrggJns1IHJaC0pNM5zoNKf0zLLWf8OVHFADMNfNyRw4oCZFvJZ/eyjZQ bSuJHAkRw5ur5UgivinXLJhcnGlp6WfQuaTeZUFVJ0k1JT8bShEN3ZlpuIr87RmikCLQ CqS/SyxpwJQEnUaaRRAAt20VRZ+wWw+zHWEy7Lyy6Kot8b2T77DKtGpG3Bvkmknv4nET 1qxQ== 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:content-transfer-encoding; bh=9cAOkUmumX1baWPx8mq3cUq6Rwz3U0hfDddkRl9OQAQ=; b=gnQQ39sKq+V45FyWxLStFefQPTuVbevex6jt4DwLhJpdqIs5ESsug/0euY/jPjingn AgjssUxs+iCa+wyAPPcBMm4RrhUiP0ZfiSw+9/ObXsEuSbZKdMP4Y0kp0o/u48vNs4CM sF7UhnhXzOvqXn7pc9AnDTZ+qzAfojt1whZg0LXtJFT4uWmem5wobjrQPpC5Xc5amhUn s//H3TcjDVa4hIt7Adav9GL+h2KuyJ6rE0xGvsUGi3+gS4bgAgQWe34fCPNqE+po3jhK rRZcD8pl5C2cofq3s/c5AwBzqyTRlAWoTfx2wxA2fD1gDcmXSMhTMyIfd+wIVPKMSeUf XvIw== X-Gm-Message-State: APjAAAW2wLEzsNTz9WZANMPt/ir3XYC6jCT9nVxEtkRYljR3B+lwHmVB 7tQ6sjNsknPDMTWN+UA25ix1ynsCyYGOJBH3Ou2zkg== X-Received: by 2002:ac8:5208:: with SMTP id r8mr1934293qtn.131.1576058604073; Wed, 11 Dec 2019 02:03:24 -0800 (PST) MIME-Version: 1.0 References: <1575451330-11112-1-git-send-email-peng.fan@nxp.com> <1575451330-11112-2-git-send-email-peng.fan@nxp.com> <20191204100925.sjp6cztozlm5qm6y@pengutronix.de> <20191211094954.qk44xv3uh33rgz7z@pengutronix.de> In-Reply-To: <20191211094954.qk44xv3uh33rgz7z@pengutronix.de> From: Bartosz Golaszewski Date: Wed, 11 Dec 2019 11:03:13 +0100 Message-ID: Subject: Re: [PATCH v3 2/2] gpio: bcm-kona: use platform_irq_count To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Peng Fan , "rjui@broadcom.com" , "linus.walleij@linaro.org" , "f.fainelli@gmail.com" , "sbranden@broadcom.com" , "thierry.reding@gmail.com" , "robh@kernel.org" , "bcm-kernel-feedback-list@broadcom.com" , dl-linux-imx , "linux-gpio@vger.kernel.org" , "linux-pwm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 11 gru 2019 o 10:49 Uwe Kleine-K=C3=B6nig napisa=C5=82(a): > > On Wed, Dec 11, 2019 at 10:30:33AM +0100, Bartosz Golaszewski wrote: > > =C5=9Br., 4 gru 2019 o 11:09 Uwe Kleine-K=C3=B6nig > > napisa=C5=82(a): > > > > > > On Wed, Dec 04, 2019 at 09:24:39AM +0000, Peng Fan wrote: > > > > From: Peng Fan > > > > > > > > platform_irq_count() is the more generic way (independent of > > > > device trees) to determine the count of available interrupts. So > > > > use this instead. > > > > > > > > As platform_irq_count() might return an error code (which > > > > of_irq_count doesn't) some additional handling is necessary. > > > > > > > > Signed-off-by: Peng Fan > > > > --- > > > > > > > > V3: > > > > Use %pe > > > > > > Great. Note that with %pe there is a dependency on commit 57f5677e535= b > > > ("printf: add support for printing symbolic error names") which was > > > applied during the current merge window. > > > > > > > Why would %pe be better in this case? The function returned an int - > > why convert it to a pointer? > > The conversion to a pointer is (currently still) needed, because there > is no printk facility (yet) that consumes an int error pointer and > results in the respecting code. > > Somewhere on my todo-list is an item to fix that, but we're not there > yet and so the best option is to use %pe. > Fair enough, I wasn't aware of this new format modifier. Both applied. Bartosz