From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758117Ab2DYKiN (ORCPT ); Wed, 25 Apr 2012 06:38:13 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:40493 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755412Ab2DYKiM (ORCPT ); Wed, 25 Apr 2012 06:38:12 -0400 Date: Wed, 25 Apr 2012 11:37:44 +0100 From: Russell King - ARM Linux To: Andrew Lunn Cc: Lothar Wa??mann , viresh kumar , sshtylyov@mvista.com, spear-devel@list.st.com, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, mturquette@linaro.org, akpm@linux-foundation.org, jgarzik@redhat.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH V3 07/12] ata/sata_mv: Remove conditional compilation of clk code Message-ID: <20120425103744.GT24211@n2100.arm.linux.org.uk> References: <20120424120019.GE24089@lunn.ch> <20120424201802.GE3628@n2100.arm.linux.org.uk> <20120425052802.GF13489@lunn.ch> <20375.40225.227084.644318@ipc1.ka-ro> <20120425071418.GA2116@lunn.ch> <20375.46953.269684.680915@ipc1.ka-ro> <20120425093109.GC2116@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120425093109.GC2116@lunn.ch> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2012 at 11:31:09AM +0200, Andrew Lunn wrote: > > If an arch has HAVE_CLK enabled it must provide valid clocks (be it > > dummy clocks) for all devices it supports. > > So, lets take the theoretical exaple of a unicore32 PUV3 > > config ARCH_PUV3 > def_bool y > select CPU_UCV2 > select GENERIC_CLOCKEVENTS > select HAVE_CLK > select ARCH_REQUIRE_GPIOLIB > select ARCH_HAS_CPUFREQ > > Seems like this somewhat unknown, to me at least, architecture, also > supports PCI. So i plug in an HP Adaptec AIC8120 SATA host bus adapter > into a spare PCI slot. This uses the Marvell 88SX6041, which the > SATA_MV driver supports. > > Should i expect that the unicore32 PUV3 has created a dummy clk for > this case? Are you going to bother answering the detailed email I sent describing my POV on this case?