Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp643626ybl; Wed, 4 Dec 2019 08:34:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyKf9aYuMe/lrb+1PH7FYjUkWo4opUlTdVY5N3gSuJRHdModbjI0aFwdn1pgjoLyStocZpX X-Received: by 2002:a05:6830:563:: with SMTP id f3mr3026053otc.276.1575477277976; Wed, 04 Dec 2019 08:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575477277; cv=none; d=google.com; s=arc-20160816; b=YbiN2fjL7JQTo0Cud9ihq/4RCuipFJMnF0kHjXXPAk6MeLLHvRSqqt9K/yFTi8YFBh mIG2RQ205KZQ0MnXuHZDamM5vvNbsE9cGFDINtUxd9feL5X3t8+ODArmBUGoFn0FfEJD K1dWc0rYi8ygj+jbjAPNCdPF0cRhnYyKxkb1V6cJlcJKJQpTWf56DjiwMdpkExyO6onM mn7drYBuJoQQFRWc9r9J4l5BheoRZH76RwhZVJEdlApySqy6UKYAVtbQR+y8lfZpovt2 8rN8InLMjRQK49yIZeGs9QbtWXECAHoWsfI+Bbtrh7FnqiDe6wDiEffk2NPpIodTNutx pjgw== 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=n2y9bKsjHQQ/sQYW5a+q8cQ+TWGbOrBBM4+4Kc0+440=; b=H9WaAA1B96LnBCna3RdeQv6gtLUw397QGcx9ZLmvAvj/lp+zfJ8sJ3Fswvs7nRlD1G bRti3WZFmf5BkdlqngGQjouKJAKy9ZGJrwIHB8iOIb3H5afAFRwzuz0O80/1MvnV6VS+ /MXRlVaWJFEjRRgnF4jebv/4+VYxyqcDs5hvBxLWvfMwyno5XCCiyIFxfi6ykmNW0m6v ukIOl6OjX1lpPqmH2D0u3DLwRulhNc8hLMfizsefv3Nn+bmuSsxON1xcgsoJXIYivORO NGkuxN315eJQtcPQWTj5wwNlbr/Y5Q6Z1tQFWwHVK+h5l2fxmYi3XWcHWI6nHSnYhZvF gz6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=pEoHuUuN; 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 p129si3370064oig.118.2019.12.04.08.34.24; Wed, 04 Dec 2019 08:34:37 -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=pEoHuUuN; 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 S1728841AbfLDQdQ (ORCPT + 99 others); Wed, 4 Dec 2019 11:33:16 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:45270 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728241AbfLDQdQ (ORCPT ); Wed, 4 Dec 2019 11:33:16 -0500 Received: by mail-oi1-f194.google.com with SMTP id v10so5340576oiv.12 for ; Wed, 04 Dec 2019 08:33:15 -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=n2y9bKsjHQQ/sQYW5a+q8cQ+TWGbOrBBM4+4Kc0+440=; b=pEoHuUuNqCmDLMoZdmaR8AvTgeAlEVhDMUh7j1A3rIp0mq4dyAAeTeZG0raj7t38/y u4V8BlZTZNAVDz2HJ6suNvgMfl3G55Bmef9/ApmNO3bFOn0uZXyFGH0hPxvBD9E1tBZl 7rfMDg6n5pdvH+nzBjgXMq/uKKDSc++l9eeCOFbfiJAi3WIR2gAAmanN51TGgExcnOZE FsYu0UDVwSAcncxisd5UJOCkfCbk0YUXMRh7E6ZEkMFldf9F5msPfq6DV74gmCJ3hI6C yLjtO9dpa6WoelsjKpnTrGRBxE3WhRKTKWL530Bg9WX6BsN7u4IGclcds4vTn658Qam/ BwVA== 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=n2y9bKsjHQQ/sQYW5a+q8cQ+TWGbOrBBM4+4Kc0+440=; b=YtZPJEjpcE+GI4a/qGEIkFfdMEjx6OzEwU0QGqSGfj8VTxV/R4zC6mDhAMoBIVrOz9 bglb350w4q4TTFnUTLmwflsxFHj7C0sVDF8sgh78uEhO4aG9Jbq49um2RhCG/DZ0gEKT b1fuEBTFnHsnoBWlftyYduuGOOOF4OvoXsJ1DrxXvMh7nKCJvbhBn9uwFHtrudAgvFD9 rUCOrSK3oknEWmS4KjKfxwiaismo81zPsU5AfqJQS97kypjeTOAE9LqJcGHILco74AnH sMFkicGRu3Sla7BLMRLvZXuOO25UAl5CN+F7xUTRMcSID4XiJbFKVzfV1Z+OUdjyPdav OpSw== X-Gm-Message-State: APjAAAWLJfsZZcUL0eIr6q+I8MyO6G7qP8RJAHqRmukjprvzaZi+S8hF pKN2sP72K3Y/eJ3TaW+1SFFNlPmfAXgIrkPGJhntKw== X-Received: by 2002:aca:d904:: with SMTP id q4mr3404877oig.21.1575477194797; Wed, 04 Dec 2019 08:33:14 -0800 (PST) MIME-Version: 1.0 References: <1575433106-16171-1-git-send-email-peng.fan@nxp.com> <20191204072422.vfo3mrrcaav75jv4@pengutronix.de> In-Reply-To: <20191204072422.vfo3mrrcaav75jv4@pengutronix.de> From: Bartosz Golaszewski Date: Wed, 4 Dec 2019 17:33:04 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] gpio: mvebu: 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" , Alice Guo , Sascha Hauer 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., 4 gru 2019 o 08:24 Uwe Kleine-K=C3=B6nig napisa=C5=82(a): > > On Wed, Dec 04, 2019 at 04:20:41AM +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 > Reviewed-and-Commit-Log-Provided-by: Uwe Kleine-K=C3=B6nig This is not a valid tag, but I take it as Suggested-by and Reviewed-by. :) Bart > > :-) > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-K=C3=B6nig = | > Industrial Linux Solutions | https://www.pengutronix.de/ = |