Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp101819iof; Sun, 5 Jun 2022 22:25:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEgHqJybq0HtbGyGsxfEYizVQL/KCYD4mqmPuHnhXMx9K2fHjisxBM/7RwZLdMj+ksjA2G X-Received: by 2002:a17:90b:180b:b0:1e3:2844:5f63 with SMTP id lw11-20020a17090b180b00b001e328445f63mr24902930pjb.164.1654493131311; Sun, 05 Jun 2022 22:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654493131; cv=none; d=google.com; s=arc-20160816; b=wNjUnTkoS2bEUPbpmZRhV4RamUcxjctL/jBlX+AepwSQOjDI09uoZrZ9n3/JIqWYGQ h/+kDydLEyBAdK+Dh6DDWnAdEQqWD8zsNr914a2zRgLrat9xuAl0mTnSnnSq5rzAz2hG 4logb+PwKX46aP9JQgecUKO/1eR8Ov1RCoG73UGKA6RMAhgCByZ7anc1qq8UpFMi0mVf yGyZinleMwlaQ3ROgx3u1Q2XXE3vAf7DG+lcs9fkfUG+WsxvT89PEYuOyGyAt4hpsVDC FpOSwhXRHh0iECLQUx+o9trj8PKOCf0+K1sMJRK90PRSJe6wNzvfKdJj65ek6pWFp+c7 dRvA== 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; bh=Q0xpPQFqv8UD5Rh/oZjgItycfdysKf6Q6HH6OWQYF9w=; b=GHr6C2iYFVNBT+qsk6sTDN28qiyYiFTW/Crgtsy4A5+jy2FvusVYuLFfY+NB/Qf+2X 5sou9xJ2Wm4Z8xm8j9L9nlJuLX3nFLuAouJUndwe7Vzut8SI8CrNceB2SGEKkd7lqnkv EeyP/XKO+iWgaTLIvfQ/YrFcsAwP7nD4LQME7sd0uMj1B7I0lFpq1bs+/0rLVRHo+tWU j/sCGllepcVWRGI9qf8ISXErHY+9B8wnWWGNQ5o0A6XZ0XdSzCMf07STvW6g+qDUI+aU GhZqkB/s/WqHzs654di84T2wk8QqIzNyXfV/y2WVfs/uACr/PTAkNJcuX9YXbr6JGFRp cuzw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e7-20020a170903240700b0015eb08a719csi18513543plo.512.2022.06.05.22.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:25:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 A616F1C4216; Sun, 5 Jun 2022 21:27:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347384AbiFEUqy (ORCPT + 99 others); Sun, 5 Jun 2022 16:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiFEUqv (ORCPT ); Sun, 5 Jun 2022 16:46:51 -0400 Received: from mail.enpas.org (zhong.enpas.org [IPv6:2a03:4000:2:537::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B2EB266F; Sun, 5 Jun 2022 13:46:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id E5E28FF88D; Sun, 5 Jun 2022 20:46:45 +0000 (UTC) Date: Sun, 5 Jun 2022 22:46:40 +0200 From: Max Staudt To: Marc Kleine-Budde Cc: Vincent Mailhol , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Hartkopp , netdev@vger.kernel.org Subject: Re: [PATCH v5 0/7] can: refactoring of can-dev module and of Kbuild Message-ID: <20220605224640.3a09e704.max@enpas.org> In-Reply-To: <20220605180641.tfqyxhkkauzoz2z4@pengutronix.de> References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-1-mailhol.vincent@wanadoo.fr> <20220605192347.518c4b3c.max@enpas.org> <20220605180641.tfqyxhkkauzoz2z4@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Sun, 5 Jun 2022 20:06:41 +0200 Marc Kleine-Budde wrote: > On 05.06.2022 19:23:47, Max Staudt wrote: > > This seemingly splits drivers into "things that speak to hardware" > > and "things that don't". Except... slcan really does speak to > > hardware. It just so happens to not use any of BITTIMING or > > RX_OFFLOAD. However, my can327 (formerly elmcan) driver, which is > > an ldisc just like slcan, *does* use RX_OFFLOAD, so where to I put > > it? Next to flexcan, m_can, mcp251xfd and ti_hecc? > > > > Is it really just a split by features used in drivers, and no > > longer a split by virtual/real? > > We can move RX_OFFLOAD out of the "if CAN_NETLINK". Who wants to > create an incremental patch against can-next/master? Yes, this may be useful in the future. But for now, I think I can answer my question myself :) My driver does support Netlink to set CAN link parameters. So I'll just drop it into the CAN_NETLINK -> RX_OFFLOAD category in Kconfig, unless anyone objects. I just got confused because in my mind, I'm still comparing it to slcan, whereas in reality, it's now functionally closer to all the other hardware drivers. Netlink and all. Apologies for the noise! Max