Message ID | 20231115115331.19eb0c24@endymion.delvare |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp2455454vqg; Wed, 15 Nov 2023 02:54:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6VZ8+r3AJOe5yy8YQcpzHWKr6fyOuXPVAJP5Pn1pxxKewfU9wbarIvrT4LOrfGv/IcJlP X-Received: by 2002:a05:6808:b13:b0:3a8:6b4d:6b78 with SMTP id s19-20020a0568080b1300b003a86b4d6b78mr13329067oij.35.1700045643016; Wed, 15 Nov 2023 02:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700045642; cv=none; d=google.com; s=arc-20160816; b=idSd4J5IH2mZId0g4d8bP3Z+Mq4wqPCoIE5HC7pA11uc09YzwpY9JCt4+gr1Cml4Sp tkmEwTLnX7d3sS9giYgV1OoPF1K8A+lesUa3iCFxAFmziwE1Rf1pRkfgyevTFaQ38OhC 4XRb+Uph6F4oGntM7YhnbSHTWf4d0E3JFqaZnDkiz2wSEe07WZeGyxfQsyDX/bgR/f5P 1slYY7yhcDC8Ogjh6YnjPOZf1sHw1bKReFAOU4ilX+fQfWgRmqZWFe3BX3RVzeSJ6+wN 5NDhBex7A9VK2B/x+F9wqg+md379OH2dzSY1Mo9pklx3f9MtblFgm4d1a3XJx10dnODS rbXg== 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:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=nJlTjVsKvqAx1MhYNThg4ZiwuUl92g9J7t21qFU454A=; fh=USzX09vUzxJ6Mj3hMIdFdrRfph2KGvtyhwYv9f46mG0=; b=K/W2hbGcO8XaLbTd8pKH0neIywBxxBLqGxMF/VDN2jWajGEz9uZc5f9h0GpwKR38y9 ZTynB/dlvCbtG7OPgsHUw3tA1A1ZJJqC+VlcMrE11t+Xt5lJyial1nOh/yaINiJHHgMJ Y+f6fBfFdxBJ1TUnVILoyDgBK5CtExo/J+jAUPe0XgScmFkuPE3iMSWlhtFTgbMTSvHg 6lQkRVC9Lh53evKqDBSmDLi856n9Z+bTAjxi4HA5jQBDI0zQN1NuhA5iW7MDiXTzFoxS hHkFRP/WgaKE96TmucY5oq/eNXPkgihjEAeif5yyIdjWcnyx/buLxKVIF4vyYxGvcXsI Bkig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=T5OUra8i; dkim=neutral (no key) header.i=@suse.de header.b=SCWWF6CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h184-20020a6383c1000000b005c1ce1b2dcasi1261004pge.507.2023.11.15.02.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 02:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=T5OUra8i; dkim=neutral (no key) header.i=@suse.de header.b=SCWWF6CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 500A4802F21B; Wed, 15 Nov 2023 02:53:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234912AbjKOKxk (ORCPT <rfc822;heyuhang3455@gmail.com> + 28 others); Wed, 15 Nov 2023 05:53:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbjKOKxi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Nov 2023 05:53:38 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F910E5; Wed, 15 Nov 2023 02:53:35 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AC412204E1; Wed, 15 Nov 2023 10:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1700045613; h=from:from:reply-to: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=nJlTjVsKvqAx1MhYNThg4ZiwuUl92g9J7t21qFU454A=; b=T5OUra8iaaEu/czuEVDvIjZCJxhUTMykkkKpHoBiOhUs+8dusly/UfxhxfH4Ox2ucEbhgM 8knFx9+AQqnZfG62lEh+34nfcyC5izn+7zLwQ0XrNvkwkxKmGfhWjXfPuUS7FoYOYzWHQ+ xcqZi4ofPahjA2h0AsPkIgxSAEl4BOc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1700045613; h=from:from:reply-to: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=nJlTjVsKvqAx1MhYNThg4ZiwuUl92g9J7t21qFU454A=; b=SCWWF6CPFX72r/CoFBBnQaHOQAL8xvDdECHe00FWN9sFGmC8nYTMlZZktjXVlj10QxiKhi tUJMQD0aZgepvDCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7C73313587; Wed, 15 Nov 2023 10:53:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cKXAHC2jVGULXgAAMHmgww (envelope-from <jdelvare@suse.de>); Wed, 15 Nov 2023 10:53:33 +0000 Date: Wed, 15 Nov 2023 11:53:31 +0100 From: Jean Delvare <jdelvare@suse.de> To: Keguang Zhang <keguang.zhang@gmail.com> Cc: linux-mips@vger.kernel.org, netdev@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, Simon Horman <horms@kernel.org> Subject: [PATCH v2] stmmac: dwmac-loongson: Add architecture dependency Message-ID: <20231115115331.19eb0c24@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -4.39 X-Spamd-Result: default: False [-4.39 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-3.00)[-1.000]; RCPT_COUNT_FIVE(0.00)[5]; HAS_ORG_HEADER(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.29)[74.63%] X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 02:53:49 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782627060124025773 X-GMAIL-MSGID: 1782627060124025773 |
Series |
[v2] stmmac: dwmac-loongson: Add architecture dependency
|
|
Commit Message
Jean Delvare
Nov. 15, 2023, 10:53 a.m. UTC
Only present the DWMAC_LOONGSON option on architectures where it can
actually be used.
This follows the same logic as the DWMAC_INTEL option.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Keguang Zhang <keguang.zhang@gmail.com>
---
Changes since v1:
* Enable build testing (suggested by Simon Horman)
drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Wed, Nov 15, 2023 at 11:53:31AM +0100, Jean Delvare wrote: > Only present the DWMAC_LOONGSON option on architectures where it can > actually be used. > > This follows the same logic as the DWMAC_INTEL option. > > Signed-off-by: Jean Delvare <jdelvare@suse.de> > Cc: Keguang Zhang <keguang.zhang@gmail.com> > --- > Changes since v1: > * Enable build testing (suggested by Simon Horman) Thanks for the update, this version looks good to me. Reviewed-by: Simon Horman <horms@kernel.org>
Hello: This patch was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Wed, 15 Nov 2023 11:53:31 +0100 you wrote: > Only present the DWMAC_LOONGSON option on architectures where it can > actually be used. > > This follows the same logic as the DWMAC_INTEL option. > > Signed-off-by: Jean Delvare <jdelvare@suse.de> > Cc: Keguang Zhang <keguang.zhang@gmail.com> > > [...] Here is the summary with links: - [v2] stmmac: dwmac-loongson: Add architecture dependency https://git.kernel.org/netdev/net/c/7fbd5fc2b35a You are awesome, thank you!
--- linux-6.6.orig/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ linux-6.6/drivers/net/ethernet/stmicro/stmmac/Kconfig @@ -269,7 +269,7 @@ config DWMAC_INTEL config DWMAC_LOONGSON tristate "Loongson PCI DWMAC support" default MACH_LOONGSON64 - depends on STMMAC_ETH && PCI + depends on (MACH_LOONGSON64 || COMPILE_TEST) && STMMAC_ETH && PCI depends on COMMON_CLK help This selects the LOONGSON PCI bus support for the stmmac driver,