Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2520106imi; Mon, 25 Jul 2022 00:09:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vXjr0pdh8KRK/ILjcwmbpvC8vlFly2g6Prcddwv2Bt2jBxxWx8v2zYLdkfWUjqsU6m9T3o X-Received: by 2002:a17:907:c0d:b0:72b:d0b0:2b55 with SMTP id ga13-20020a1709070c0d00b0072bd0b02b55mr9143272ejc.110.1658732940545; Mon, 25 Jul 2022 00:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658732940; cv=none; d=google.com; s=arc-20160816; b=rbS3oV4UPDnA0mvB6Y46pe5vhq46iUspspf6s7YtzcgFQ9grR6Iz/SLn6TLNULW8ZB gIzsNOcTZN3Zl3oa7t0wvN6Tlkm/Y3+e9/zKApGwXwCHNnMwWmoQiORUnT9MpSp+a1HF O0JKbkkepBahrvaOB0XWv7qvVRPu2GBEGXv8O48XcdrfOokcHO4DJ/tvIXYkwOJoqPMI XH0IEK9pg7k8NmVnegGIPHyD92KWU/kFpjzOeiFtcLcFsIlw+447ajN65YnNvEa4bl9Z ZbOMRfghwn3Ran6z6gXVSt4GwXG6F6WtVjGTqaMn2HAWPkh5tWM3C0cmS20MbSW716Uo cDIg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WmGhl/O8vO8ecgOB3iZcnGm9OSQetL5QifZHl1Y9Jtw=; b=TtupIMqpsHXiedPuKBVb/s3hXnihNp/jLecxzsNvJL2xWCB80LusIbaEE+yC1l29iI Ven+T8JDkCoTwCpcYZtMyHwU1unUdnrU98iDD1yJu+TjzIak2kkTARzT9p1HgRlRpFiz 9dLAv+FCEEW4XlrgT9h1e86UzdK854f16w76nTguRUBq4PbDyThMd9gkBJ5lKiHPXgPz 0G5ffOmLvjW1/ThxRnWHAR3us+VT81dzLPNYzOHmWmx05rmmpPvG9+yX2F363y5DAODk Uk8z1BfuDilOW4ehmDOjqmD1oRD94GX1TfHj07JP7uPbl4vaO5ffKv0NcMjiF1fipfz2 Yh3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FAeAVr6Q; 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=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt5-20020a170907728500b0072aeac5f74bsi13958037ejc.119.2022.07.25.00.08.36; Mon, 25 Jul 2022 00:09:00 -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=@amarulasolutions.com header.s=google header.b=FAeAVr6Q; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232391AbiGYGzU (ORCPT + 99 others); Mon, 25 Jul 2022 02:55:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbiGYGy7 (ORCPT ); Mon, 25 Jul 2022 02:54:59 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3677F11A33 for ; Sun, 24 Jul 2022 23:54:29 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id z22so12643273edd.6 for ; Sun, 24 Jul 2022 23:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WmGhl/O8vO8ecgOB3iZcnGm9OSQetL5QifZHl1Y9Jtw=; b=FAeAVr6QRCw/8bzHUBG1XiYiLv19tats5ZUtcxflqMKrLhDqXrwsauqpbE9CHPhtz8 XVK9+Ek+uHyEGcyZuju2VbwnTn6WYnBE6ZbvUTbU6DJ62nodSoiAlGDjwHx/z2eT2DXw TPMBwSdedDMe4BSyS9Tp7uMnjIgTzHSl5NRoE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WmGhl/O8vO8ecgOB3iZcnGm9OSQetL5QifZHl1Y9Jtw=; b=a7EiQ+sFtpq+GEbOW1VKG6U2AXssb5GuqcA3tqXFQOJ7O5uljCPGE7VHbfbYQ5qKmh sGL9cMuXpklJkehU8hxoe9MkwQTJgtdKZd2fGR9c6i6t9LEhXCQ6HKXHef66JrFNygCh gbV1Ot3xDN9yOgclKMJvMD1OohLybbGS3z2kbfyJcANPsVrZqVuOhgUBXpTCaCWoJT/y 0la2OW6lAgHjhgoJkWQuzks3XPu2dT3pfv++K4qG++LlNKtSaB7g7rJa9vEp7Oc3OnxO dTv3DlGrvAzL410baErzjhAEqS3Ev89/LAA7DMAsgzmp3hBpf5R7Cy1xwAddnxohIyTQ U0hA== X-Gm-Message-State: AJIora9c42CoFqLmAmIKBX/kmd9BNsPMdYzTJkzMXH7gwtjf0Kaw5P8t ho4X+Yl0/kdpmYXpQUkIbF1Wc8rmXYxL1Q== X-Received: by 2002:a05:6402:5415:b0:43b:a888:fefe with SMTP id ev21-20020a056402541500b0043ba888fefemr11538643edb.302.1658732063862; Sun, 24 Jul 2022 23:54:23 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-14-98-67.retail.telecomitalia.it. [87.14.98.67]) by smtp.gmail.com with ESMTPSA id r2-20020a1709060d4200b00722e57fa051sm4967711ejh.90.2022.07.24.23.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jul 2022 23:54:23 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Jeroen Hofstee , Oliver Hartkopp , Dario Binacchi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Marc Kleine-Budde , Paolo Abeni , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 0/6] can: slcan: extend supported features (step 2) Date: Mon, 25 Jul 2022 08:54:13 +0200 Message-Id: <20220725065419.3005015-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 With this series I try to finish the task, started with the series [1], of completely removing the dependency of the slcan driver from the userspace slcand/slcan_attach applications. The series, however, still lacks a patch for sending the bitrate setting command to the adapter: slcan_attach -b Without at least this patch the task cannot be considered truly completed. The idea I got is that this can only happen through the ethtool API. Among the various operations made available by this interface I would have used the set_regs (but only the get_regs has been developed), or, the set_eeprom, even if the setting would not be stored in an eeprom. IMHO it would take a set_regs operation with a `struct ethtool_wregs' parameter similar to `struct ethtool_eeprom' without the magic field: struct ethtool_wregs { __u32 cmd; __u32 offset; __u32 len; __u8 data[0]; }; But I am not the expert and if there was an alternative solution already usable, it would be welcome. The series also contains patches that remove the legacy stuff (slcan_devs, SLCAN_MAGIC, ...) and do some module cleanup. The series has been created on top of the patches: can: slcan: convert comments to network style comments can: slcan: slcan_init() convert printk(LEVEL ...) to pr_level() can: slcan: fix whitespace issues can: slcan: convert comparison to NULL into !val can: slcan: clean up if/else can: slcan: use scnprintf() as a hardening measure can: slcan: do not report txerr and rxerr during bus-off can: slcan: do not sleep with a spin lock held applied to linux-next. [1] https://lore.kernel.org/all/20220628163137.413025-1-dario.binacchi@amarulasolutions.com/ Changes in v2: - Re-add headers that export at least one symbol used by the module. - Update the commit description. - Drop the old "slcan" name to use the standard canX interface naming. - Remove comment on listen-only command. - Update the commit subject and description. - Add the patch "MAINTAINERS: Add myself as maintainer of the SLCAN driver" to the series. Dario Binacchi (6): can: slcan: remove useless header inclusions can: slcan: remove legacy infrastructure can: slcan: change every `slc' occurrence in `slcan' can: slcan: use the generic can_change_mtu() can: slcan: add support for listen-only mode MAINTAINERS: Add maintainer for the slcan driver MAINTAINERS | 6 + drivers/net/can/slcan/slcan-core.c | 451 +++++++++-------------------- 2 files changed, 139 insertions(+), 318 deletions(-) -- 2.32.0