Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2213047iof; Tue, 7 Jun 2022 23:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzdlEBziBNHXjazzVU5raS7rodLCau2RMrfV9PFymW2I/Pa7madZAyOEAn2qsjExIp3RoX X-Received: by 2002:a63:ed46:0:b0:3fe:2b89:cbf6 with SMTP id m6-20020a63ed46000000b003fe2b89cbf6mr1978447pgk.112.1654669400703; Tue, 07 Jun 2022 23:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669400; cv=none; d=google.com; s=arc-20160816; b=VKV3GLpQOEQZRwHbk0uh0jI9wdYMumAjMtfiTdgtpUOsczO77crxRf0FkRvkb2Uun1 oXmRm7CPu+v5dI8bIKYzYZqNgxF8H+gi+Eh+vPnP7vBmut6nVjFvqYiHSBskgLJ24jcR g60axHVb73wQObNjxANaa2109of2VASUYAqoMWqxG2kjTzRQqv0eF5laE8swkwYa4Cm+ /cnMdduIbnt32GjDnf0lFlqPEjTyQujklIKP2jdoxPEvWDT9Hq+cnXyGCIdn7faMEPDj uYQxBL+obW9cdd4iRQIHJKy6DVlgakRaIjFGZMoBiFy0B2Z9LIFx8b481dg0uApIwGDt m6mg== 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; bh=djM9qxIv8WYqj0AGoYFkLyyQF5ybi28fwJWBEEtW3bs=; b=002Ztn1RyaNPMCb9NKxZezoIs+myc9LE0JgpOBNbj9n1CkNOqbT19flnpjvzf2zuUP lKaUZ5OSBWL3qE4x+tgsAESB6k3G3ZzK+AGnhcpA08gUv3tLpfU/wGqYPI2mWaAEI/8t GGfxEu0Ylv1LBg9DSoOQ2HnLX/dnx+eNu/nKVM8jWyoIU0nLyXSOVqud8xptrwp0ts+J /3Qt0Mn//NUbdx0kLvhzlxz3pXecf01THoseJQ58/5eyM7f9oA8To8fYXssU1CQeIL/L uPh7N5xUJovVeFwjljOiF6XyqAyqCeSyoOC5KTCitVd6RTcxsJXoulDott2Za9xT5FlJ oMpQ== 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 f189-20020a636ac6000000b003fd679770adsi15059648pgc.694.2022.06.07.23.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:23:20 -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 7C5EA3E64B6; Tue, 7 Jun 2022 22:43:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbiFHCHv (ORCPT + 99 others); Tue, 7 Jun 2022 22:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388331AbiFHAlA (ORCPT ); Tue, 7 Jun 2022 20:41:00 -0400 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456C1C1A; Tue, 7 Jun 2022 17:00:03 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id p13so33764910ybm.1; Tue, 07 Jun 2022 17:00:03 -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; bh=djM9qxIv8WYqj0AGoYFkLyyQF5ybi28fwJWBEEtW3bs=; b=Do2AmXMGrLMH1zLONKYe3r6uZqjrYt4qmWQBwrZqa1tnBgPrfWz71vlYeBpi62Ri2o 0HU4+rzWTXqTklR8sDKo+q7aeikMPseCA25KP1+T0abcqTu+ec6mbEXlM7dga8T7he+J cIKLWG6P6o/Z5U+6JIm/2UK8Qyweozlumuo//MR5S5Gbxn7P9YtDTAziGH6phhzFO0ni z3xKJO6M4ZonaUWAaLPD7z4dewnqyfqZq11ge/GtF8Gufvg2nrkdopYJ0OITdrZcLF1q 1VkeqF1dnITmXrgmKVSGpNMjfHFnVr7R324aq3tSqpAzXM512dkabVxCrNjstm+YJoto dQ1w== X-Gm-Message-State: AOAM5330Ox5iyM5EM2EXVkIkiDzkWWwGtLpBWcr44eHG07wQ2NfCrAj0 WcTWlYd1WqmZbrYKZiCr63KSSzorrj7ovnNKMZvC8Q78kpKixA== X-Received: by 2002:a25:6588:0:b0:65d:57b9:c470 with SMTP id z130-20020a256588000000b0065d57b9c470mr33194296ybb.142.1654646402496; Tue, 07 Jun 2022 17:00:02 -0700 (PDT) MIME-Version: 1.0 References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-1-mailhol.vincent@wanadoo.fr> <2e8666f3-1bd9-8610-6b72-e56e669d3484@hartkopp.net> <20220607202706.7fbongzs3ixzpydm@pengutronix.de> <44670e69-6d67-c6c7-160c-1ae6e740aabb@hartkopp.net> In-Reply-To: <44670e69-6d67-c6c7-160c-1ae6e740aabb@hartkopp.net> From: Vincent MAILHOL Date: Wed, 8 Jun 2022 08:59:51 +0900 Message-ID: Subject: Re: [PATCH v5 0/7] can: refactoring of can-dev module and of Kbuild To: Oliver Hartkopp Cc: Marc Kleine-Budde , linux-can , open list , Max Staudt , netdev Content-Type: text/plain; charset="UTF-8" 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 at 05:51, Oliver Hartkopp wrote: > On 07.06.22 22:27, Marc Kleine-Budde wrote: > > On 07.06.2022 22:12:46, Oliver Hartkopp wrote: > >> So what about: > >> > >> symbol: CONFIG_NETDEVICES > >> | > >> +-> CAN Device Drivers > >> symbol: CONFIG_CAN_DEV > >> | > >> +-> software/virtual CAN device drivers > >> | (at time of writing: slcan, vcan, vxcan) > >> | > >> +-> hardware CAN device drivers with Netlink support > >> symbol: CONFIG_CAN_NETLINK (matches previous CONFIG_CAN_DEV) > >> | > >> +-> CAN bit-timing calculation (optional for all drivers) > >> | symbol: CONFIG_CAN_BITTIMING > >> | > >> +-> CAN rx offload (optional but selected by some drivers) > >> | symbol: CONFIG_CAN_RX_OFFLOAD > >> | > >> +-> CAN devices drivers > >> (some may select CONFIG_CAN_RX_OFFLOAD) OK, this does not follow the definition I set for the "x --> y" arrow, but it is easy to read. I am OK with your suggestion. I will also remove the definition of the "x --> y" arrow because your diagram is self explanatory. > >> (I also added 'hardware' to CAN device drivers with Netlink support) to have > >> a distinction to 'software/virtual' CAN device drivers) This line you modified is the verbatim copy of the title in menuconfig. So you are suggesting adding "hardware" to the menuconfig as well? It did not have this word in the title before this series. I was hesitating on this. If we name the symbol CAN_NETLINK, then I do not see the need to also add "hardware" in the title. If you look at the help menu, you will see: "This is required by all platform and hardware CAN drivers." Mentioning it in the help menu is enough for me. And because of the blur line between slcan (c.f. Marc's comment below), I am not convinced to add this. > > The line between hardware and software/virtual devices ist blurry, the > > new can327 driver uses netlink and the slcan is currently being > > converted.... > > Right, which could mean that slcan and can327 should be located in the > 'usual' CAN device driver section and not in the sw/virtual device section. ACK, but as discussed with Marc, I will just focus on the series itself and ignore (for the moment) that slcan will probably be moved within CAN_NETLINK scope in the future. https://lore.kernel.org/linux-can/20220607103923.5m6j4rykvitofsv4@pengutronix.de/ > The slcan and can327 need some kind of hardware - while vcan and vxcan > don't. Yours sincerely, Vincent Mailhol