Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp29597rwl; Wed, 9 Aug 2023 10:23:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1dAXp6baMy3G9lA9ePNPKRsEsQm5i+bpFdTVqBqc/PG/WbVW2DkH04EFO5t32FbB0nqZr X-Received: by 2002:a17:90a:6549:b0:268:37b:a10e with SMTP id f9-20020a17090a654900b00268037ba10emr2585734pjs.11.1691601827404; Wed, 09 Aug 2023 10:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691601827; cv=none; d=google.com; s=arc-20160816; b=0DOcVSEL9DHTFLOgzD6wGOskvg2WGYoMpu+i6YHWe8Udzgjyr24AGzv2ZTJlBE1HW9 nDc5jw8f6EdpynifVZVkPyT5J2rNQYcILh7MhMiPhDcuf5MOKnH9SY3bYVqlaSX+j7v+ phVG+fN50I1UBfcwTYkcSmBEX+uxVdi58gQMrPiTG5RZoRdVlBJCinYQvkM11ZpsTq4B GAt60Q1WfjPPXaYCdC28lXvT2ChlrwQguiN0Ot3uElPsKueNePN1ybJR3lKj0NwEUOUb bs+Kdi/bOYFeLdhyN9UoadHRFIyRjrNOwhqNzOAhH+yPiN9XtpJeumHmrno7a4oEI/+5 lhiA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=g0zvfLvyRJt7hOgvNIifYjQHxyaOMWD1ltEX2pdHMbc=; fh=53OxPclqiEhq1nCX9NNwMsoVi24B0mYFhGxxey7kPJM=; b=AuV1gf7TJwS1gjyv0/VDTW2KyVrz4OxW4hZBk9p0xAxpdibNaK1HeAGvCxMi6fXAl3 I5UGJlsSpZx4yFVEGVFogCqDWxNGXk0CrVYlmQHcUsYlyUPCx3d+wkY5a0WkAfBFfepp hd5+gN625eAA6aq07WVoluNWdAT/dd3HkOcHvJ2RQ73ZrHzrvjAghbp7AeGQuEPBh6wZ +IQUVplTtELQpzz4I12e0x4caQOYCds2SMWw9HduCu8sW5SROLkqRZoFyxRtQdJMw7T0 BnpsGWWSXGVw8We+QRHXAX61aFX+2OXwj2bn/3Vay7HxyI3G4//nOyLSIpAoqOnTsn5k Y3nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="iXnta/0e"; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a17090aca1800b00263a2156cd5si1825666pjt.30.2023.08.09.10.23.34; Wed, 09 Aug 2023 10:23:47 -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=@bootlin.com header.s=gm1 header.b="iXnta/0e"; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233840AbjHIPBu (ORCPT + 99 others); Wed, 9 Aug 2023 11:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbjHIPBt (ORCPT ); Wed, 9 Aug 2023 11:01:49 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 683402107; Wed, 9 Aug 2023 08:01:48 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 08F12E0008; Wed, 9 Aug 2023 15:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691593306; 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=g0zvfLvyRJt7hOgvNIifYjQHxyaOMWD1ltEX2pdHMbc=; b=iXnta/0eS8D5cHJ76Q4dwhU+XK3qsGA5Twh8/3mjUO44s+pEvR/n0UP3phDRDaRzknJJqg U0Po6QG77G0tYGseNfrgZzZ+oWZIReHQUy/j7wwlAqPpgNMdWXCyXkv/pWCbZTB17U0vBq 09x+R9HSs6PA9O+bm3Z01VLxBArlIT/tenAyyV94zuJu4ABgfwHf1jlpBmT9JL/aTrx54e xulDWbuzkyyvyvjDTlEeKHtRrqbNHF9NWfFODttuROxRsjNMQwXq4dUnuY5B9C5WUAcO8L rl4cb1owoaMRbW2+7s4uQte7dbC1HrDGo95q3ov+1CrqQAidzdIy5MawOqVkLw== Date: Wed, 9 Aug 2023 17:01:39 +0200 From: Herve Codina To: Randy Dunlap Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Linus Walleij , Qiang Zhao , Li Yang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Christophe Leroy , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Thomas Petazzoni Subject: Re: [PATCH v3 21/28] net: wan: Add framer framework support Message-ID: <20230809170139.2402e4a2@bootlin.com> In-Reply-To: References: <20230809132757.2470544-1-herve.codina@bootlin.com> <20230809132757.2470544-22-herve.codina@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com 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_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 Hi Randy, On Wed, 9 Aug 2023 07:24:32 -0700 Randy Dunlap wrote: > Hi, > > On 8/9/23 06:27, Herve Codina wrote: > > diff --git a/drivers/net/wan/framer/Kconfig b/drivers/net/wan/framer/Kconfig > > new file mode 100644 > > index 000000000000..96ef1e7ba8eb > > --- /dev/null > > +++ b/drivers/net/wan/framer/Kconfig > > @@ -0,0 +1,19 @@ > > +# SPDX-License-Identifier: GPL-2.0-only > > +# > > +# FRAMER > > +# > > + > > +menu "Framer Subsystem" > > + > > +config GENERIC_FRAMER > > + bool "Framer Core" > > Just curious: any reason that this cannot be tristate (i.e., a loadable module)? > Thanks. For the same reasons as generic phy cannot be built as module b51fbf9fb0c3 phy-core: Don't allow building phy-core as a module In the framer case, this allows to have the QMC HDLC driver built on systems without any framers (no providers and no framer core framework). Also the framer phandle is optional in the device tree QMC HDLC node. Regards, Hervé > > > + help > > + Generic Framer support. > > + > > + This framework is designed to provide a generic interface for framer > > + devices present in the kernel. This layer will have the generic > > + API by which framer drivers can create framer using the framer > > + framework and framer users can obtain reference to the framer. > > + All the users of this framework should select this config. > > + > > +endmenu > -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com