Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2209701iof; Tue, 7 Jun 2022 23:17:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8YKw/4GTEw03SYP5c+rmvf4LkQP6hJtv7gjuTRXWgm8N+RjNzr5SZEBhn5XwCk9hr0F/F X-Received: by 2002:a05:6a00:1989:b0:519:133c:737e with SMTP id d9-20020a056a00198900b00519133c737emr33665233pfl.26.1654669035380; Tue, 07 Jun 2022 23:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669035; cv=none; d=google.com; s=arc-20160816; b=Z4wZhVWKp1sqmH90SJ8dyOl3NXPqlkwa3iRiCXhdau30rdUnqzi/4PHWrwNf1yXJgH 88NK6bI1MXstIlT0Yl1PpXbsecsXNML8Nfq9PjWa6K/7QhKBUug4wS4VNH/ZDPr0Mn8R 1yuNsp7L2uURwK6KJFtus8cZyrXNtmN4LZlsS7PT5OpqbkDNaL4EFByZNwwifQ1EGC8l VEE9R46N03DqYe27xu8nd/z7MlQUKhB3kKx1QlKX4Wtjsz75flNXJ4Z8KpA/KDH1YE8z YZhx8Um3QuhDQJmQAJOIJZUbRKAmfL/bT332VyyGb7FMbcRHwjLH/pl8XrkfQprLBZB/ wESw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=I+ntu7WJB4vqUaet7n/xZUxtD5zaj+qnpMXpWVJpYk8=; b=U5fY/hfqGafOOvPGQYEmXCLcNFQcETpDW+8bpyBT5jmMbVrkLr2RQvo3JZZ4oP16Bk 5kPJuc/HIFO6so0TMRgXhy8tm3HJOS3E3UKeYUFo1Udn45Tx3XR/ymvF4nxSXbjL4Ec+ /6gg7w4kpJRzuQHxVX/cVIyrM7dn1hVqbJzcsoCtmnf215XyyqV6/xtjNy0d+4dSGdwT 7Bx5BftLKkkPGITAyFTP3xQ8yLslaUaueepkXeTrvinm9dlPbYjgToFYRcWOMOLhQH6O W3wzs+C3Z7M2ZtinjBYbRIXeVhdViJst4ea2zTW286LywkTUNEuB/hSqhvQH8e5TyUt7 0MFw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m7-20020a056a00080700b0051c33c93262si7004951pfk.73.2022.06.07.23.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:17:15 -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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3EBDA43E812; Tue, 7 Jun 2022 22:38:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392439AbiFHB6E convert rfc822-to-8bit (ORCPT + 99 others); Tue, 7 Jun 2022 21:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1588570AbiFGXyr (ORCPT ); Tue, 7 Jun 2022 19:54:47 -0400 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 673F8152B9F; Tue, 7 Jun 2022 16:40:31 -0700 (PDT) Received: by mail-yb1-f170.google.com with SMTP id v22so33715034ybd.5; Tue, 07 Jun 2022 16:40:31 -0700 (PDT) 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:content-transfer-encoding; bh=1/qjcxsmWGOF/l/i6wu2yu8n5nSie7FdU/Wmm/ZoLiA=; b=FEGo4BIPhQ6rBbGz/te7oqzvA6sPIIClqGH2fSRL/KFEGxOhtEiybtDTS+vgZEm1r5 aay+2R1bCo22yVd2roumhMahJRxzKur8qeFNlu0thHw0t9SU5Uxq2381c3a0R18/igl3 Vb+bEz5tG0nVv0uPSPJ8nacweRcKl1saeUN10duxf5e5RERJoXosIMlnLBRnSfFTh0ix 4Myu1gTArDUXXqnISIEn5yZ63tltcuVLWHHGA7gMh0a+ooUu1JRG0g6mEAxKi/E0cA6B SnRfuWO7qqUYBM/i5eSIoO7NcItzN4YsjE3XLCBYFDU0rT8Fa9wEJWiBRy1rVMwQTEIL dVJA== X-Gm-Message-State: AOAM532co8w+i4fP0Aw9d6cNPMEHs4u9CMNqFVyTbc3qzbQEPaq/nI+g /QVOGBRaCefsFUz/y5t4LbEdrzx6JkyU6ImZL8E= X-Received: by 2002:a25:9841:0:b0:663:eaf2:4866 with SMTP id k1-20020a259841000000b00663eaf24866mr3790359ybo.381.1654645230591; Tue, 07 Jun 2022 16:40:30 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20220607150614.6248c504@kernel.org> From: Vincent MAILHOL Date: Wed, 8 Jun 2022 08:40:19 +0900 Message-ID: Subject: Re: [PATCH v5 4/7] can: Kconfig: add CONFIG_CAN_RX_OFFLOAD To: Jakub Kicinski Cc: Max Staudt , Geert Uytterhoeven , Marc Kleine-Budde , linux-can@vger.kernel.org, Linux Kernel Mailing List , Oliver Hartkopp , netdev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 à 07:06, Jakub Kicinski wrote: > On Tue, 7 Jun 2022 18:22:16 +0200 Max Staudt wrote: > > > Honestly, I am totally happy to have the "default y" tag, the "if > > > unsure, say Y" comment and the "select CAN_RX_OFFLOAD" all together. > > > > > > Unless I am violating some kind of best practices, I prefer to keep it > > > as-is. Hope this makes sense. > > AFAIU Linus likes for everything that results in code being added to > the kernel to default to n. 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. > 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. 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. 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 wholeheartedly agree with Vincent's decision. > > > > One example case would be users of my can327 driver, as long as it is > > not upstream yet. They need to have RX_OFFLOAD built into their > > distribution's can_dev.ko, otherwise they will have no choice but to > > build their own kernel. > > 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? 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/ But until the patch gets accepted, it is defacto an out of tree module. Yours sincerely, Vincent Mailhol