Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2319931rdb; Mon, 12 Feb 2024 00:06:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0B9fDpuA8smK1DGUgD7vh/nAyZVoosF4FljYorpzF++6zBj3fcXyJrGxpyxMOg5c84zZW X-Received: by 2002:a17:902:d4d1:b0:1da:2216:f21a with SMTP id o17-20020a170902d4d100b001da2216f21amr4976923plg.1.1707725176804; Mon, 12 Feb 2024 00:06:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707725176; cv=pass; d=google.com; s=arc-20160816; b=AzXzMU/sZlFg9WlLSd1hJMp4kmwxklgkh6t3YKh45LrtInOtYJ5hQ8/OVXgVTmFC17 Wc+Fo8cx9Czh4JONmyZOWo8WzS63xBlKEKpQuPzKdZhtFqfq3dwxcM7VZpf38xqE0qbW 8BBc5T86br1Pyr/NS4AjGRkRFxUnRS2xI5wnCr++KigUP8jyy3DewK9FMugTWuRjvVQK +ErDsqWb20zt1SzT91gWiXRD9iz3oUXhkTqdmxzKUTAE1FtH4tBwi+Npm09aN5sY7gh8 pqFjdfVmsjoUhQqFetr9GkHyiP9cv0kMePe7JPxIi2yfFVQ1od/VEmaCR/ra4z2ZDCLY T5hw== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=Q0QRewWjCuJMsfAyyoKBSLDpElE9+DussEhEANCwakk=; fh=q8kJj9c1XJDHKTErGCvYiN8Y3CXCp6nfBiCFByUwgNM=; b=wuTRLUPDRWXBtu8SG5xnAjGtknWYIMFKdaDF2Hi6utgIIGk5YYue7KUezC7tPxLWow P75gYSbFF6nvL2s/SRLMzD7sYaWSY5wj27MOCfCTLtmTw6pYYye+YBkV/0CvozuCTJC6 HC7eWat/J+ZVsf4T/EyFVo26zq80VEp2OAHBnNRFY7WOM860Qo/OacF7m6vkjUHhaJSp Ld2EakTwRTpBEPtsJwRsj2IbowDfcjgD3p52MzZho/HBbZ9fiCi/TD7jMq0zVviruh0z rB0Zsx0/yIY6XwEmloXy1yeFKaH20otRwv9PjgVGdNybiLXiXzN8bq/EtuBw3uPh+vTR kSlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Jt3hjacQ; 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-61187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCU026w4CIdC8NSkLn0n9tJ3BPSCWN0D1MVFv3uVKIB8YGOeyqTHDgnE+FQQvQiIrx2G7mPxP9mEjGk45rZXZNtPWWBWYnyEhzm6LE6IoQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j13-20020a170902c3cd00b001d8a955d000si5898214plj.355.2024.02.12.00.06.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 00:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Jt3hjacQ; 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-61187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61187-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6FAC1280DEF for ; Mon, 12 Feb 2024 08:06:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1EF68BFE; Mon, 12 Feb 2024 08:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Jt3hjacQ" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 C62D129A1; Mon, 12 Feb 2024 08:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707725166; cv=none; b=D1wGSbdmOWVAd4MMOwnIMKhmiCiZfKhMvgC8Ts3S2mK2pfe9IMVD2qB9lHAuDY5v15aCA/06YcdIMGbA/vDvNRg1gx+KCDSCAgg7ieDQSKATAR3QvdVsh8L7MVR54m1d5yR4crW7TSk2SXzfcueWJPOLnFkEb7nMYdwuK0c+Gxs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707725166; c=relaxed/simple; bh=MXlnHstQ8dWrcq8/+TKvFmLOSCZmOskhfgadNBRPm84=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=T8FvQz/rite55qZ3FcFw3MiuYZiDAkIUYjeNgHBcaACZTUKmiguEHFfYM0mgXu1W3217cQJf86k9ICBxtz70hIagUamU0qd4l3NnhejZvZ8/HZN/LNNvNSjoB5VsmyNvZVSnBEdmMUNav+/R3mE/lplZJ7FU+TuIOfTl9IKGa04= 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=Jt3hjacQ; arc=none smtp.client-ip=217.70.183.200 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 ESMTPSA id 062CF20010; Mon, 12 Feb 2024 08:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707725156; 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: in-reply-to:in-reply-to:references:references; bh=Q0QRewWjCuJMsfAyyoKBSLDpElE9+DussEhEANCwakk=; b=Jt3hjacQydWR4679EGgJUyePIil+MwePHaqXSZ0xoBhk65AMmXR2Sn2OVQuzwqJG5nLFnB VQXVCoWs8Cj0/c47c4PITla0uugUcF7pjL22OYJl5Ihr8wmWrERaU1fNiqiF/wpPc3EvUo STvGcm8QtHUsRcaJDgxss0fPXvOBF+AGOWidLlvooMYkljIjrx7VKCmErWDYaIns7xsXgK 4PGC8Syl4gLLpKxQGmUVa1D8SuvrWvurW18TvWYDor9WdXHQryQJpwG8QvggIHo2Fm8o9M swyAIcitTSSI6G3MOwSuu7078vXuspbYYKnOyuQPNGhHGaC1gGafDIkIa2vWWA== Date: Mon, 12 Feb 2024 09:05:53 +0100 From: Herve Codina To: Vadim Fedorenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Herve Codina , Yury Norov , Andy Shevchenko , Rasmus Villemoes Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn , Mark Brown , Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v3 RESEND 0/6] Add support for QMC HDLC Message-ID: <20240212090553.00abacd6@bootlin.com> In-Reply-To: <20240212075646.19114-1-herve.codina@bootlin.com> References: <20240212075646.19114-1-herve.codina@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com Hi all, I duplicated patches in this series :( My bad, I was mistaken in 'git format-patch'. Can you consider only the "[PATCH v3 RESEND n/6]: xxxxxx" in this review. The other patches ("RESEND PATCH v3") are the duplicated ones. If ok I will send a clean v4 series. Of course, if some modification are needed, I will also send a clean v4. Let me know if a clean v4 is needed right now. Sorry for this mistake. Regards, Hervé On Mon, 12 Feb 2024 08:56:28 +0100 Herve Codina wrote: > Hi, > > Note: Resent this v3 series with missing maintainers added in CC. > > 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/20240130084035.115086-1-herve.codina@bootlin.com/ > this v3 series: > - Remove 'inline' function specifier from .c file. > - Fixed a bug introduced in the previous iteration. > - Remove one lock/unlock sequence in the QMC HDCL xmit path. > - Use bitmap_from_u64(). > > 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 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 > > Herve Codina (6): > net: wan: Add support for QMC HDLC > MAINTAINERS: Add the Freescale QMC HDLC driver entry > bitmap: Make bitmap_onto() available to users > bitmap: Introduce bitmap_off() > 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 | 3 + > lib/bitmap.c | 45 +- > 6 files changed, 874 insertions(+), 1 deletion(-) > create mode 100644 drivers/net/wan/fsl_qmc_hdlc.c > -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com