From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6E28C48BDF for ; Fri, 18 Jun 2021 12:57:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B8DB610CD for ; Fri, 18 Jun 2021 12:57:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbhFRM7k (ORCPT ); Fri, 18 Jun 2021 08:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbhFRM7k (ORCPT ); Fri, 18 Jun 2021 08:59:40 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1DA3C061574 for ; Fri, 18 Jun 2021 05:57:30 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id z22so13877000ljh.8 for ; Fri, 18 Jun 2021 05:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jF9pURhxENYTan5Ye25myNYhrCwRUkpmo9Dhc1bSoEw=; b=Fn1HoqFQ7nmte0xZq2YGQaecysC995DoLNw0dPEbpUb29LBrXndNbXR8166YRlUJVB Hy5Q6qC6HbdEUIG416kJGF77qu0h+b36HZ0i8dYKtv2L/V+Q5PVcBGj9hfKxJDmyn7++ IDk/xnxQMETjdsM23PqVYNggB6Ab1iaWEp4L30wxFtLNm98sN3mPcE4vMhrMfBWsMVJ8 CJEzNUprRnBYhC5CUduiA79pcyarIlvhq+Jbuafl6nJAZcD08KzAKZy3mXhd1+vhAJw7 As65MkJlZnyuBGf524rGROXZwOJDYoQ8jJp6cO5tXS8Z+7ruRhDdb+oFnAtvMgDbPJDn MGiQ== 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=jF9pURhxENYTan5Ye25myNYhrCwRUkpmo9Dhc1bSoEw=; b=JgoZJO4zfY2C2jS8BmMAeJ/+O5wTnN9Cn+8Igu0Np0m9I8QRtHg41sqtmrbX8diqHM 57fuOB9aNZ9QiSveigvzWzoZm8dy2B4cAa0aCsQzyhTRAzlOWa/GIRK4oER9cDIvUGtV 3rv+b91fpnK9iJWUJVC2ZBs3gQXFCahSfkfOJB9KaczcDoWUyCtUw3/4Td5vO7k55OOJ 23PIWn0yxtCMt7fNCmwVwkTUUDnuZxuXZ4rvSCasoyvnSBXthWRvig4mPUedhRHEyrcJ kdKCM1uOVxS4e1+qRlBCuJL/sSspqiWVuTv2Hra3r+KIpfu8ajzxgLBzWDfVLmTw2ftc aZlQ== X-Gm-Message-State: AOAM530Q+GQbap7Coa1ZY7A3kSBZ9Lr/NThvv4VoCmO4rlUPbj+bsjmD 2NrxEKizwAUe/b0DihyXB67ufxxGWpxmkXJTaUloOw== X-Google-Smtp-Source: ABdhPJyh4rUqU+FLUB8CGIiTuIm71e/bqTQUmglrgI5HwwqBSedgi9V+DbUL9LCrHJeLKACwerPho5HhQJ7qZLptpDw= X-Received: by 2002:a05:651c:1501:: with SMTP id e1mr9644806ljf.74.1624021049247; Fri, 18 Jun 2021 05:57:29 -0700 (PDT) MIME-Version: 1.0 References: <20210617144629.2557693-1-fabien.dessenne@foss.st.com> In-Reply-To: <20210617144629.2557693-1-fabien.dessenne@foss.st.com> From: Linus Walleij Date: Fri, 18 Jun 2021 14:57:18 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: stm32: fix the reported number of GPIO lines per bank To: Fabien Dessenne Cc: Maxime Coquelin , Alexandre Torgue , "open list:GPIO SUBSYSTEM" , linux-stm32@st-md-mailman.stormreply.com, Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Thu, Jun 17, 2021 at 4:46 PM Fabien Dessenne wrote: > Each GPIO bank supports a variable number of lines which is usually 16, but > is less in some cases : this is specified by the last argument of the > "gpio-ranges" bank node property. > Report to the framework, the actual number of lines, so the libgpiod > gpioinfo command lists the actually existing GPIO lines. > > Fixes: 1dc9d289154b ("pinctrl: stm32: add possibility to use gpio-ranges to declare bank range") > Signed-off-by: Fabien Dessenne Patch applied for fixes. Yours, Linus Walleij