Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp404914lqh; Tue, 7 May 2024 02:50:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnUfWX09+5gmvRkM2vP9iJSkjkkVrGckZYXfzvpsjd/Zn/XG5qNXCTgZWGvcWDJ5Fahtv5oOYJZ9m5dBUjKJcmxzSGffDM20vzXIPd9w== X-Google-Smtp-Source: AGHT+IFbOkxafaiWxb1VUHUCSt2Ncc7DL3NHv6E227zY5OIgub3UqagsTvqyoTkOrArjkNW3PZWZ X-Received: by 2002:aca:130c:0:b0:3c9:6988:8a05 with SMTP id e12-20020aca130c000000b003c969888a05mr6449928oii.26.1715075413705; Tue, 07 May 2024 02:50:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715075413; cv=pass; d=google.com; s=arc-20160816; b=w/iGEOZQSoSMGdKpeIpcIRrYuQDbh5aTJfYy6vLIysTDkfQV2+hDxYsCPNVenxeWoX p6EqouLskvDRrfTFXZ1wgJpry0K+AW31R2q2APgdEpr4c8v29pSZG7vuDnzAKRaLTc1d SEIOFTB+KS7NsuIQunC/CjY5J/PgUw0MJVeOznu5imp7MAHwxnW7vRkc4/rimU5OWIQ3 ZfNmOqgziF3VIMkiKnUwNpyRuvvh7a+HY0GoMOGl4H17/1aQxgj7DnAS75iwHNymI0Ms zXJj3ah0FE0ex2Aod82rIUkvY3LmzsYaJlUtaH4HGZePCv5Fn4p4byUUUZs7CxzTpXie SAwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=AXaIaVSsBo7PM/5qO6xOSHsGwe2TbFcU+JI0sbSoT7I=; fh=rEC4aapC2LucXJ6P9SkySMGTK56J8mEZwHGsaMwF2/U=; b=x5bv1TVF9wtIn8vyfue9MLiNU7HpetPwFRdDHA8pJLWaUcCkH23LC1+ndv5TAubAid g5p+JkifWblDPCnTdERjr1AWnWfTmKh4i2l/r+Bj9XkfuPWJtOSZJV2Ccewfc+bLxgrR jx7Y7cZolVIN7hYrpNoNHqCE+Oe0zWLRDAePrY3eGCoZ3F0EwHOQRd77YSJaOlTwbNly 6gmYf6Xupc+x84EIl7QstOn27p5bmX2V6NEjWn/EDy7Y8+gZLKQ5i4iOJZ2UJMNpuLu1 4wNFizmzU83ONnb1iic13JJxxgrbUPQfr3NXLyNFdtNcG0n2G8cneG2LNz9sKrLGBFoa JomQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-171020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171020-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dt34-20020a05620a47a200b00792935f3f78si5238038qkb.347.2024.05.07.02.50.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:50:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-kernel+bounces-171020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171020-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5AFE81C23269 for ; Tue, 7 May 2024 09:50:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77A4C15E204; Tue, 7 May 2024 09:44:55 +0000 (UTC) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0591914E2F0; Tue, 7 May 2024 09:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075094; cv=none; b=PI7IMauWMt7zvrxro4esg5Y/yHQuV8gc8Wx0gY54DQEea1C35lD3awKaE8Pja+GBNAYFF2a3Mugo9XlSf2nrFLO7lvLa05sc/6afk5Ek92pHwC8zPakUXlIVxa68STIvzbSFA+BC1olB7GtItag9UubREw4lwYpLKncGEd6qCBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075094; c=relaxed/simple; bh=AoKhmBK2njIJPi3MtLTSqxpffM2xgg+SxnVRyH0ufeQ=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=VLKThxazI52+ylhzus0KhW1bajuPERPBChvpkJNYUnzgi5B09vdNL9YXLNmyNffHyGF1l0JbIx9SHwtFTvuakbOBqXbBq57g55Fm6NmzMq755LdJdWTO+zN7aZLmpvsv/bsnI+ZNCXshwXcqF8AwjgHC74OAeW5KQO9gKa4xUL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 4479iFOj93392615, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 4479iFOj93392615 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 May 2024 17:44:15 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 7 May 2024 17:44:15 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 7 May 2024 17:44:15 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Tue, 7 May 2024 17:44:15 +0800 From: Justin Lai To: Simon Horman CC: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "andrew@lunn.ch" , "jiri@resnulli.us" , Ping-Ke Shih , Larry Chiu Subject: RE: [PATCH net-next v17 12/13] realtek: Update the Makefile and Kconfig in the realtek folder Thread-Topic: [PATCH net-next v17 12/13] realtek: Update the Makefile and Kconfig in the realtek folder Thread-Index: AQHanHJwtQlHSOPjc0iBIoHkieL8ZLGEqrkAgAbh+ZA= Date: Tue, 7 May 2024 09:44:14 +0000 Message-ID: <1470b2c0983442fcb5078ca510aade35@realtek.com> References: <20240502091847.65181-1-justinlai0215@realtek.com> <20240502091847.65181-13-justinlai0215@realtek.com> <20240503083534.GL2821784@kernel.org> In-Reply-To: <20240503083534.GL2821784@kernel.org> Accept-Language: zh-TW, en-US Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 > On Thu, May 02, 2024 at 05:18:46PM +0800, Justin Lai wrote: > > 1. Add the RTASE entry in the Kconfig. > > 2. Add the CONFIG_RTASE entry in the Makefile. > > > > Signed-off-by: Justin Lai > > --- > > drivers/net/ethernet/realtek/Kconfig | 17 +++++++++++++++++ > > drivers/net/ethernet/realtek/Makefile | 1 + > > 2 files changed, 18 insertions(+) > > > > diff --git a/drivers/net/ethernet/realtek/Kconfig > > b/drivers/net/ethernet/realtek/Kconfig > > index 93d9df55b361..57ef924deebd 100644 > > --- a/drivers/net/ethernet/realtek/Kconfig > > +++ b/drivers/net/ethernet/realtek/Kconfig > > @@ -113,4 +113,21 @@ config R8169 > > To compile this driver as a module, choose M here: the module > > will be called r8169. This is recommended. > > > > +config RTASE > > + tristate "Realtek Automotive Switch > 9054/9068/9072/9075/9068/9071 PCIe Interface support" > > + depends on PCI > > + select CRC32 >=20 > Hi Justin, >=20 > I believe that you also need: >=20 > select PAGE_POOL >=20 > As the driver uses page_pool_alloc_pages() >=20 > FWIIW, I observed this when using a config based on make tinyconfig with = PCI > and NET enabled, all WiFi drivers disabled, and only and only this Ethern= et > driver enabled. >=20 > > + help > > + Say Y here if you have a Realtek Ethernet adapter belonging to > > + the following families: > > + RTL9054 5GBit Ethernet > > + RTL9068 5GBit Ethernet > > + RTL9072 5GBit Ethernet > > + RTL9075 5GBit Ethernet > > + RTL9068 5GBit Ethernet > > + RTL9071 5GBit Ethernet > > + > > + To compile this driver as a module, choose M here: the module > > + will be called rtase. This is recommended. >=20 > The advice above to chose Y and M seem to conflict. > Perhaps this can be edited somehow. >=20 Hi Simon, I would like to ask if it would be clearer if I changed it to the following= ? config RTASE tristate "Realtek Automotive Switch 9054/9068/9072/9075/9068/9071 PCIe Int= erface support" depends on PCI select CRC32 select PAGE_POOL help Say Y here and it will be compiled and linked with the kernel if you have a Realtek Ethernet adapter belonging to the following families: RTL9054 5GBit Ethernet RTL9068 5GBit Ethernet RTL9072 5GBit Ethernet RTL9075 5GBit Ethernet RTL9068 5GBit Ethernet RTL9071 5GBit Ethernet =20 To compile this driver as a module, choose M here: the module will be called rtase. This is recommended. > > + > > endif # NET_VENDOR_REALTEK > > diff --git a/drivers/net/ethernet/realtek/Makefile > > b/drivers/net/ethernet/realtek/Makefile > > index 2e1d78b106b0..0c1c16f63e9a 100644 > > --- a/drivers/net/ethernet/realtek/Makefile > > +++ b/drivers/net/ethernet/realtek/Makefile > > @@ -8,3 +8,4 @@ obj-$(CONFIG_8139TOO) +=3D 8139too.o > > obj-$(CONFIG_ATP) +=3D atp.o > > r8169-objs +=3D r8169_main.o r8169_firmware.o r8169_phy_config.o > > obj-$(CONFIG_R8169) +=3D r8169.o > > +obj-$(CONFIG_RTASE) +=3D rtase/ > > -- > > 2.34.1 > > > >