From patchwork Tue Dec 10 19:56:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 181155 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp6351982ile; Tue, 10 Dec 2019 11:57:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyiKHvicElTgmtTqWya9H8EiWLcRaWdFbrgGg6lQKHYOCb/Zxk0pLerwtEC/NbwmBHKXHgV X-Received: by 2002:aca:b588:: with SMTP id e130mr493150oif.169.1576007839043; Tue, 10 Dec 2019 11:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576007839; cv=none; d=google.com; s=arc-20160816; b=N/ilE0xx37NeB/UhW6lfkZMehoyhW41BhB1BPeO9gN6mWlJ6YKMR5W3G0r7tqSFj2+ fsc4JX7mFYBQLu9Lv3drwGZSIoFIvpNgISrALjGAEJthL2aicT5wC48ie6+yKNyBUPfn Ex9/SY/DWcjfDcrvnFjBYGqcUM24Re9KEA/ZOV+PKF9U8MSOvTZgqCZO0NWT2g3KXEjM HJS0WGAMMPrftMFHsqjJino5FcehbQ8PgDwEQLOQbHcDb1nN96E+lcwpMCGm+9fDUFDr fui3feGPexNh6bGDkOWA724XV9+lk62ffVt7iOklZhm8Zi5FTzHJBiPIbyCIJdVRU5rO 0S9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zOH4hI+b43SoD1HxduO4Rx9xoFUkYwNl3KR+JqfDCfw=; b=gNn5ttt1/bBqxoWImcljiC2NsjzawPx3R31lIrzZVeg5hzXiCgWyyKyhEGeuQXGPBs dvlkKzHIM2jXSy4FaIJFQrd9YvGcrQpkjTdkt4bpbbxR5qubkhJjDa1EA4RsEg/q75c4 s82wYPjR0S7eSM94bJY8NC/ydo1jr8To9kIHJ3GgpniF1bYfSQCb+z4NzGFMjlMEVMo7 GRev8w3NWZgL1gZc4TnTCBJ27UhF79p3AE0y5PkC/8Daipvt6g2SDfbvar3LzF723io4 WoxZdhiCNU2kcpbaTQNeIWfLBWwYF1S2UdimhvkOPC/wTu67Pb8vEDual5fjQla4q3yO KEjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si2747364otj.114.2019.12.10.11.57.18; Tue, 10 Dec 2019 11:57:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbfLJT5R (ORCPT + 27 others); Tue, 10 Dec 2019 14:57:17 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:59543 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfLJT5R (ORCPT ); Tue, 10 Dec 2019 14:57:17 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1Ma1wY-1iHYLx10lQ-00VvBX; Tue, 10 Dec 2019 20:56:53 +0100 From: Arnd Bergmann To: Richard Cochran , Vincent Cheng , "David S. Miller" Cc: Arnd Bergmann , Yangbo Lu , Antonio Borneo , Thomas Gleixner , YueHaibing , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ptp: clockmatrix: add I2C dependency Date: Tue, 10 Dec 2019 20:56:34 +0100 Message-Id: <20191210195648.811120-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:F4zdzK4avnZouVz7gJ/tCWTYGHWNnMwIjsDbazN3EHBrippnh5/ lUJz/ddp+CP2nzgpMvIPRfYeRRE+wJmlgzTDuS/Jj/Tq9VHJALETTEsCNKK3V8DV1v27k9S /vc3Ux0rpKBUWTGD47QU72pkLQRXNRP1ULCcpzDFF4wDp+UYS47T6ZyEU4RHVMnhh26AFSP xNhKgI9liz6uMd8sSKbyA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:2+YG34Ahkjo=:6P3HL8aGD4qANpM1IX7CfY tU566mWrm6GxrPVqN1d7MK/2ZTp7O2DhGLAqPOYIRAYJxddTp4SuO7zXyG6IwPEzohpcgSfV7 mR7/q6UXM8VDJQ3Lc5NdvtjevuQo3v90ygbYLG0SXWW7QnxSgSSGENmzkub6aOTRQLK9Wmw/Z npE9FzH27WPaHU93/xUf41wVdGOGccyBW36AyRtDtuu1KBE8dpGLEFCP+3ZzviUhYghngVjOG wEM2z11OMMxhvcUYKuqFy0BeyAgTJTNriVV4NznnQ4FTXjR5M6qmD96e5hog+NRwHaNB3acLc 9oGN+l2nucRIC7G+Rr/E2AAd8UMQs+CiDvrN1bDgRPkLEUqzQSB+BJIXOWX53PmWAJTja8mB1 wsP7VxZjjHOfS9XsNSk/o9VysWM5Who/seVXht+fovEB0en2USpo2n2R/T8D5c2gWaw4f4MWe TrsTS6qP9s134jbu0GLLTf9a7z87PfpstRvijkEeS647urGjN3a3gfLMQ1ESfP4FNpnR1/79A Oz/5dqNUfLbGdtEsYP2aIGeF9FNVl93ZpNGx6ERhemhBm2N7xApqiP3tYNKUiVZ3sDOIKYEJ2 iMmc5gfUC5tJv+f0loVibAdyoo9c7cq+i3E9RD9b/6SJ5dYGKhivKgdXXEPDW1dV93QLhdFSL PZGXTFr+0g6K3T8g93DDsQF0HJgA2IZFdrqnWQ2jKoCzAqyRtfAuwcwq/8XJ95f8Zt2sa1q5j i5QbSsQ5EVA626l5M30P5LL74plbSy3gJRedbR+RbE9+qGJYMRnyscuXEwN2UXzxRaPNLactn LA1PR1bgPTXwH7IfAuK6UlEzlKM90faLz4ZBqZU8mwGNRq3juy04A/EguRAQlxpHrIWT6Ldvt d29lej7o1dU5YkgnKqNQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without I2C, we get a link failure: drivers/ptp/ptp_clockmatrix.o: In function `idtcm_xfer.isra.3': ptp_clockmatrix.c:(.text+0xcc): undefined reference to `i2c_transfer' drivers/ptp/ptp_clockmatrix.o: In function `idtcm_driver_init': ptp_clockmatrix.c:(.init.text+0x14): undefined reference to `i2c_register_driver' drivers/ptp/ptp_clockmatrix.o: In function `idtcm_driver_exit': ptp_clockmatrix.c:(.exit.text+0x10): undefined reference to `i2c_del_driver' Fixes: 3a6ba7dc7799 ("ptp: Add a ptp clock driver for IDT ClockMatrix.") Signed-off-by: Arnd Bergmann --- drivers/ptp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Reviewed-by: Vincent Cheng diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index dc3d8ecb4231..e37797c0a85c 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig @@ -107,7 +107,7 @@ config PTP_1588_CLOCK_KVM config PTP_1588_CLOCK_IDTCM tristate "IDT CLOCKMATRIX as PTP clock" - depends on PTP_1588_CLOCK + depends on PTP_1588_CLOCK && I2C default n help This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP