Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2213854iof; Tue, 7 Jun 2022 23:25:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA9b8frS2c3ZRi53R5n8wMNQz0fDUpejWZ5teixB4J29lzZ+L/TAv3VJ/k8JiAHvN77ZR5 X-Received: by 2002:a17:903:234e:b0:164:1668:3bc with SMTP id c14-20020a170903234e00b00164166803bcmr32435664plh.106.1654669513830; Tue, 07 Jun 2022 23:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669513; cv=none; d=google.com; s=arc-20160816; b=CJ5oIS1QSp5E7D6NVt7qLCCKyBVWidQaJiH8gNkLoYCxGCGg76MeS2qiORp+YJG4Px M/+Xi9z3dTGCVfVAJDKx3ZawBm5cyv9OWxgwyv1fup8BU8zrsOFDUlpHLu4h3+I7qfPn Enea2z73g4Wh6DWiVoF3Msf2MxCo5n5faMtsbEOVAt1QqlSuEjswIrS9KNCQepAKJeCM r3AKAkROImLYXpz3p2FA/os7chUVMyLs/2yzLM9gCKb3TSy+YekFzzYUqCHfmzRBApra nvOoKPMYVKak45auuOXXFNWm9nsl/qEJjGrUwlX3jt/nG74EwssJDdVkt4BDTJKJOSEg /Zkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CrcbDSIMUGUy9BjrLMTLkVHJ9psx3y4Wlntj3nvGas8=; b=aF5qUBjLewqHP5oVxx+OhZg3zqM/hQ72qgUie0ghupRYKBa/0NdNcvmqlxhn/IB8PY 7Cqft+XlpJWrY7Il+LQSWTtnIeocGYV535oIbQVPUR8YVSFfIsJ9Pn9R5IKd21h0KhKM XV2K6ONYGgZVMYI8qUPyj54ZcHyC/Ntg7c+RpowECxW0I6JcE2S3QLaQAOI4ierQNqaU O9kumJxF1gxxpHZsNr86GVDCBD2Knbk5ghxdkpmomVQa1sCnGUCQ/P3kUO370JSHQOb9 uErVr3+yeV9QuU5ht2G41pXhr+L3ZaoUHK0FPmLbnhfqJZbM2hkjjCVhxXOiU1h6WE4Q /aIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LOKNhmAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b7-20020a170902d50700b00165d4cde165si13806735plg.27.2022.06.07.23.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LOKNhmAc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9DDF3CA2E1; Tue, 7 Jun 2022 22:48:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236626AbiFHCQK (ORCPT + 99 others); Tue, 7 Jun 2022 22:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234726AbiFHBrM (ORCPT ); Tue, 7 Jun 2022 21:47:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A385F89; Tue, 7 Jun 2022 17:07:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6B4D7B82464; Wed, 8 Jun 2022 00:07:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E73D1C34114; Wed, 8 Jun 2022 00:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654646863; bh=CrcbDSIMUGUy9BjrLMTLkVHJ9psx3y4Wlntj3nvGas8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LOKNhmAcCbw2DyoNFmC8yOted5y6dRFfpppHX0nlrIAYPztLgqpDh/HOnucUWb1R3 EuE96CqG9M/p4zQxhgkwP3jwJLoxP7FKHkKS98g5JeYYqBpAvgmvnaXUL7WN8KydpM gy1j/bnBosk7wk/z1Fa6tlAApLwasoov/VlSCIWr09Zyngys4B5SzUSh0e31/SKluo l5M2KrUKROwRUt8f8QgUDOof2RZRc9VmbekOwjqsP5uQxLg1Jd+PhxPwR5mkLhnKMw qzorHcJbex7ncdUOkHOLDxSDhMamdau2ayN3/25FXxp2WlBQ8IVN+F+5gjLWSsqign UvTMJNsbOV9Xg== Date: Tue, 7 Jun 2022 17:07:41 -0700 From: Jakub Kicinski To: Vincent MAILHOL Cc: Max Staudt , Geert Uytterhoeven , Marc Kleine-Budde , linux-can@vger.kernel.org, Linux Kernel Mailing List , Oliver Hartkopp , netdev Subject: Re: [PATCH v5 4/7] can: Kconfig: add CONFIG_CAN_RX_OFFLOAD Message-ID: <20220607170741.05bea62d@kernel.org> In-Reply-To: References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-5-mailhol.vincent@wanadoo.fr> <20220607182216.5fb1084e.max@enpas.org> <20220607150614.6248c504@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 Wed, 8 Jun 2022 08:40:19 +0900 Vincent MAILHOL wrote: > On Wed. 8 Jun 2022 =C3=A0 07:06, Jakub Kicinski wrote: > > AFAIU Linus likes for everything that results in code being added to > > the kernel to default to n. =20 >=20 > A "make defconfig" would not select CONFIG_CAN (on which > CAN_RX_OFFLOAD indirectly depends) and so by default this code is not > added to the kernel. >=20 > > If the drivers hard-select that Kconfig > > why bother user with the question at all? My understanding is that > > Linus also likes to keep Kconfig as simple as possible. =20 >=20 > I do not think that this is so convoluted. What would bother me is > that RX offload is not a new feature. Before this series, RX offload > is built-in the can-dev.o by default. If this new CAN_RX_OFFLOAD does > not default to yes, then the default features built-in can-dev.o would > change before and after this series. >=20 > But you being one of the maintainers, if you insist I will go in your > direction. So will removing the "default yes" and the comment "If > unsure, say yes" from the CAN_RX_OFFLOAD satisfy you? I'm mostly trying to make sure Linus won't complain and block the entire net-next PR. Unfortunately I don't think the rules are written down anywhere. I could well be missing some CAN-specific context here but I see no practical benefit to exposing a knob for enabling driver framework and then selecting that framework in drivers as well. The only beneficiary I can think of is out-of-tree code. If the framework is optional (covers only parts of the driver's functionality) we make the knob configurable and drivers should work with or without it (e.g. PTP). If the framework is important / fundamental - hide it completely from=20 the user / Kconfig and have the drivers 'select' it as a dependency (e.g. DEVLINK, PAGE_POOL). I'm not familiar with examples of the middle ground where we'd both expose the Kconfig, _and_ select in the drivers. Are there any? I don't want you to rage-quit over this tho, so we can merge as is and deal with the consequences. > > Upstream mentioning out-of-tree modules may have the opposite effect > > to what you intend :( Forgive my ignorance, what's the reason to keep > > the driver out of tree? =20 >=20 > I can answer for Max. The can327 patch is under review with the clear > intent to have it upstream. c.f.: > https://lore.kernel.org/linux-can/20220602213544.68273-1-max@enpas.org/ >=20 > But until the patch gets accepted, it is defacto an out of tree module. Good to hear, then it will get upstream in due course, and the problem will disappear, no?