Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2239158yba; Fri, 19 Apr 2019 15:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQDrn8JHziEaJnOGi3rM8K9P41Mg03ADnFxEUxnNk2vorh6IrbYXvDT5n39LHTSLRUPBHB X-Received: by 2002:a17:902:9043:: with SMTP id w3mr6285958plz.101.1555712094718; Fri, 19 Apr 2019 15:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555712094; cv=none; d=google.com; s=arc-20160816; b=zBkSpyxTsZ9C1BZ4sV3MuRKUh2hdQBZHLsz+p+jBSyQctyBlQ7dsRMRczJ/Y1gblWv R+yIrCLEiWA8iKV/gBnHzfIvBcoOnl0DBhfm1hAN3mLn4XObaWqky4LUHXZtFaE4uVAP Rvx7j4ScY0QgHC0gQ1fSiK68ho4M6rc2//AXODs96coTqmOx3Vrhv+1aOvrKEO3vRwzj BeNu1kwVCRmMb/3dc3QQgCSAjeGxIPMLai0xIwVAT5c+P5b15KohB+0snj87FicYBdK3 t/6nWGBeRZMCRka6XuzqHO/gH9UmGhGK8LcKuxBALXHroNeE17wuXiohYKRueZfokn0Z 9oOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:subject :from:cc:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=MbUM7pw5gySPXkJ5iVOomuVdu0De1BFYsetF9+/c+mw=; b=U0mb9ZeipT9hFO0HupZRwqjdlpS32Ow7ujrpftfHMqpRt/X7oiw05EqsEfafycC3KA 3L/+X6ZOapI6J/q41LHDAPSB9GtC1RnmE5OyX9soYZ6WCPoBYahoJjXzgxod34qyBXpO 4QfI2lo1sClI5vI7M1BqXEojL0FBRVhUdB4aVsXCGKjdAED3tFavAyei26nZSLB1dz2L ghlKFV0X2tjkOxzmKuIBvpNM865pStrOjEzbRmgtTP6NXSNkIQis5ayGbND6QPh749TC P/KwBYab6SbVYCuQDORsnWjcZo1VOY8+MU0rcGEznqGWFBzkwa64Sy44wjEUhtnoJmpP HpVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MwHJCEGg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be8si5998153plb.72.2019.04.19.15.14.39; Fri, 19 Apr 2019 15:14:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MwHJCEGg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726192AbfDSWMi (ORCPT + 99 others); Fri, 19 Apr 2019 18:12:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:44868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfDSWMi (ORCPT ); Fri, 19 Apr 2019 18:12:38 -0400 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FF3521736; Fri, 19 Apr 2019 22:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555711957; bh=MbUM7pw5gySPXkJ5iVOomuVdu0De1BFYsetF9+/c+mw=; h=In-Reply-To:References:Cc:From:Subject:To:Date:From; b=MwHJCEGg+uedEEcfT/u9BgVx09OdQIxnAiZvCokZAwoENcPbae2UmBZBwKURqnENO IVdIyLdIpSXRp6PJNOeECXivQveVmHA+szH0nkchkSpe48WZHgGftLmjdpb5RDS8sX /vJelX34Bzun6r9qLbiyhUHMx/fbdYGtxZwQVCIo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190412183150.102131-3-sboyd@kernel.org> References: <20190412183150.102131-1-sboyd@kernel.org> <20190412183150.102131-3-sboyd@kernel.org> Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Miquel Raynal , Jerome Brunet , Russell King , Jeffrey Hugo , Chen-Yu Tsai From: Stephen Boyd Subject: Re: [PATCH v4 2/9] clkdev: Move clk creation outside of 'clocks_mutex' To: Michael Turquette , Stephen Boyd Message-ID: <155571195672.15276.10172483262833785539@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Fri, 19 Apr 2019 15:12:36 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2019-04-12 11:31:43) > We don't need to hold the 'clocks_mutex' here when we're creating a clk > pointer from a clk_lookup structure. Instead, we just need to make sure > that the lookup doesn't go away while we dereference the lookup pointer > to extract the clk_hw pointer out of it. Let's move things around > slightly so that we have a new function to get the clk_hw out of the > lookup with the right locking and then chain the two together for what > used to be __clk_get_sys(). >=20 > Cc: Miquel Raynal > Cc: Jerome Brunet > Cc: Russell King > Cc: Michael Turquette > Cc: Jeffrey Hugo > Cc: Chen-Yu Tsai > Signed-off-by: Stephen Boyd > --- Applied to clk-next