From patchwork Wed Jun 7 05:59:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 104255 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp40309vqr; Tue, 6 Jun 2023 23:12:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gfqjU7+FqSDTTv0Y5oIBiqhDqLSfuKkJUbopyAMKaK7rAkZ1dp6kh6daoZh9pyB39V34J X-Received: by 2002:a05:6a00:140c:b0:652:c945:d27 with SMTP id l12-20020a056a00140c00b00652c9450d27mr1822542pfu.21.1686118370469; Tue, 06 Jun 2023 23:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686118370; cv=none; d=google.com; s=arc-20160816; b=B0kfh5emuE3ROzMADlqZiKBCUS9YLVTK/n+NJmvUc9lFB+tQ4WlfsqeCqSjNqayeCe VzfkHxDXNz58FpcE4Fu6jB7Hp5N0PcR7T6anBImwfGBxR2I8Hq50/K+WfZVG0wApbsC7 qFUUVvvMtW29DZ+atVZaVkLnDN6lH2s5ApLp9iLWr7IUBk7ClOJTYj7VfOWdhpaP+gQC 1oy0IJLdHZh1wEHCziNDwTmOQLogxmIfLetdSNf8/bfeq9u56tQ2QhpgnFPBhy0C+aVt auvluFoPSgdhx3bNJIEy7OnIiV3eMAAuEwmsJC0RlonPC0TYRuyOHhLudJLNkdxYFYG4 OxOQ== 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=sE030EI3u6a3voKHuk8CefsxkjUUTltCOU/njWxVaypglG5Hvfr1+lUEEB83skLX+N IfxZpTwXPTE4otiZ6uIbEgG6Oq3njUTPa6Lyu3v0LpmwbN4CsBD1PykXZmd199GKKrRa ftJ6ZSbNMzNwu4vIeWCNkWnfA0hZXL0J5iPiJ+qwVnID2Z+h5xqF2U6oRvJDsdGazfaA Ci1XJjrJd7x/k6nsAPHUioebWYDNBTyjKlsq6vxcmd8iAwtSzoi04N+/esKloBSaePhs RkBYwOwr9yUs1pYqZBCmMJbITVvTrwnnKrVqm2ClZpIkwWoDGZKWcNcK/puXP4vdm6IV +2dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=IyaG89PQ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=yV0kxtIO; 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 y28-20020aa79e1c000000b005a8b856ad47si3120529pfq.7.2023.06.06.23.12.37; Tue, 06 Jun 2023 23:12:50 -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=IyaG89PQ; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=yV0kxtIO; 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 S234956AbjFGGAJ (ORCPT + 99 others); Wed, 7 Jun 2023 02:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234493AbjFGGAF (ORCPT ); Wed, 7 Jun 2023 02:00:05 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F5BA19BB; Tue, 6 Jun 2023 23:00:03 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id F08FF32009B8; Wed, 7 Jun 2023 02:00:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 07 Jun 2023 02:00:02 -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=1686117601; x=1686204001; bh=fl3ejIANYM wphGOpTaZIWtY9rHRJ/IGNetQKrBgr9cI=; b=IyaG89PQugO1w2NUuNNIszSOT0 L716qr1iWi+QMiWveShe1Qc7pCMmiqD6O20Ig3Xwvun2ugVtPkZM1S4zxVoKp47Z ev+maMM3Y0VvQr9jUopk7EsGyHgUopTEQjbcIc0Obt7DuK+nYzgtt+WBKaz8xnvu yUqUf+YMU2nn+TSmRuwt1C64UdRdXkCr7czIbCwaT/JhZ5k5KKuCycXqzA1413Zc DcXXly1gaNeE57eE08HnO3D2lg5ARKcW0BfGX4vO4Xxpa77DpJPbvy6M3nHWvSOw SuUWxldpZXTej11yE7hfEZ7tEQFOCb6xJX21aoVbCfrtjyX6FYfYUxCRJhvg== 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=1686117601; x=1686204001; bh=fl3ejIANYMwph GOpTaZIWtY9rHRJ/IGNetQKrBgr9cI=; b=yV0kxtIOLFKuF9M2FpWfZhQVJar6P tsGGJtj/BM0EBn9edXczKmhj9eMY95TFfHdAMWXzOfIM3qJFcP2f+avg8jfvuH2q luD5CkPZ9svTqtgg3dDKOytfT3xWfI12HEWB65Gb6zaWNmtJ6iX1gxkkVoe0AGYQ zjXQGJ8tIrppfciVl5cchHTi33TcyuA5uyI078paz9NGeU15Ta+HJjFmDNPS5/Zv /G3dgyDh2mpYq6AbNATYyVCrPL7bSUDr2mlcsjmxc0ZNqYe07HnpGSQ2E90NnjHw 1vWzTl2X3RHWg6czPoaaYpHY4yqjGRPURsJZdiRECb6VKRwb9ePAPJ+5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtfedgieefucetufdoteggodetrfdotf 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:58 -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 net v2] net: pch_gbe: Allow build on MIPS_GENERIC kernel Date: Wed, 7 Jun 2023 13:59:53 +0800 Message-Id: <20230607055953.34110-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,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?1768023256422001509?= 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 Reviewed-by: Simon Horman --- 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