Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3369835pxp; Mon, 14 Mar 2022 18:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuUuwC1uDSkzlsKoGYtWXN4G1hfPuRZE+Wunte2Pxrn0b1RxkY1rBG2IQJuBUMoE1Mar+G X-Received: by 2002:a17:902:6b4a:b0:14d:474f:4904 with SMTP id g10-20020a1709026b4a00b0014d474f4904mr26105825plt.122.1647306192528; Mon, 14 Mar 2022 18:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647306192; cv=none; d=google.com; s=arc-20160816; b=qhZ81CFmWwv7kE78/GVfo0oV9V7imqcNxjtjbkjg4l2hVaZ3qlcFVhaCledDEFZukI cvAVhznFBT0Lxk1MZBfF29RvqfnkVhyPxJ4Krv+m/kW81a/33l/KEPaAdAQ29qNSpdkf DyeCXfNTNcr612e0/FPz9reA++UhCHOAK4BKgkrudagPlByWhqpNKNX5mMC3krJXF4/y WFnsCynqoqvPbfp+tD67oHMrDiw+VH+cFJ3J/gxaVixG5QqCapJXdEHgiM73s2QoM50i rKztOB5D4xLxPKWbtDLqw2I4HqXSqOmmn24x9PRxfPUl4wgdXUq9KxU+6dZA20RXGI+T 1gKw== 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=GmDLKBrRipGnc7l3tDB+5DfeG4oY5ivAq5+t1BERDT0=; b=X9Ez6BXIqaQl8Qtl9xG05TtI3vHEzVBi37aHKqOXvLiboFGBe4/9CUQTDSwu+GUuga jtsP3xij41NNyG8iu/faJgxul1juAdVQwrlDpvpDKaBJnunwSiPO1D/4QTwjh3qtpbmf gQjD8OdivCT7t9In3/ZaIJkTLag3J9o92vxxRZPb98q3MSzYa1UfZYPE3ar44JVwawis 3CmTV+w3VK4SctBpiyL+UjaWJQg7D65RcbqGXSMQRqCNwkooRaYd1c+GOazvXeD/A+Zw JGK5kkF6zUiEyWYpP0UP8E6qJyjHn4Dc8Kf0wCRwcqVym1JyxWy6bmTA9PEyxiob10j4 ZynA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=L3qOmjWQ; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a170903110c00b0014fdfea8f41si18031504plh.448.2022.03.14.18.02.58; Mon, 14 Mar 2022 18:03:12 -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=@chromium.org header.s=google header.b=L3qOmjWQ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245650AbiCNWgY (ORCPT + 99 others); Mon, 14 Mar 2022 18:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245643AbiCNWgX (ORCPT ); Mon, 14 Mar 2022 18:36:23 -0400 Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B905C3207B for ; Mon, 14 Mar 2022 15:35:12 -0700 (PDT) Received: by mail-oo1-xc34.google.com with SMTP id y27-20020a4a9c1b000000b0032129651bb0so22273963ooj.2 for ; Mon, 14 Mar 2022 15:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GmDLKBrRipGnc7l3tDB+5DfeG4oY5ivAq5+t1BERDT0=; b=L3qOmjWQ1MWVtgiZMAiP3nZ2hTnJAmm2jnoq0xYkNh5MapEGfF3GFG64HSjRwbgIHb TYvNa3SGykb76Jk/YwioYxw9nq3lYO3tS/V950JAHkbFzcJHp+opL6VI4PKZlyTjcszW /VKjv6ZOc6XQKS31KzRYN1cIwNkwQVLpsaaYw= 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=GmDLKBrRipGnc7l3tDB+5DfeG4oY5ivAq5+t1BERDT0=; b=1GKal7X5ndPNsQ0sHU/Q6CWGqG+TVP6A/IGl/qlgLijpV7Mcu2viS8JWfkgT9KqaSd fdVafrT2baw6EJ47umRkI2FDALg0gWIf/MOHt9uhkc3VdZjkMUvrsf539dOExjxwQL8e 23TiQ6JBKLTEQDik41JY/7CVltAspa+/vF5Hlc5flicIHBwShrky6N5Ee090A1Z8m6Ps aTh75n72ave5yHVZ4P/jS15Mypq68cYX2x6tftHygl2hyXVid7UnOY6k8KXAgigeaS7G zgAvawnXZTc3ab3/1519WELMPyiaGNzLRyU9crMVpciOu6nMfpkZF1dxMFwi/MPgxBKL Xx0A== X-Gm-Message-State: AOAM5313yjswCNBrBVPsyJfAIqQSfmC6ebsaIWfI8nxlxCxggCLP6Y9H ZDUUYDd2aOZ15OPY9murr897AJ4N56ivOA== X-Received: by 2002:a05:6870:e989:b0:da:c099:7939 with SMTP id r9-20020a056870e98900b000dac0997939mr532085oao.206.1647297311783; Mon, 14 Mar 2022 15:35:11 -0700 (PDT) Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com. [209.85.161.54]) by smtp.gmail.com with ESMTPSA id bb15-20020a056820160f00b0032404d7a88esm4856885oob.27.2022.03.14.15.35.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Mar 2022 15:35:11 -0700 (PDT) Received: by mail-oo1-f54.google.com with SMTP id p10-20020a056820044a00b00320d7d4af22so4374436oou.4 for ; Mon, 14 Mar 2022 15:35:10 -0700 (PDT) X-Received: by 2002:a05:6870:f104:b0:da:b3f:2b62 with SMTP id k4-20020a056870f10400b000da0b3f2b62mr459367oac.257.1647297310247; Mon, 14 Mar 2022 15:35:10 -0700 (PDT) MIME-Version: 1.0 References: <20220310150905.1.Ie0a005d7a763d501e03b7abe8ee968ca99d23282@changeid> In-Reply-To: From: Brian Norris Date: Mon, 14 Mar 2022 15:34:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] gpio: Drop CONFIG_DEBUG_GPIO To: Linus Walleij Cc: Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , Jianqun Xu , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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=ham 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 Mon, Mar 14, 2022 at 3:23 PM Linus Walleij wrote: > On Mon, Mar 14, 2022 at 4:00 PM Bartosz Golaszewski wrote: > > I like it. It's true we don't see many of those DEBUG constructs > > anymore nowadays and overhead for might_sleep() and WARN_ON() is > > negligible. > > I agree. I have something similar for pinctrl, maybe that needs to > go too. Huh, yeah, CONFIG_DEBUG_PINCTRL does look awfully similar, and I just didn't notice because we don't happen to have it enabled for Chromium kernels. We happen to have CONFIG_DEBUG_GPIO enabled though, and the "new" rockchip-gpio log messages triggered me :) I guess one difference is that CONFIG_DEBUG_PINCTRL is almost exclusively (aside from some renesas drivers?) about extra logging and less about interesting checks that one might want to enable in more general settings. So it's a clearer call to make that people generally want it disabled. In other words, a -DDEBUG construct in itself isn't necessarily terrible (even if it's a little redundant with dynamic debug?), if it's not conflated with stuff that might be more generally useful. Regards, Brian