From patchwork Wed Jun 7 05:59:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 104254 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp37316vqr; Tue, 6 Jun 2023 23:05:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JwHA0hBlgBi5SXnLw/n6zIgwYy34vAZ4CoLg922gC/BSEODGAdxsRsOtmH4ZD3yHx9kUd X-Received: by 2002:a05:6808:1ca:b0:39c:3b38:e5b7 with SMTP id x10-20020a05680801ca00b0039c3b38e5b7mr4305413oic.34.1686117924281; Tue, 06 Jun 2023 23:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686117924; cv=none; d=google.com; s=arc-20160816; b=uwJ7dbvE3sqSwtOwik+NLQKHEyHlEsa7E2NLSJA6AlSXQ5FUMSZowzUUr7r+0KVQQv HyJo6nQ8c2/e2rtXp8QIlWdKR40v1KuXBjDE26zGxplzw9vbspXAzcw02NC59xcHQAYF GcHUm61/r8kMWJAVwrl7bJ1lryPwhKAYJTBqieKEj4YY5UjZNq5Y9jt9w+6ekIoArNdI TbzUpsfyg8ZXEuk+hYIjT9C4MNwxNpw5yfIG53HYiCQGnxX+v9E362LlEUb7ViLX2YRL Nkl0X6aRWTptlC6Xncvdsm85O29brogXgDn2n59fJu9OKqX0d/u8TSrjIHdlwyogr1hF +2Kg== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=fl3ejIANYMwphGOpTaZIWtY9rHRJ/IGNetQKrBgr9cI=; b=QAQ9NelU2kOED72zBsJxuzfqBc5o9sZX56Us7Mfl/RUxO82FJwBGpIxQnBX9IfyJSc mZFr3wjqJs8ssJ4c8dF5paoBoGwiufbJKUCCeE8Gj6IX1QmBGUmwJvcS/GENRHqcO68e OKirRWRaiohZbDKdNa69mxOt0IDPoAXaSM7dzNV9Lo8aT/KL4cMZJmipIZKux+eO69yw GDMX+mYFHCqUrXLfRP/tnehERP7ljJ2OHbHdBQzHb6mEF31PsuECwR+t8Teq/lCjPzgB ynq6xFqfT445pFAS6zQy1U5tWjYuULMV/+jVyXZKaW4kx4sZSra8d6aGCMXVA1HuwpM0 a9Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=IiTF6Qe5; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=oDsscVxa; 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=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb14-20020a17090b4a4e00b0024bc03cfa95si604986pjb.156.2023.06.06.23.05.08; Tue, 06 Jun 2023 23:05:24 -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=@flygoat.com header.s=fm2 header.b=IiTF6Qe5; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=oDsscVxa; 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=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234384AbjFGF75 (ORCPT + 99 others); Wed, 7 Jun 2023 01:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234714AbjFGF7t (ORCPT ); Wed, 7 Jun 2023 01:59:49 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA2DA83; Tue, 6 Jun 2023 22:59:48 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 251AA5C01E7; Wed, 7 Jun 2023 01:59:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 07 Jun 2023 01:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1686117588; x=1686203988; bh=fl3ejIANYM wphGOpTaZIWtY9rHRJ/IGNetQKrBgr9cI=; b=IiTF6Qe5l/O3XvAjnZXNpfCEEk tKdC9TRPsgKQQugtRI8wl2LqekVBTyjnWDfKdNSyBHLGeWW82P0t9183gSTfCRKu NRZz4+QlCJWS/nPjeGEOOm/wR1xKJvs9+knHzpinecqdEL3ELsGZF9nkd9qkc62b voEfRqEjrMcEuxNEPfZu3/IsiXPN8sF9t2CafU28SwV0tUwmOPtVbL2ubhcNUI5u Msy5JqrOvilllqw4sXasgMTGJQjUziVX0s4k62yMnvKhK/bbbYCBdmX2Gi76TER5 iiMN04MTADTYgMpT3GQycfYJuuYzBgfQQrvJjcov7IcxWuMzzauRrvJXXpQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1686117588; x=1686203988; bh=fl3ejIANYMwph GOpTaZIWtY9rHRJ/IGNetQKrBgr9cI=; b=oDsscVxaeTld1Z1a7Vxlc+IWbKsPg MkuqXqpMRW178RwiGnZU8EsDeiGS3Paw+a6ljz97iimsi9eiS3DGcjunXIGp0tNd eKg10MwcMe6Gyw6H5TqBhbTfT1SAWUVSh8Ia9xUpEGokrJbB8aAmQWmNXEX1s8bd M+/1myJs0ZGhZ5B5nvyBQ2yflpCsIN0kvnlEGSnXGaO5jdSjQJTMozhdg1r5C4yN u+jxaMeyL/KjPUrsEt+uO3w512Z0/YrJNC+AcvBc7Jhm33HoSm6GNu15AApwhu+6 26fw6wR/ECEFqLKDGywyN0HkN3zToTeU/RF33twsYe7dmkqdcb0KX3UQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtfedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhephfetuddtudevieeljeejte ffheeujeduhefgffejudfhueelleduffefgfffveeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Jun 2023 01:59:45 -0400 (EDT) From: Jiaxun Yang To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, Jiaxun Yang Subject: [PATCH v2] net: pch_gbe: Allow build on MIPS_GENERIC kernel Date: Wed, 7 Jun 2023 13:59:40 +0800 Message-Id: <20230607055940.34064-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768022788645075972?= X-GMAIL-MSGID: =?utf-8?q?1768022788645075972?= MIPS Boston board, which is using MIPS_GENERIC kernel is using EG20T PCH and thus need this driver. Dependency of PCH_GBE, PTP_1588_CLOCK_PCH is also fixed for MIPS_GENERIC. Note that CONFIG_PCH_GBE is selected in arch/mips/configs/generic/ board-boston.config for a while, some how it's never wired up in Kconfig. Signed-off-by: Jiaxun Yang --- v2: Add PTP_1588_CLOCK_PCH dependency. Netdev maintainers, is it possible to squeeze this tiny patch into fixes tree? --- drivers/net/ethernet/oki-semi/pch_gbe/Kconfig | 2 +- drivers/ptp/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/Kconfig b/drivers/net/ethernet/oki-semi/pch_gbe/Kconfig index 4e18b64dceb9..9651cc714ef2 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/Kconfig +++ b/drivers/net/ethernet/oki-semi/pch_gbe/Kconfig @@ -5,7 +5,7 @@ config PCH_GBE tristate "OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE" - depends on PCI && (X86_32 || COMPILE_TEST) + depends on PCI && (MIPS_GENERIC || X86_32 || COMPILE_TEST) depends on PTP_1588_CLOCK select MII select PTP_1588_CLOCK_PCH diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index b00201d81313..32dff1b4f891 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig @@ -102,7 +102,7 @@ config PTP_1588_CLOCK_INES config PTP_1588_CLOCK_PCH tristate "Intel PCH EG20T as PTP clock" - depends on X86_32 || COMPILE_TEST + depends on MIPS_GENERIC || X86_32 || COMPILE_TEST depends on HAS_IOMEM && PCI depends on NET depends on PTP_1588_CLOCK