From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754581AbbBFAeL (ORCPT ); Thu, 5 Feb 2015 19:34:11 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:34947 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669AbbBFAeI (ORCPT ); Thu, 5 Feb 2015 19:34:08 -0500 MIME-Version: 1.0 In-Reply-To: <54D406BA.6060403@ti.com> References: <1421269101-51105-1-git-send-email-s-anna@ti.com> <1421269101-51105-2-git-send-email-s-anna@ti.com> <20150115135201.GG16217@leverpostej> <20150115135556.GH16217@leverpostej> <20150116101746.GA21809@leverpostej> <54CFE71E.20905@ti.com> <54D406BA.6060403@ti.com> Date: Thu, 5 Feb 2015 16:34:06 -0800 Message-ID: Subject: Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock From: Bjorn Andersson To: Suman Anna Cc: Ohad Ben-Cohen , Mark Rutland , Rob Herring , Kumar Gala , Josh Cartwright , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Rob Herring Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 5, 2015 at 4:11 PM, Suman Anna wrote: > Hi Bjorn, > > On 02/05/2015 05:01 PM, Bjorn Andersson wrote: [..] >> Will you send out a new revision of the binding? I would love to get >> this integrated so I can move on with the dependents. > > Yep, will do as soon as I hear from Ohad on what to do with the patch > "hwspinlock/core: maintain a list of registered hwspinlock banks" that I > dropped from v7. Without that and dropping hwlock-base-id, I can't get > the translations done. > My suggestion is to replace the global id-tree with a list of hwlocks and iterate over these if we ever get more than one driver registered. As long as #hwlock-drivers < log(#total-hwlocks) this should be faster. I would however argue that clients that would notice any kind of difference are using the API incorrectly. Unfortunately this is a somewhat larger change than just slapping DT support on the framework :/ Regards, Bjorn