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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F1A1C433F5 for ; Tue, 19 Apr 2022 21:19:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357962AbiDSVVr (ORCPT ); Tue, 19 Apr 2022 17:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355594AbiDSVVp (ORCPT ); Tue, 19 Apr 2022 17:21:45 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2DE54198A for ; Tue, 19 Apr 2022 14:19:00 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-2f19fdba41fso61231697b3.3 for ; Tue, 19 Apr 2022 14:19:00 -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=JTBRAk2t8PEn0HtzBt41SQgoxOHmXIHgpH6lQZY1Q/k=; b=N2ltOCHYQunALsL7Akx+n7Htbd/J/0oAyhU21Tqkvk2userzJ54VDTkoJFkRdgw729 G9Wge8qHV0ck3krV2nz485ztB0+lemqa1W1oLVkeuIN2ZwRf3UJ4gILsliIXUKY5LHSB 6ZMkM+F2pSDMFdEYYVcEefdBHort87t+KmN3xs2vWdVDKU1jocFJhICTc500q3Et5yo2 GLwsTcu04B1eSt/M25GIQLamVfA0KuD15cplch2eVQSOYsDovfxjF4JImwNjTD35itRa lBQVuMYBIVkuKQw+C6lEDLvifzpq2AxMKxWiaFgsuwHvryroBJJrv9yJvX5wu0TFKHsR TlLA== 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=JTBRAk2t8PEn0HtzBt41SQgoxOHmXIHgpH6lQZY1Q/k=; b=xwX2J5WuT803aqo02lzks23HbDkMq3te4KWRXkHp46aLeSjfEGizwlo2BTBEfa3vJY 8ZntX6mQP9B7tzRm20zgmpSHYliOi/1nnmxN8UCC8dN4Q3st3+KU+/rg+rf913QyAAYQ WSN6hhTMTyOct89PJBGfqTm+s6IC2XVSEOmBOonHYchyo81Rgab66EKO90kc+p8o+aFi nRF6Xl1o8uQL7Ks7JYltLWEBZNQBNeUgyPrFu3Zz08xYoYnV9+f/rl6Neqn7BBbfZtoy //M/DcxuSqrWzh0wg3UPAgyq6LhTxeo6DRbM0w4SPKcS4sAgn845oHAj4wFfEZAHtsEl E7rg== X-Gm-Message-State: AOAM530HIGLk4RLUaGiBzh6TnmXvAQ/AwEp5jLi7Pov0QJf1xapPSg/D SpIsm0fzJadz/Mrf94Q1hKU+6pg4WNENz8E8DdbncQ== X-Google-Smtp-Source: ABdhPJyvzA0ucPhfVuKj32ZOlB9M9RIKJlXu/Jp9YqtwmgA7/zQNOPVdCKLQJxb27wXF/7oMWVE6C6vsk7SE808uT4o= X-Received: by 2002:a0d:c4c2:0:b0:2f1:6c00:9eb4 with SMTP id g185-20020a0dc4c2000000b002f16c009eb4mr15715169ywd.448.1650403140112; Tue, 19 Apr 2022 14:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20220409095129.45786-1-stefan.wahren@i2se.com> In-Reply-To: <20220409095129.45786-1-stefan.wahren@i2se.com> From: Linus Walleij Date: Tue, 19 Apr 2022 23:18:48 +0200 Message-ID: Subject: Re: [PATCH 0/2] gpiolib: of: Introduce hook for missing gpio-ranges To: Stefan Wahren Cc: Bartosz Golaszewski , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Nicolas Saenz Julienne , Phil Elwell , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 9, 2022 at 11:52 AM Stefan Wahren wrote: > This patch series tries to provide backward compatibility for DTB which > lacks the gpio-ranges property. > > The commit ("pinctrl: msm: fix gpio-hog related boot issues") by Christian > Lamparter already contains a fallback in case the gpio-ranges property > is missing. But this approach doesn't work on BCM2835 with a gpio-hog > defined for the SoC GPIOs. > > Based Christian's on explanation i conclude that the fallback must happen > during the gpiochip_add() call and not afterwards. So the approach is to > call an optional hook, which can be implemented in the platform driver. > > This series has been tested on Raspberry Pi 3 B Plus. > > Changes since RFC: > - just add all collected Fixes, Reviewed-by, Tested-by and Acked-by Patches applied! Sorry for being a bit slow on this :/ Yours, Linus Walleij