From patchwork Mon Sep 20 09:57:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 514304 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1891925jao; Mon, 20 Sep 2021 02:58:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0mO7yyAANeYJRLz61yv7Y7n/eGkbWVnWffMeJO9hxH/tyKbv+yO1SdXr3Rjc+5oK0TiRS X-Received: by 2002:a17:907:76e7:: with SMTP id kg7mr27986197ejc.344.1632131926018; Mon, 20 Sep 2021 02:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632131926; cv=none; d=google.com; s=arc-20160816; b=FES7+xBTsGI+7AMwuCCayWiGXXSucSEspVaUv2YF7Fvlfghk5XbOOA6YKz6HFMMbSu boHZHNzzwd5otg4OVAIt3j8vKIVjlPsqBgeocOTzW2IjAZpv0+66dSy8575KMrsHCJKH sRRR5A8Zk5Ct3UHdvkR+SmV0mxv1ettUFyR67nATvVlrq1Sgx/GIe51s4IUwppiQ0ndd Uwq6YcR4+cfUqZuUeZ9EXE/jafpINFex5II1qzre70pYgBDhkrUh7ekBY3Ovl6BGj6c2 i9PRIGeMoPwZxa1Ou4xCxIC9wf2M51G8UL6EwKC2rtO1NQY4I8r3HL8FTV2ZmUk2kpcg UDNQ== 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:dkim-signature; bh=FKhczZcK5SNKORlFLCDgYfrySDKfWAb0lMQErsYCKcA=; b=lDyja+ntB0VwYfAeIv+LfyCw/Ty1aiA+axZ7jnBgL/VmZ7da8Gn8wp8CowDFzYME/X uN8tniwRLtcnmxka07WHfQfnuLBk4Z0p5Nz2D8ZCTJCHZ+ukhdE1Vpcq7dadyfUaquKl X/1JqH7vZ3s8hPdp5fJm/vRUPttEbCrsngf5IFj7kKMD3IB8MDBwWMKPNfzsHzmjf2xM prR4QA7CFVk+JJ1PK+96LVXM4SixpSt4QbqRce8YnWd94kJc2l63KHOZs0n4caVfBCng ePRyaWxImC2KEmzVgTqTdrcCvMPZPmPm1ur1dbgHGhKabbQ42suECZATuEvxaMov+uX3 BFuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TXVx74+R; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si15223243ejy.236.2021.09.20.02.58.45; Mon, 20 Sep 2021 02:58:46 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=@kernel.org header.s=k20201202 header.b=TXVx74+R; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235363AbhITKAL (ORCPT + 8 others); Mon, 20 Sep 2021 06:00:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:41470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235913AbhITJ7i (ORCPT ); Mon, 20 Sep 2021 05:59:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D290760F6C; Mon, 20 Sep 2021 09:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632131892; bh=QinVQ60cc1yJSPedEM/wv5BKNwu87gDCFtvzp/+sRjU=; h=From:To:Cc:Subject:Date:From; b=TXVx74+RamQAmLn5AdgCXmW0vzuTxyoYKiE4IKWnDGV3D9bzLu39y4YVvGbXqeQwi S0nF7bI/jqEkJ7mID680iYXsJKTBCNy2fVE8kh2bKkSJeiGVdtjlGxexz/7bZDzEcL ZWktaFdQIESB/m4rJKb3wTK9b/mdZvMRoKbrQCQuYItRrWzxwyPeuc2yPg4cVCWvWd KdPZCiGQFjwflq1FkK77FwJek4HQFIrcS21AMbqPRvsUsYBs9LcmT+jvv7frLDqg+1 AAfmy971a1O08VjXEZqrm5xYyU83Crx+thfkpAQhWoQBSXYHzfHFTPRnAenIMnVBxk vGVlYZCR1WWLA== From: Arnd Bergmann To: Richard Cochran , Jonathan Lemon , Jakub Kicinski Cc: Arnd Bergmann , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ptp: ocp: add COMMON_CLK dependency Date: Mon, 20 Sep 2021 11:57:49 +0200 Message-Id: <20210920095807.1237902-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann Without CONFIG_COMMON_CLK, this fails to link: arm-linux-gnueabi-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_register_i2c': ptp_ocp.c:(.text+0xcc0): undefined reference to `__clk_hw_register_fixed_rate' arm-linux-gnueabi-ld: ptp_ocp.c:(.text+0xcf4): undefined reference to `devm_clk_hw_register_clkdev' arm-linux-gnueabi-ld: drivers/ptp/ptp_ocp.o: in function `ptp_ocp_detach': ptp_ocp.c:(.text+0x1c24): undefined reference to `clk_hw_unregister_fixed_rate' Fixes: a7e1abad13f3 ("ptp: Add clock driver for the OpenCompute TimeCard.") Signed-off-by: Arnd Bergmann --- drivers/ptp/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index f02bedf41264..458218f88c5e 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig @@ -174,6 +174,7 @@ config PTP_1588_CLOCK_OCP depends on I2C && MTD depends on SERIAL_8250 depends on !S390 + depends on COMMON_CLK select NET_DEVLINK help This driver adds support for an OpenCompute time card.