Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1239755pxb; Sat, 16 Oct 2021 05:15:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi+Y574+m7LESs81Ud9dnWXPGpK6IO1Owy+dUO1wR8pj8rCGT9PrIhl4hLGKW5ootM9FeS X-Received: by 2002:a17:906:38ce:: with SMTP id r14mr13998407ejd.268.1634386517373; Sat, 16 Oct 2021 05:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634386517; cv=none; d=google.com; s=arc-20160816; b=MhKvqqs6CJyI0DjzCPIKkQHFGaIvaMGiuax7R5VeKZGFogpP6sOIohKiEgwWzUbGJ5 yCWRhuFM0qzF9eHC/eqhrmNpkIGi4BRjfcW1CKbbbvJPGnKQmHYIoJUsyTwKHLdVrgBO JQ4LQXCNXS74l2bRioCcpVjNsTzZbbWiFbIXl/SL6Q76GQKsjGVm+CYw1Xj7kBFSbxiX 6ZM8OPVxM6BomDzvWkdK5M7gl/r37yBTR9MZO/qIz12ZJWv25t2Pa2+cBiMdZ2AGVCSr HNXC+wVWTkidN8wsjiXm8rOg3+D0bqi19aeYMvoDKXbc6o4VrpBiwhxrTbVNxEfRcAS2 rBag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YJvkSzyQ78CqYoM3LpjKLXCFiGcDw/gxiiosR4pYAts=; b=A36PM4jbU4BEg+57xddRLsC3nMcstZ9xjRlLXWRp2o4tOVAXZmdmJlw1PxY58GQN6F 38oZSc/e5fJTPAhySVlPj1Mie5S7qbeS6Erh4eUx8X7GcFSQ2Wa4ZKWoL2szMbaiSMGU dreJMJkOZG29qGdmctKOEunISAzeu38s8yH7nZy7yugQVuF+QylVEJlDKhLCNsrzzeY2 H+X12tLf09oHRNvBqXl8Yu/W7iXbeiHIplCujGXs0NW0CEBf5hGVDW0K01Hbsx+dn7CA jA2+bCN5WHxoY6x7r9pWWwi4Ibd1U9t17u4zrPwAlsJoGC/kw5Rudldd2Qijej+Uc5j1 PlKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gdQ6fTdS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oy5si12082427ejb.560.2021.10.16.05.14.24; Sat, 16 Oct 2021 05:15:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gdQ6fTdS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240136AbhJOOXx (ORCPT + 99 others); Fri, 15 Oct 2021 10:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234738AbhJOOXw (ORCPT ); Fri, 15 Oct 2021 10:23:52 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B75F6C061570; Fri, 15 Oct 2021 07:21:45 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id w14so38629282edv.11; Fri, 15 Oct 2021 07:21:45 -0700 (PDT) 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=YJvkSzyQ78CqYoM3LpjKLXCFiGcDw/gxiiosR4pYAts=; b=gdQ6fTdS7XJZYq2+NhR3rc6Y7khiDldFEjo7t+jPn+6KN13hATH69dN7P6/WwcYDVO bJlbHow0eZIww6iM8K57So2Pl1uNS8inpMV8CxiUUMCIw9684H3wUeUycXm2/kFbiKoq mTX5FfOwLJRgtq9/YY5QitMhdfE9MMJ9gUAxLAbNYG/DHhiYfHKhgorUKU6o2nx7HfsX REytZI/zQ/oJEPvqP95et43EvxciwuzcNhwmspzPewQ4T7TO6K5uOVEFkITDYQ3S9eqS 9eqxzSDU4ADuu0d216KCQPXjrqFI8yeW/04TtfTJxcGfh/fbz2KIS6kVVXobE4V4QHAm 8Y5g== 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=YJvkSzyQ78CqYoM3LpjKLXCFiGcDw/gxiiosR4pYAts=; b=vuibIWduyfJz5DHauPH+HCH4TsgsGDxyv2RIDWI9aV+52G62UyzDEAoLYk2QJ4M1gs S+4xEizjQQmyqKqcRQzYCgmL8XWmrNNOVp6IHxB3OENdTs3CEj8kcdrav56gPw12MW/y jdgpnjSdti4j401jZ6lV2Xu5Vw93wS0nSt7mDKZKciWfD+x/bUpHrdW7Lasa3WrrjUhu Ola6Lnmse6ZtieVF3qgt51Z+HluMySqvqrW5yFgsssPAFTJVO7B4jU9ksWfp/x3iiZn4 JhHgEzlevtVshc37i87Hhcszxia9kr4q2ziWGtqWbwfOfzdQREAIm0ChH4L5L6Xs7PrZ w7XQ== X-Gm-Message-State: AOAM532l8UXkJ/cbZDe85vKhbJsrEmal0OH6Q9sIvOVEQk1kEHOwgd8c zJEMETvAfeXdJ7Ih4lIvLDqfYVpDZIPvfMxP4EB97qgRHnn0rnMt X-Received: by 2002:a17:906:2887:: with SMTP id o7mr6897247ejd.425.1634307671194; Fri, 15 Oct 2021 07:21:11 -0700 (PDT) MIME-Version: 1.0 References: <20210325122832.119147-1-sandberg@mailfence.com> <20210621172053.107045-1-maukka@ext.kapsi.fi> <20210621172053.107045-3-maukka@ext.kapsi.fi> In-Reply-To: From: Andy Shevchenko Date: Fri, 15 Oct 2021 20:20:23 +0300 Message-ID: Subject: Re: [PATCH v5 2/2] gpio: gpio-cascade: add generic GPIO cascade To: Mauri Sandberg Cc: Mauri Sandberg , Bartosz Golaszewski , Geert Uytterhoeven , Linus Walleij , "open list:GPIO SUBSYSTEM" , Rob Herring , devicetree , Linux Kernel Mailing List , Drew Fustini Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 3:56 PM Mauri Sandberg wrote: > On 21.6.2021 20.43, Andy Shevchenko wrote: > > >> + gc->of_node = np; > > > > This should be guarded by CONFIG_OF_GPIO. The above is actually done by the GPIO library nowadays. > In the Kconfig I have a dependency to OF_GPIO. Is the guarding still > necessary? Or should the guard be added and dependency removed? Or have > them both? For this kind ("generic") driver the OF_GPIO dependency is simply wrong. You shouldn't have it. -- With Best Regards, Andy Shevchenko