Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F829C433F5 for ; Fri, 26 Nov 2021 17:27:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229896AbhKZRap (ORCPT ); Fri, 26 Nov 2021 12:30:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbhKZR2l (ORCPT ); Fri, 26 Nov 2021 12:28:41 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7421C061D6A; Fri, 26 Nov 2021 08:58:23 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id w1so41514336edc.6; Fri, 26 Nov 2021 08:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/cj12yNx+8MhDFy03xDOyf1KZM8MF6fnUqCuiicwspE=; b=FiYTkTldngnj2AjjXPfuese/k1KOh0xkon21keGZ2+iQlc6m/MPpNcHq4fD3AuxCXS 9YIX0CvigSmnvYWKzYmWmFekWlPUpYWWoUczWKucPb1efzx42aYvFUpz6dlozkKJPlOt JYR3kv2fNkMpVsOklKCOgml+TiDIxevfofGUzsu8dOkxf/DW/1PmxcsGdbnRz6VwrvPP tKEXbnynEqHxIp/dDwvQf1Pkoglx/kPSzrn/EK5FWD3y/Tb3WHreIg124EiDkQAlb+YP ai9iwsCj/SNtcVfbWolFbvp3vvNQClvkrDqIPJPyrjkpI0mx8KAB+MGZWhU3o5Z/IuMm tQqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/cj12yNx+8MhDFy03xDOyf1KZM8MF6fnUqCuiicwspE=; b=N5kmritKc/i5hpJCQag3bkobbkP32N/OkIdwWxWkKV2XcL/lftBbE+gNqgjr0nfyJe M6xFK6CjV/UhcB2Om36/dgVpDfIt8tU2IPteEuCp1y6l/zlv7PEhmlVzyfu6eJxqaUrB iDwu3fPyouHfOWjfJ7BzKRecP6qj85VtxC5iYRdRS/LsK5G+qJxNHaKpGjesHsr+1oVs YRjGgPsRNiZBQzByrwY1Rgqrp+Z6AgQ2FiePc7/35pFJ4lzg3w+02P4NTAPIZm0YWMk6 7pSky2ruQaqlY0J8faR3669SgMQFg5KIlB6zHiZOABYFwSRJjAOMRnXv986rs5Ismlpj nH8Q== X-Gm-Message-State: AOAM5305J9XCuwqgZHOIovN0aNQ0165MH8QFe/2uzfruuDDUjVptK7uv SWIfYATHW7MKwpa9ipiTubaBQefRqzjJi28u/9c= X-Google-Smtp-Source: ABdhPJw2HiWX3hnwC3PefguvXtotwxycD8rkwoWSKOFfmIWSx0TtwRCADA82IHWFv2/GurbsAEEeFKgSAdXrll7+FYE= X-Received: by 2002:a17:907:60d0:: with SMTP id hv16mr39403459ejc.425.1637945902315; Fri, 26 Nov 2021 08:58:22 -0800 (PST) MIME-Version: 1.0 References: <20211125110738.41028-1-nbd@nbd.name> <20211125110738.41028-13-nbd@nbd.name> In-Reply-To: From: Andy Shevchenko Date: Fri, 26 Nov 2021 18:57:47 +0200 Message-ID: Subject: Re: [PATCH v4 12/12] gpio: Add support for Airoha EN7523 GPIO controller To: Bartosz Golaszewski Cc: Felix Fietkau , Linux ARM , Rob Herring , Linus Walleij , John Crispin , devicetree , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 26, 2021 at 6:40 PM Bartosz Golaszewski wrote: > On Thu, Nov 25, 2021 at 12:24 PM Felix Fietkau wrote: > > > > From: John Crispin > > > > Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 > > GPIOs. Each instance in DT is for an single bank. a single ... > > + err = bgpio_init(&ctrl->gc, dev, 4, ctrl->data, NULL, > > + NULL, NULL, NULL, 0); > > + if (err) { > > + dev_err(dev, "unable to init generic GPIO"); > > + return err; > > + } Since it will be a new version you may have a chance to replace this with return dev_err_probe(dev, err, ...); -- With Best Regards, Andy Shevchenko