Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp860275imu; Thu, 3 Jan 2019 08:22:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN4J4V9dxNI5/OzkYUI4384PwbIF3DeyfVLb4Cftjq0HrijDjV761QUSr3pmh00h/NFqKjHE X-Received: by 2002:a65:4946:: with SMTP id q6mr17125736pgs.201.1546532559856; Thu, 03 Jan 2019 08:22:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546532559; cv=none; d=google.com; s=arc-20160816; b=z5s97uP9t6hyJOLDPEQ0OzcdbSrFvxMHCLZ412uycSIM28La7whLMiOWxVpz4zxHik R/lmxPzWGzXmQXuqHDWcOQDaV0dY/cglP9h3NXslo84TZe8GKVp3EbfSdxmmOgH4YUHq N9b04pQpewENLYfCBlG93OMfa0ADypm20zRZ/WNdDRGdP+VMMPo0Ipf0v9H67OepyY19 Se9qZ41hqQzcUtYWbPHROTsamDL8T7Htex6hoN1deOZOXs0D6BKCM/4iujs5LLkwyJ9S qSm3KaGfi+Povc480/qZk4k+6iOu0vx4odEC9fMDZzsaww3UsArVWcBX2xUJWyGMDYJP a2Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f79EABYDV+dsASJEvEqhPNamqf/vT4jNMtDLjiGrScg=; b=ZXNCGekRxlR/J1pthYZGLCwUnRrcfgnu27LJJgoLhO0RWqh8DkFT4kmB/cL4zotlkT rWmMOKs9pQl/rvimy+Rgt/u8xlGgNrAupXqmO2qHid9H8djweJ+hAzBYzzd7tEjkkwKh C5BCaONlFs3oGc2TNDO7oKkBAWyNWVOiN4y3Sn+FtgJNRlIoWwTcJVl/Bm6ZnTtrG1cq 4lPGIe/n1fh7YCYfKHsaBzKpP+59yPHLn1zicT+scBZ2If/KC4wjrFGd3lGa+kTAw+wv Q/O4IjR9M9tSANkmKHLnrOdDRKUtQDSaydTybvdFJF7zRXdmu+/aKaHeNpSVLOM2QjYF QSMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=d0n8LxGZ; 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=fail (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 d36si32232001pla.216.2019.01.03.08.22.22; Thu, 03 Jan 2019 08:22:39 -0800 (PST) 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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=d0n8LxGZ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731136AbfACMhk (ORCPT + 99 others); Thu, 3 Jan 2019 07:37:40 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36296 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbfACMhk (ORCPT ); Thu, 3 Jan 2019 07:37:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=f79EABYDV+dsASJEvEqhPNamqf/vT4jNMtDLjiGrScg=; b=d0n8LxGZy3PpIfjIs+EE8Mpd3 FYrWxgW0/9IidXX/M2+o8B6PLYGj95PczplxgeEMJWH2j8CimIHhzPq5+a5rbTxwVQ3jfDbFcPI18 yebyIbbIQbcpjVzWhpkh7Y+7D+0xjq4FYICoYfUz7vHQAhG7jrnFInoFQQBPEMxOPX7G0=; Received: from [2001:470:1f1d:6b5:7e7a:91ff:fede:4a45] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gf2FV-0005TW-AK; Thu, 03 Jan 2019 12:37:21 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id B277A440080; Thu, 3 Jan 2019 12:37:20 +0000 (GMT) Date: Thu, 3 Jan 2019 12:37:20 +0000 From: Mark Brown To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: "linux-spi@vger.kernel.org" , Ben Whitten , devicetree , linux-clk , Maxime Ripard , netdev@vger.kernel.org, Michael Turquette , Stephen Boyd , "linux-lpwan@lists.infradead.org" , linux-kernel@vger.kernel.org, Russell King , starnight@g.ncu.edu.tw, "David S. Miller" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v3 lora-next 5/5] net: lora: sx125x sx1301: allow radio to register as a clk provider Message-ID: <20190103123720.GR1846@sirena.org.uk> References: <1539361567-3602-1-git-send-email-ben.whitten@lairdtech.com> <1539361567-3602-6-git-send-email-ben.whitten@lairdtech.com> <491d1a46-c112-1106-9f25-14149f0dcbd0@suse.de> <20181231175034.GI1846@sirena.org.uk> <1904336c-3349-b22b-18ac-e82e4afebc51@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l2C7pJE7HE4aLL3l" Content-Disposition: inline In-Reply-To: <1904336c-3349-b22b-18ac-e82e4afebc51@suse.de> X-Cookie: knowledge, n.: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --l2C7pJE7HE4aLL3l Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 02, 2019 at 01:44:40AM +0100, Andreas F=E4rber wrote: > So, the third invocation of sun6i_transfer_one() calling clk_get_rate() > hangs at the prepare_lock instead of reference-counting, because it runs > from a separate kthread, unlike the two previous calls? If there's any contestation for the bus we push all the I/O through a separate thread to maintain ordering and improve performance. > I did not find any *regmap_init_spi() based example in drivers/clk/, and > all other "spi" mentions in drivers/clk/ appeared to be clock names. > The closest was devm_regmap_init_i2c() based clk-cdce706.c, which uses > the prepare/unprepare ops, as suggested by Mark, and does > regmap_update_bits() from there. You'll find a bunch of the MFDs have SPI options as well. --l2C7pJE7HE4aLL3l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlwuAf8ACgkQJNaLcl1U h9B0fgf+L5M5NYjkOb8YWAmiLMYKo32qz8zumAKB3jHRMDLhmVZ11snwrNem9O1u a9uD3TkuRJqmhjiGU41W0F+7+72K6RVlQHqQXBTCbvBp2NtnwPUlwRsJyDMjfuoE m+Tc1NWzViVdxoSBK1GwGc49gZcZtqLT0gfInSOCSyhDQpD815qpSaBH72jh3oNa txSLnhegZan3tHsatH0Vi0Ly8JweQ+RMG3GV9vWe4DgPAA8kM1/p2Pg7pCVUPb6O jwFZEtXHVKW4ZRQ093OPH+1ReH31GoxKnXkw0S8cq4vnLqbnxcTpRrs8X8DypCbF ofLLAAWzlMrfyfXw0tF5wjGAI0x/fg== =fEFJ -----END PGP SIGNATURE----- --l2C7pJE7HE4aLL3l--