Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1025373pxb; Thu, 24 Mar 2022 11:16:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkPFy8VVTYuSUjtridOzz7mAAxw72OS7B5HdK8mVS0hrDh5xCFtiaePuYhDk2zX4R5en4x X-Received: by 2002:a17:902:ce02:b0:151:a86d:dc2b with SMTP id k2-20020a170902ce0200b00151a86ddc2bmr7266945plg.57.1648145767387; Thu, 24 Mar 2022 11:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648145767; cv=none; d=google.com; s=arc-20160816; b=KBlKiGTmMPRUyXfRcYQl5tVdqCPz59trlEJXhFg6SDEGY1Z+uQkuIHiowY6HFhZPCi /El0DpbHfSKJ+BDmb1HSnQoOKRjf9o2Gx9gU+iIs8GBlN8X1n+maumMuLVw10IrEdZTf xweZj3cjJIbWJein3VzA7Ukk+oOMAyOOq64sJxnrBOqp92KNsuj8OdNhqdZrqMz+jj/g iht+QYMy/03TmJuvT0EdinhapEtIy11zvzqMpmHcR3P56Lw0ytuhegbgqoJKiKh6KMQg zrAxMNdz5euguRKxGiEJtsBJrcG6nTQY2ErxKgIHv7i0v0FIk/q+raVogD1UeiW1ePSA 4zcQ== 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=Qrk6r9glyK9xF4CKtMgGQNnRspxyzNOiodD1+Os1QjY=; b=bqSYGO5V0cpM673tH48ZO7AtLDElFvskN18GLTVn4j2YU/UEkWqhsxEqww7zdbWiUq zQwMoKfmfGTiBZy6vVDUogpsO7SnUBpwvwbXAadctjZfld+9NB6xEjrVwSNflceDOUzu 4PqNgLVW+oD6hUUyn23VSHAf1r1Md73YqJsHwoKmplQNWBdaXaRNlrBIZ+1NYiQs5i4O 94r7oiGx1X8Da3WPvq2R9kuBn7OXQw6aRYLv6RFvcEIwqc6pNXPVpgdlJ3cTrnXpHFER sp7LVcX5CFl5VsgVZHuz+0097MVh/EICaT+ukpjFbkBtoU0KBUJmivvcEkRSxDKWEiI+ VB2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLVocad0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a170902729300b00153d85f77e5si20559944pll.503.2022.03.24.11.15.52; Thu, 24 Mar 2022 11:16:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QLVocad0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344772AbiCWUqF (ORCPT + 99 others); Wed, 23 Mar 2022 16:46:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbiCWUqE (ORCPT ); Wed, 23 Mar 2022 16:46:04 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30341A196 for ; Wed, 23 Mar 2022 13:44:34 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id o5so4930723ybe.2 for ; Wed, 23 Mar 2022 13:44:34 -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=Qrk6r9glyK9xF4CKtMgGQNnRspxyzNOiodD1+Os1QjY=; b=QLVocad0NWOVxzNN1cy/5Y+/WAMd3y+BrUQBFyy9oyoeuQX84gYTvEWgwJvsvyIJ5D eJhDhFBSHzh6vh6xr/TCN6QKqd9hz90VhLezr6Wn7uzQQXw5u6Lei2MOSLukwMoHdRd5 8ggBfGMJQn+zAP2Y57w3jRnN+0GSUxJJZHK2DQ5705fFeS/mmfCcB3iXX2PKJiHpSyzv uWBw2F+l5zbtbFTr2rWF9eC33TXYNyNwfS8j9vEb2WB3B/MlFI0PHbxVJ8700K2AoUGI 81ZQGsZVQ+NzcUrweXGs5ekkJc7p7DNUYgEt3p07hXVM1VsWSZ459q7+6eDrQ/FRIifU YL8g== 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=Qrk6r9glyK9xF4CKtMgGQNnRspxyzNOiodD1+Os1QjY=; b=gVEn6klbviUIsK99FEF/YqoTo2jRa/CnQ7dmvQxNQg3QxL/ieZERQL/yz+1iwtk+2z L5Mb9BK1M+kG42CS21O1reYU6O5yCjCfVasd1uDTGi+nIHbW3EpxYvXFWinENbmJ1MKG aj7R7YU06artEuthRp85aDSlWUMlUWyY2txAj11s0GNfLnwcE/EqEcYnxtYGEpkVX7Z/ +EVOoK39tP7NLpTN7mAXYMJu0Lq+2B++Zz5m6UCQBWfMEAWIIeBc2189WzD/hNQ1aWf3 CaPM6fAN18QPcKhA8hHJoejqxCUsja5AccaRO5FDqEbEMCe/jU0/JG8s/pOy2/p4W5hU KVoQ== X-Gm-Message-State: AOAM532Kfm9v84U+bvhhyR3dJEU2EM86Vl6rJ/IW8YPoyPPUS8lm57o1 p1UvRsN7kk6aIA0CPW0h74rYLl+YLcUOyach/1rS0A== X-Received: by 2002:a25:f406:0:b0:628:c29b:5c39 with SMTP id q6-20020a25f406000000b00628c29b5c39mr1868489ybd.369.1648068273416; Wed, 23 Mar 2022 13:44:33 -0700 (PDT) MIME-Version: 1.0 References: <20220310150905.1.Ie0a005d7a763d501e03b7abe8ee968ca99d23282@changeid> In-Reply-To: From: Linus Walleij Date: Wed, 23 Mar 2022 21:44:21 +0100 Message-ID: Subject: Re: [PATCH] gpio: Drop CONFIG_DEBUG_GPIO To: Brian Norris Cc: Andy Shevchenko , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , Jianqun Xu , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 5:31 PM Brian Norris wrote: > I'm also curious: does dynamic debug not suit you? > https://www.kernel.org/doc/html/v4.19/admin-guide/dynamic-debug-howto.html > TBH, I never remember its syntax, and it seems very easy to get wrong, > so I often throw in #define's myself, if I want it foolproof. But I'm > curious others thoughts too. Dynamic debug almost always assume that the system comes up so you can go in and enable it manually. What about problems during boot. Or if the system doesn't even get to userspace? GPIO and pin control can be critical system resources and the platform may not boot completely or mount root as a result of some problem you're debugging. True, there are ways to pass arguments also on the command line argument when the kernel boots. Figuring out how the command line should look to enable -DDEBUG at boot time on say drivers/pinctrl/intel/* is a pretty horrific exercise. Add to that using the boot loader interactively to type that long argument in for every reboot. In all such scenarios what people do is go into the Makefile and add -DDEBUG to the CFLAGS as a hack instead, because it is faster and persistent. Adding that as an option in KConfig achieves the same thing, just easier than hacking the Makefile. Yours, Linus Walleij