Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp576225pxb; Wed, 3 Nov 2021 08:53:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnMO504gwcSGFz54W/yxIHDAmum8db4yM3rgOO4Utnu8Fs0+WF76alJb1jp1wyKG3JcDWp X-Received: by 2002:a6b:7a04:: with SMTP id h4mr2497547iom.154.1635954839153; Wed, 03 Nov 2021 08:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635954839; cv=none; d=google.com; s=arc-20160816; b=0XmxWN4qEdtXIfzmBuBNWuAyQ15saAUUbDQ5LDHQlo+MRGgSFdXFaEA1dGLsKTgQdp gXDc0PZW/oir3QaHLz1/YDQVRPXPGGo7ZgPac+N+NMaC7LM8ugc14QKh0UVcYSxU+cmq egi6f2xld28UudtqSdrAi+b5ZHM3cUzgGnFTRgVIBPKcwzq63jgDK6xyi/dC0UMJnNv0 J6px9DUjEXu7/+UMoXQVB5Xe1AkH9UlrZTREa+JnLjQkR0KSKScznxv3qt4LQR6wA06l UmESS4mJ55GxtX81YJZGx/X3Sd5MMY6byuFrzQyOAgfBwtopsvBePiKpVjbzn1Fp0Y1B gC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=QtBcDmePoYyEOlHlNKyccMMS2h7KJBCiJJZSMM3TdMk=; b=S7r3E5hAHxpeaPQRAk8QFGxDeR8JJ6ge7xuD7bEzrELThukcCUJBSJz8Z0EdvT0n4j 8n/0O1U7xPQHNozxq535I3lv8BR0qdtTTHg2QxfJB3jIo9rsguiuNnDfcTgmzYfb9p9f 2ckflGBEgZfte53Rz2wDctGXorzrpE8X6SgW1KSzp4oy5KNbcJvLBlVBLQGhiS2/tHY5 90qbMqkkvAg2m63HZye+K/ZfgnOxurLHCUMjGrOYZl2kFrzLhp2BfI268LSf7N0ZM/bU 7ltXTM1Uzfwt8EnWBi1y5IdQj4D6txmxjyXTLlrJAl4U3lV/G/VO203O8t9uNpT5xebk yAgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ql2c1y3b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si5925198iow.43.2021.11.03.08.53.34; Wed, 03 Nov 2021 08:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ql2c1y3b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231841AbhKCPyn (ORCPT + 99 others); Wed, 3 Nov 2021 11:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbhKCPym (ORCPT ); Wed, 3 Nov 2021 11:54:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E2CC061714; Wed, 3 Nov 2021 08:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=QtBcDmePoYyEOlHlNKyccMMS2h7KJBCiJJZSMM3TdMk=; b=Ql2c1y3bVmcJUr6BfUuMTWbFrZ dLGh2UBFXY1Io0ffarLFjF8KBV5c53d05RIFSwkjRR0YAZnjziyC79CZbiuahnx9Kt68TrEA9s7nd zoqlpx+cMmIeK1uqdNkdpw0XDv80scECHhnq05Aqi6a4ABY3RRRhM1R6FqvU7Q5wYUPZWiiq9qdRr 1vvqzP/LR9TjGj81kl7dmSxyR7L12u00Y6Tdv4iuhQ2s3KbaySrdjGywUStsNc6ZtE0Uu44L5VGUT bZv9XCsujkqIqgUxhw+8irMNPdCznMCUSnPxeq4gLIcNRUqYgc9CgagRxQpyfHFoYiOnKhVUY2Oed cq4JsXnQ==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1miIYS-005bsf-Uo; Wed, 03 Nov 2021 15:52:01 +0000 Subject: Re: [PATCH 2/2] net: ethernet: Add driver for Sunplus SP7021 To: Wells Lu , davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de Cc: Wells Lu References: <650ec751dd782071dd56af5e36c0d509b0c66d7f.1635936610.git.wells.lu@sunplus.com> From: Randy Dunlap Message-ID: Date: Wed, 3 Nov 2021 08:52:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <650ec751dd782071dd56af5e36c0d509b0c66d7f.1635936610.git.wells.lu@sunplus.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi-- On 11/3/21 4:02 AM, Wells Lu wrote: > diff --git a/drivers/net/ethernet/sunplus/Kconfig b/drivers/net/ethernet/sunplus/Kconfig > new file mode 100644 > index 0000000..a9e3a4c > --- /dev/null > +++ b/drivers/net/ethernet/sunplus/Kconfig > @@ -0,0 +1,20 @@ > +# SPDX-License-Identifier: GPL-2.0 > +# > +# Sunplus Ethernet device configuration > +# > + > +config NET_VENDOR_SUNPLUS > + tristate "Sunplus Dual 10M/100M Ethernet (with L2 switch) devices" > + depends on ETHERNET && SOC_SP7021 > + select PHYLIB > + select PINCTRL_SPPCTL > + select COMMON_CLK_SP7021 > + select RESET_SUNPLUS > + select NVMEM_SUNPLUS_OCOTP > + help > + If you have Sunplus dual 10M/100M Ethernet (with L2 switch) > + devices, say Y. > + The network device supports dual 10M/100M Ethernet interfaces, > + or one 10/100M Ethernet interface with two LAN ports. > + To compile this driver as a module, choose M here. The module > + will be called sp_l2sw. Please use NET_VENDOR_SUNPLUS in the same way that other NET_VENDOR_wyxz kconfig symbols are used. It should just enable or disable any specific device drivers under it. -- ~Randy