Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp288627imn; Thu, 28 Jul 2022 00:05:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tz+CRyM6TDl8qvjcEnFQbfmGpSIImfujrVwnUmQRg3aqKoiO+IiNlhArOe7s7V9wpMvMlD X-Received: by 2002:a17:90b:4f89:b0:1f3:22f4:f6c3 with SMTP id qe9-20020a17090b4f8900b001f322f4f6c3mr591237pjb.66.1658991941161; Thu, 28 Jul 2022 00:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658991941; cv=none; d=google.com; s=arc-20160816; b=e/Wv7LwiyezNq4MrH8GDnYYbb1YvA3CI05kRpBWlz8I/s//dAUNGX4TRLasMFtRD5v ws60MuSCW/vLqPqrYQpB92hU/yp8b8bh3gYXIpVtiU2Jlq74n32IfU7Cj9zdyBcw/MT8 GE01qM2P65CwCeRUzUAljTJ/2GzFQJPNl19VgQHDomoEqkOPqS91VW5mPEf2UybRCGan PjCz5bLgCBt5OysX1L1ZUG1ySQEm+gfumgx/WQjNp71ToR+yY3khswDGfkFK7KsJOaq6 QrLzbvb3Zg+7kbV7tUG+tskUMje/5UO5Bykn8t7fTIspx6nai1HcmmjGHz5hcB2GA4WJ gZow== 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=nZj3FVBxKWQWzHTUYRIyjL/IBGzy/vAn7ewqW8rjIR8=; b=x1396k6U6h4zXjoMgUXM2jndUH2m02yHjFj+DydBKazyUu6YQXzNHHx7jVYwhHY604 nGxb4qddwe2Z8zRfnAAsKcDVONk1PLYC2/XeprcxibhcXqX+dTMKMhsshbUycDaX2SJI yATcshmMcskEc83H3zjU8lklZa9GtXpiopmsT7vPl6pA39LaWq7n750yPcHlN+eJffgX itMh9p4/gy8Z8nD3hXXm8hP9drVHXd3cav6zaWubnBpPO3OpngUsV9X0w8GIp1FqIS+I KOMlt4lUQb+o3LzowEG5jwmBp7oZ68rc8V1zixbVL7kZtDAvG2jkC+/0sfZlPLFKCTCn 2QlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f42OwsnT; 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 l15-20020a17090a72cf00b001e895fed1e2si4198950pjk.130.2022.07.28.00.05.25; Thu, 28 Jul 2022 00:05:41 -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=f42OwsnT; 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 S234440AbiG1HDH (ORCPT + 99 others); Thu, 28 Jul 2022 03:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbiG1HDF (ORCPT ); Thu, 28 Jul 2022 03:03:05 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A9BB5C369 for ; Thu, 28 Jul 2022 00:03:04 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id c12so1017317ede.3 for ; Thu, 28 Jul 2022 00:03:04 -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=nZj3FVBxKWQWzHTUYRIyjL/IBGzy/vAn7ewqW8rjIR8=; b=f42OwsnT9wKcuVY475gVHsDYoCC+OpxajdHImL51yEdpxocd54QorII/uh321iNpLk nLzhzKik/RBXK7v8IqV8/Hl2BBivmFYt6C3YbZkMb5De1EsaghddRpvezeo7iPAsSbaM tBOoksUhxbYP25RqcVchxS9d83sorUiPYZO4g= 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=nZj3FVBxKWQWzHTUYRIyjL/IBGzy/vAn7ewqW8rjIR8=; b=1KFtcqT22oSFZK0ENCjcjN+mW0txTxe0XUy4lJbui5teVO9Yaw9JLF1rp7bdEPBLSy k2RIF81rkpo+S7R7sS/TBKMEZlZQoua4GjYrfkOTnlzAQIqu/cCK4Aq8KJ2NHxa3Nfbj EplZWBT/gjVj2hGi4Mn+nFed+e8FHPQReaAsj7Cfm7g8GFvq0EftUzOOpMLEIRarWEdO 7BKfy2y6fLozzREchtmFX1j1iseqvtjfrnnZJZ/kZ2m7tWHuwCRE/KVAsVCJ7lZ/jkt/ Ko4NN3HAYpOFnwuESl+nIShVvQAEVzB5Hcl4IDjFiaB/bFnEpvKnPfm/SEYY+aCvjMeF aEZA== X-Gm-Message-State: AJIora+Wfh7/bYaorfZYBZFUFcJ2eJWKngQZwqVIwJDPO+vQfceoCCfz JuHxvTHmYjS0xZR+ZH8+EvJCyt7J5M3qAQ== X-Received: by 2002:a05:6402:4016:b0:43a:f310:9522 with SMTP id d22-20020a056402401600b0043af3109522mr26262809eda.200.1658991782896; Thu, 28 Jul 2022 00:03:02 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-31-31-9.retail.telecomitalia.it. [79.31.31.9]) by smtp.gmail.com with ESMTPSA id r18-20020aa7d152000000b0042de3d661d2sm154742edo.1.2022.07.28.00.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 00:03:02 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-can@vger.kernel.org, Marc Kleine-Budde , Jeroen Hofstee , michael@amarulasolutions.com, Amarula patchwork , Oliver Hartkopp , Dario Binacchi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wolfgang Grandegger , netdev@vger.kernel.org Subject: [PATCH v4 0/7] can: slcan: extend supported features (step 2) Date: Thu, 28 Jul 2022 09:02:47 +0200 Message-Id: <20220728070254.267974-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=ham 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 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 v4: - Add Max Staudt's `Reviewed-by' tag. - Drop the patch "ethtool: add support to get/set CAN bit time register". - Drop the patch "can: slcan: add support to set bit time register (btr)". - Remove the RFC prefix from the series. Changes in v3: - Update the commit message. - Use 1 space in front of the =. - Put the series as RFC again. - Pick up the patch "can: slcan: use KBUILD_MODNAME and define pr_fmt to replace hardcoded names". - Add the patch "ethtool: add support to get/set CAN bit time register" to the series. - Add the patch "can: slcan: add support to set bit time register (btr)" to the series. - Replace the link https://marc.info/?l=linux-can&m=165806705927851&w=2 with https://lore.kernel.org/all/507b5973-d673-4755-3b64-b41cb9a13b6f@hartkopp.net. - Add the `Suggested-by' tag. 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 Vincent Mailhol (1): can: slcan: use KBUILD_MODNAME and define pr_fmt to replace hardcoded names MAINTAINERS | 6 + drivers/net/can/slcan/slcan-core.c | 459 +++++++++-------------------- 2 files changed, 144 insertions(+), 321 deletions(-) -- 2.32.0