Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2508715rdb; Wed, 15 Nov 2023 02:53:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJlAWm1cE2QLwmXPqj46tseMBWP+d+H5BYO+gyUD29VhyTmErkjUzBUBLaVwLHSNPgSd7W X-Received: by 2002:a05:6358:7e9b:b0:168:e73f:c9c2 with SMTP id o27-20020a0563587e9b00b00168e73fc9c2mr5920668rwn.8.1700045629740; Wed, 15 Nov 2023 02:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700045629; cv=none; d=google.com; s=arc-20160816; b=sje7UsmRmojr9iTQHfV9tBCxxBFnWwQ/xNnZCkyuUB8PH5nSrPwhs3cotJLWLQj5r2 2NXYmh8jzqEAh3JX/VKQLG/vCtKm7EZAVfkQoqS3mttaomhkHPp4zo/fCvPBELaRpunt Zc4LnDgEqrfFBE/2m2gYnqYTraySj6v72/rQlH5W+hrhnEATSQkmgxcso2x5isXV5DHb luYG5YYvxLQ4evuXC4oZytb8+RvurNxESK9RkKOle0VX4t8PIa1zjM+Wu0DZ9O6Cp7lP f+GeAaM2aCi6m17N7FqZqHwnviG7tWNuJlOzt3333tOd6HfpUpM9Rery27HM03SpUvI2 BWnA== 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.s=susede2_ed25519 header.b=SCWWF6CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v71-20020a63894a000000b005b11e5a69f8si9415934pgd.531.2023.11.15.02.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 02:53:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; 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.s=susede2_ed25519 header.b=SCWWF6CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 6207780BFECC; Wed, 15 Nov 2023 02:53:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234893AbjKOKxk (ORCPT + 99 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 ); 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 ); Wed, 15 Nov 2023 10:53:33 +0000 Date: Wed, 15 Nov 2023 11:53:31 +0100 From: Jean Delvare To: Keguang Zhang Cc: linux-mips@vger.kernel.org, netdev@vger.kernel.org, LKML , Simon Horman 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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 15 Nov 2023 02:53:47 -0800 (PST) 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 Cc: Keguang Zhang --- Changes since v1: * Enable build testing (suggested by Simon Horman) drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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, -- Jean Delvare SUSE L3 Support