Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756668Ab3HQAdL (ORCPT ); Fri, 16 Aug 2013 20:33:11 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:56847 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756381Ab3HQAdI (ORCPT ); Fri, 16 Aug 2013 20:33:08 -0400 Message-ID: <520EADBC.9090608@wwwdotorg.org> Date: Fri, 16 Aug 2013 16:54:52 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Pawel Moll CC: Kumar Gala , "ohad@wizery.com" , "rob.herring@calxeda.com" , Mark Rutland , Ian Campbell , "grant.likely@linaro.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , Jeffrey Hugo , Eric Holmberg Subject: Re: [PATCH v3] hwspinlock/msm: Add support for Qualcomm MSM HW Mutex block References: <1376507361-26907-1-git-send-email-galak@codeaurora.org> <1376573746.18617.45.camel@hornet> In-Reply-To: <1376573746.18617.45.camel@hornet> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1190 Lines: 28 On 08/15/2013 07:35 AM, Pawel Moll wrote: > On Wed, 2013-08-14 at 20:09 +0100, Kumar Gala wrote: >> +Required properties: >> +- compatible: should be "qcom,tcsr-mutex" >> +- reg: Should contain registers location and length of mutex registers >> +- reg-names: >> + "mutex-base" - string to identify mutex registers > > Just out of curiosity, why is reg-names required? Especially if there > seem to be only one set of registers? Indeed, I tend to think that reg-names is a bad idea. IIRC, the rule for "reg" is that entries must always have a defined order, so that it can always be accessed by integer index. And given that's true, allowing for reg-names just creates confusion since it implies you can look up the index in reg-names and then read reg at that index. Now the same isn't true for clocks/clock-names for example, where it's defined that there is no order, so you must search clock-names first. Inconsistency in rules, uggh. -- 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/