Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761729AbaGRPXl (ORCPT ); Fri, 18 Jul 2014 11:23:41 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:57457 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756778AbaGRPXj (ORCPT ); Fri, 18 Jul 2014 11:23:39 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Chanwoo Choi , Mark Rutland , devicetree , Kukjin Kim , pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-iio@vger.kernel.org, Tomasz Figa , rdunlap@infradead.org, linux-doc@vger.kernel.org, linux-kernel , Rob Herring , Chanwoo Choi , Kyungmin Park , linux-samsung-soc , galak@codeaurora.org, naveen krishna , jic23@kernel.org Subject: Re: [PATCHv6 2/4] iio: adc: exynos_adc: Control special clock of ADC to support Exynos3250 ADC Date: Fri, 18 Jul 2014 17:23:30 +0200 Message-ID: <32226622.5gSmvBRKvZ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1405663186-26464-1-git-send-email-cw00.choi@samsung.com> <6917971.QKItNU3coA@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:4+yXVWtRlBIweQLkIDWGG+X/F/NhD6vucUV74NekY4K CEpyMj/Tj44WLs9vHNq6XpzFXo7+3Jept4xVFCCMXopxFqnGwZ 9r5/Ed1PX1huLSHBQfTQ8STAIx/LH4o0f72Wqvc07abuYJ1pBT bCmfzj1tKBz4wzBW0IWnarlxMv7uaSuAr+HisrTgTGpwO+mJZ9 j97KDZBdD7PbaDdcsCJ2attojiYrVF/yCR7WKIz+G2rPH5Rtup OJ2Jw3gngrqwgX7sPob2qlOYx+zeaxKbcF5ndwaOH1SU67h+4D 8TIRKg6fysQhd4PDbsjcm/x/4I702WHQG/gVeFgQReakFTDFAY rZ6t4Qxa4V2RSXJPDbXA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 19 July 2014 00:15:35 Chanwoo Choi wrote: > On Fri, Jul 18, 2014 at 8:14 PM, Arnd Bergmann wrote: > > On Friday 18 July 2014 19:00:48 Chanwoo Choi wrote: > >> On 07/18/2014 06:47 PM, Arnd Bergmann wrote: > >> > > >> > Further, why is it called "sclk_adc" rather than just "sclk"? > >> > >> The sclk means 'special clock' in Exynos TRM. Exynos SoC has varisou sclk clocks. > >> 'sclk_adc' is only used for ADC IP. > > > > But that sounds like sclk_adc is the name of the global name > > of the clock signal coming out of the clock controller. > > > > I still think it would be best to name it 'sclk' as the input > > for the adc. It shouldn't rely on a particular name of the > > clock controller. > > I think 'sclk' is too common name. 'sclk' don't include specific device name. > As I know, usual clock name includes the name of IP or includes the > specific meaning for each IP. No, normally it does not include the name of the IP, that's my whole point. Including the name of the IP is completely pointless because that is implied by the fact that it's being used by that particular IP. Ideally you would find the data sheet for the ADC IP block and figure out what this clock is used for, then find the right name for that. In a lot of cases, we are actually better off not naming the clocks at all but simply enumerating them if nobody knows what they are good for. In that case, you would simply have the first clock and the second clock of the ADC part and enable them both. Arnd -- 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/