Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755884Ab2JPUJh (ORCPT ); Tue, 16 Oct 2012 16:09:37 -0400 Received: from webmail.solarflare.com ([12.187.104.25]:61138 "EHLO ocex02.SolarFlarecom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752333Ab2JPUJg (ORCPT ); Tue, 16 Oct 2012 16:09:36 -0400 Message-ID: <1350418167.2649.47.camel@bwh-desktop.uk.solarflarecom.com> Subject: Re: [PATCH 1/2] Fix build error caused by broken PCH_PTP module dependency. From: Ben Hutchings To: David Miller , Richard Cochran CC: , , , , Date: Tue, 16 Oct 2012 21:09:27 +0100 In-Reply-To: <20121003.204336.1981040659629176119.davem@davemloft.net> References: <50654A62.5090003@linux.intel.com> <20121002.222238.1580734803370802133.davem@davemloft.net> <1349300710.2763.8.camel@bwh-desktop.uk.solarflarecom.com> <20121003.204336.1981040659629176119.davem@davemloft.net> Organization: Solarflare Communications Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.17.20.137] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2347 Lines: 62 On Wed, 2012-10-03 at 20:43 -0400, David Miller wrote: > From: Ben Hutchings > Date: Wed, 3 Oct 2012 22:45:10 +0100 > > > I thought of it as being a peripheral feature (which most Solarflare > > hardware doesn't implement) so it made sense for SFC_PTP to be optional > > like SFC_MTD and so on. But I'm quite happy to use a select instead, if > > you want that to be the convention for all drivers implementing PHC. > > I think that consistency might trump those conerns you mentioned, at > least in this case. Currently such kconfig options look like, for example: config IGB_PTP bool "PTP Hardware Clock (PHC)" default n depends on IGB && EXPERIMENTAL select PPS select PTP_1588_CLOCK ---help--- Say Y here if you want to use PTP Hardware Clock (PHC) in the driver. Only the basic clock operations have been implemented. Every timestamp and clock read operations must consult the overflow counter to form a correct time value. There are a number of problems with this: 1. PTP_1588_CLOCK depends on PPS, so this has to select it as well. 2. PPS and PTP_1588_CLOCK depend on EXPERIMENTAL, so this has to as well. 3. It's a boolean, so whatever it selects is built-in, even though the driver it relates to may be a module. I think the various kconfig options should be changed as follows: 1. Only PTP_1588_CLOCK selects PPS. 2. Nothing depends on EXPERIMENTAL. (This stuff has been in for 18 months and it's even being backported to RHEL 6 now.) 3. Either: (a) The per-driver PHC options select nothing, and the driver options do e.g.: select PTP_1588_CLOCK if IGB_PTP (b) The per-driver PHC options are removed and the driver options do: select PTP_1588_CLOCK (i.e. PHC support is unconditional) Any objections to this, or preference for (a) vs (b)? Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/