Message ID | 20240222142219.441767-1-herve.codina@bootlin.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-76691-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp285024dyb; Thu, 22 Feb 2024 06:23:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2FNM9LRjRWiNg1yLBuHllNFOfFdzg6XdmRvlb2H4wndYSZuNNAIkDr5gagSKrQPI23rkMq1MiJE1WN7JmubFPo6FQgw== X-Google-Smtp-Source: AGHT+IG3NpBIJtcb//OQ/ZgHCOaONwPMI8bA9Wtfrn6i72b4refQNtH0PVPiKqw7Botvb8kGzDir X-Received: by 2002:a17:906:cb96:b0:a3e:97d4:256b with SMTP id mf22-20020a170906cb9600b00a3e97d4256bmr7248231ejb.10.1708611779984; Thu, 22 Feb 2024 06:22:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708611779; cv=pass; d=google.com; s=arc-20160816; b=Sb0mDOjD6vaPw41Awae7cL4e7arVgyT0UgbVe8fFhHBIjKx72PxaPG1HgJBW2ak80R ZMezXoIsho1cK5tTwPypTHHFwyPhfl9Bk7buk2DDFKdkSA0bSYr5SKVb23wkfor8xTJK pDA0emVlq4n2YSorsDwqEEPyR0/ktRmtdJXvkZeowBYnMcchVsphVI1+rXUFmvNQPk18 AFpMUGKBMEtYvrvOEkE6DD+47wpEKgHmRdx7ST/Jdy3lDQLUUx7k0MiEHUtsNmT8U87u ltm1sLGDjU9j4XO3BPzX6y3djWOPptrRLBDvuF2pdzvvXv1ANN9W5cjdIRzwdeXji8kf B3mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Zhx1gNduZdrAxbKpizueNk61Hz1DSX29IWeNJrNnfCE=; fh=S1JXykGn8s83VQzPRjkanrg93kX6oJVbyHnK1JmVqsw=; b=tbt4Wi8kkSO6P9zTPaovZokCTy+wLiatXF/6t1eNS7R4ke364D+IVwmylwrws+nq2I 8ewLIxg2FlJuqu6G6EdNThZ1HYQz3h3Agw3MpC4tL/sSRPESQtaLGH1bD9TMxZ86lHOc lIeBH+fe4DIQ++1FSM1WkP6yEjtFt5Zeb+mcNdg6bmW5CIA3tqTGLXQyeKHcmChvv3Yd 46d6eIP7dPOeAXO/w5SpQGe3/DvUgbTh1yI3VKjZ6K3PQhaA1aAFqLABE/5VtuOMvR1L r0V+OtgSniXSGfM2zgzb+ElzvkesYGCYN6Pt+grGT2jTOAKM9+nvT7LtOzk31C0iK/kG Epag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bkB7s9nP; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-76691-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76691-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qa40-20020a17090786a800b00a3f01ef41edsi2582405ejc.130.2024.02.22.06.22.59 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 06:22:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76691-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bkB7s9nP; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-76691-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76691-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 60FFF1F2188E for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 14:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7360E1482FB; Thu, 22 Feb 2024 14:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="bkB7s9nP" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E10F34776E; Thu, 22 Feb 2024 14:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708611752; cv=none; b=GHPMES+Om3GG9bQHxfPTLMUu8a893UqyI10fwRC/uGIYG/XQgMK86hiK3WG4fCtrMbUTSCSCQ+NcXalqvkIloJ99GJCGd946K66sK0js0dK93U/QX/mcmWr0xzOuv2kp2Hd128I/4Y8ItaRpmi9sfR3AYY7/fgu3kmHzz28U6ss= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708611752; c=relaxed/simple; bh=p82qsUSfQMPFZeZC4V1XmwrYEBaavEBVUzMfaOmykRM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Xcns5hYPzFM7lS4qifHnBz8Vlra9so3bFgs9EUad3AXHQJyJ++kVZhSjongrdHT2ryf8lRIVVhb0izW7oOHBHltqRcRBy20k+/hD09k50dsBIQackZ9uxSt7ciJQqapwWBv2IiUbIU0GxjNPgyGcUEMkcGyOp+2doZgqr9XlOMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=bkB7s9nP; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPA id 1F5181BF20A; Thu, 22 Feb 2024 14:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708611748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zhx1gNduZdrAxbKpizueNk61Hz1DSX29IWeNJrNnfCE=; b=bkB7s9nPVSNwrpQTUYlLCMUPWFqLWWsOmeePeDdlyKL1je+UibdaL0z7bYSPHxJxdl5RWf 9HKteaQ8KZS6weJep/vs/4A5JPJhIcJ6YRJtyRXP3/5Dmpw0XS5ZkKm81dDPhRWrMGNP4Q 3cm7sHJowVnyykPmQCc9wtFWroiIlGO+oCAsaVIVJPVHcQNgHin9oTBasWEZJY+QptH+ym 7z/E6uw/fwdX3eN22cg9iiPhETsg9yaR0nhleF9Jzt0mLBhVvZ56qDejtBSlMinlJFPRUS EZwZCd1PdTehxHeF837cN7DArKwOkzMOPC+XNiOr5kk/kOMBXHiSKjc8C0w2nw== From: Herve Codina <herve.codina@bootlin.com> To: Vadim Fedorenko <vadim.fedorenko@linux.dev>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Herve Codina <herve.codina@bootlin.com>, Yury Norov <yury.norov@gmail.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn <andrew@lunn.ch>, Mark Brown <broonie@kernel.org>, Christophe Leroy <christophe.leroy@csgroup.eu>, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v4 0/5] Add support for QMC HDLC Date: Thu, 22 Feb 2024 15:22:13 +0100 Message-ID: <20240222142219.441767-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791609305749031263 X-GMAIL-MSGID: 1791609305749031263 |
Series |
Add support for QMC HDLC
|
|
Message
Herve Codina
Feb. 22, 2024, 2:22 p.m. UTC
Hi, This series introduces the QMC HDLC support. Patches were previously sent as part of a full feature series and were previously reviewed in that context: "Add support for QMC HDLC, framer infrastructure and PEF2256 framer" [1] In order to ease the merge, the full feature series has been split and needed parts were merged in v6.8-rc1: - "Prepare the PowerQUICC QMC and TSA for the HDLC QMC driver" [2] - "Add support for framer infrastructure and PEF2256 framer" [3] This series contains patches related to the QMC HDLC part (QMC HDLC driver): - Introduce the QMC HDLC driver (patches 1 and 2) - Add timeslots change support in QMC HDLC (patch 3) - Add framer support as a framer consumer in QMC HDLC (patch 4) Compare to the original full feature series, a modification was done on patch 3 in order to use a coherent prefix in the commit title. I kept the patches unsquashed as they were previously sent and reviewed. Of course, I can squash them if needed. Compared to the previous iteration: https://lore.kernel.org/linux-kernel/20240212075646.19114-1-herve.codina@bootlin.com/ this v4 series mainly: - Introduces and use bitmap_{scatter,gather}(). Best regards, Hervé [1]: https://lore.kernel.org/linux-kernel/20231115144007.478111-1-herve.codina@bootlin.com/ [2]: https://lore.kernel.org/linux-kernel/20231205152116.122512-1-herve.codina@bootlin.com/ [3]: https://lore.kernel.org/linux-kernel/20231128132534.258459-1-herve.codina@bootlin.com/ Changes v3 -> v4 - Patch 1 Remove of.h and of_platform.h includes, add mod_devicetable.h. Add a blank line in the includes list. - Path 2 No changes. - v3 patches 3 and 4 removed - Patch 3 (new patch in v4) Introduce bitmap_{scatter,gather}() based on the original patch done by Andy Shevchenko. Address comments already done on the original patch: https://lore.kernel.org/lkml/20230926052007.3917389-3-andriy.shevchenko@linux.intel.com/ - Removed the returned values. - Used 'unsigned int' for all indexes. - Added a 'visual' description of the operations in kernel-doc. - Described the relationship between bitmap_scatter() and bitmap_gather(). - Moved bitmap_{scatter,gather}() to the bitmap.h file. - Improved bitmap_{scatter,gather}() test. - Reworked the commit log. - Patch 4 (v3 patch 5) Use bitmap_{scatter,gather}() - Patches 5 (v3 patch 6) No changes. Changes v2 -> v3 - Patch 1 Remove 'inline' function specifier from .c file. Fix a bug introduced when added WARN_ONCE(). The warn condition must be desc->skb (descriptor used) instead of !desc->skb. Remove a lock/unlock section locking the entire qmc_hdlc_xmit() function. - Patch 5 Use bitmap_from_u64() everywhere instead of bitmap_from_arr32() and bitmap_from_arr64(). Changes v1 -> v2 - Patch 1 Use the same qmc_hdlc initialisation in qmc_hcld_recv_complete() than the one present in qmc_hcld_xmit_complete(). Use WARN_ONCE() - Patch 3 (new patch in v2) Make bitmap_onto() available to users - Patch 4 (new patch in v2) Introduce bitmap_off() - Patch 5 (patch 3 in v1) Use bitmap_*() functions - Patch 6 (patch 4 in v1) No changes Changes compare to the full feature series: - Patch 3 Use 'net: wan: fsl_qmc_hdlc:' as commit title prefix Patches extracted: - Patch 1 : full feature series patch 7 - Patch 2 : full feature series patch 8 - Patch 3 : full feature series patch 20 - Patch 4 : full feature series patch 27 Andy Shevchenko (1): lib/bitmap: Introduce bitmap_scatter() and bitmap_gather() helpers Herve Codina (4): net: wan: Add support for QMC HDLC MAINTAINERS: Add the Freescale QMC HDLC driver entry net: wan: fsl_qmc_hdlc: Add runtime timeslots changes support net: wan: fsl_qmc_hdlc: Add framer support MAINTAINERS | 7 + drivers/net/wan/Kconfig | 12 + drivers/net/wan/Makefile | 1 + drivers/net/wan/fsl_qmc_hdlc.c | 807 +++++++++++++++++++++++++++++++++ include/linux/bitmap.h | 101 +++++ lib/test_bitmap.c | 42 ++ 6 files changed, 970 insertions(+) create mode 100644 drivers/net/wan/fsl_qmc_hdlc.c
Comments
On Thu, Feb 22, 2024 at 03:22:13PM +0100, Herve Codina wrote: > Hi, > > This series introduces the QMC HDLC support. > > Patches were previously sent as part of a full feature series and were > previously reviewed in that context: > "Add support for QMC HDLC, framer infrastructure and PEF2256 framer" [1] > > In order to ease the merge, the full feature series has been split and > needed parts were merged in v6.8-rc1: > - "Prepare the PowerQUICC QMC and TSA for the HDLC QMC driver" [2] > - "Add support for framer infrastructure and PEF2256 framer" [3] > > This series contains patches related to the QMC HDLC part (QMC HDLC > driver): > - Introduce the QMC HDLC driver (patches 1 and 2) > - Add timeslots change support in QMC HDLC (patch 3) > - Add framer support as a framer consumer in QMC HDLC (patch 4) > > Compare to the original full feature series, a modification was done on > patch 3 in order to use a coherent prefix in the commit title. > > I kept the patches unsquashed as they were previously sent and reviewed. > Of course, I can squash them if needed. > > Compared to the previous iteration: > https://lore.kernel.org/linux-kernel/20240212075646.19114-1-herve.codina@bootlin.com/ > this v4 series mainly: From my point of view after addressing the few non-critical issues the v4 will be final. Thank you!