Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753315AbcKHNKp (ORCPT ); Tue, 8 Nov 2016 08:10:45 -0500 Received: from nbfkord-smmo03.seg.att.com ([209.65.160.84]:58107 "EHLO nbfkord-smmo03.seg.att.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511AbcKHNKm (ORCPT ); Tue, 8 Nov 2016 08:10:42 -0500 X-MXL-Hash: 5821ced270b19559-3807cf26f511d232a2fec0d4e1f1f52cf92e9533 Subject: Re: [PATCH v3 3/4] ptp_clock: allow for it to be optional To: Nicolas Pitre , John Stultz , Michal Marek References: <1478556899-2951-1-git-send-email-nicolas.pitre@linaro.org> <1478556899-2951-4-git-send-email-nicolas.pitre@linaro.org> CC: Richard Cochran , Paul Bolle , Thomas Gleixner , Josh Triplett , , , From: Edward Cree Message-ID: Date: Tue, 8 Nov 2016 13:10:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <1478556899-2951-4-git-send-email-nicolas.pitre@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.17.20.45] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22686.003 X-TM-AS-Result: No--7.830000-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-AnalysisOut: [v=2.1 cv=SaLxA6lu c=1 sm=1 tr=0 a=8P+NB+fYZDP74ap4g4d9Kw==] X-AnalysisOut: [:17 a=fVG4DLb5TBsA:10 a=IkcTkHD0fZMA:10 a=L24OOQBejmoA:10 ] X-AnalysisOut: [a=KKAkSRfTAAAA:8 a=UPm3pfgAAAAA:8 a=pGLkceISAAAA:8 a=zRKbQ] X-AnalysisOut: [67AAAAA:8 a=jaA6tkZ85VXzA8qkbp8A:9 a=QEXdDO2ut3YA:10 a=cvB] X-AnalysisOut: [usfyB2V15izCimMoJ:22 a=uD9XBtlS4o1URY3aiGdj:22 a=6kGIvZw6i] X-AnalysisOut: [X1k4Y-7sg4_:22 a=PA03WX8tBzeizutn5_OT:22] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [193.34.186.16] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1475 Lines: 27 On 07/11/16 22:14, Nicolas Pitre wrote: > In order to break the hard dependency between the PTP clock subsystem and > ethernet drivers capable of being clock providers, this patch provides > simple PTP stub functions to allow linkage of those drivers into the > kernel even when the PTP subsystem is configured out. Drivers must be > ready to accept NULL from ptp_clock_register() in that case. > > And to make it possible for PTP to be configured out, the select statement > in those driver's Kconfig menu entries is converted to the new "imply" > statement. This way the PTP subsystem may have Kconfig dependencies of > its own, such as POSIX_TIMERS, without having to make those ethernet > drivers unavailable if POSIX timers are cconfigured out. And when support > for POSIX timers is selected again then the default config option for PTP > clock support will automatically be adjusted accordingly. > > The pch_gbe driver is a bit special as it relies on extra code in > drivers/ptp/ptp_pch.c. Therefore we let the make process descend into > drivers/ptp/ even if PTP_1588_CLOCK is unselected. > > Signed-off-by: Nicolas Pitre > Reviewed-by: Josh Triplett > Acked-by: Richard Cochran For the sfc change: Acked-by: Edward Cree And I accept that "suggests" isn't needed and the current "imply" semantics are probably fine. If not we can always change it or resurrect "suggests".