Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp911056ybl; Wed, 8 Jan 2020 07:55:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxtNIBXyi2JQHFiLVtogLG8IrjWAIw1Ed5242O2An3XhbtXL94vbTxV+ZaByGPxvIz0yKpP X-Received: by 2002:a9d:dc1:: with SMTP id 59mr4679933ots.250.1578498929626; Wed, 08 Jan 2020 07:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578498929; cv=none; d=google.com; s=arc-20160816; b=nLEQYWC0cub7JT1yL4c2LIlhSO7WNLmxFro6t4Q25sRRvCrY5EpeON8sFsReBLVLk2 ekVTbozqkAcjq8CzYt94xwJ/Ah2U0bZJJGoPeDVJFH+8aafcaUp6of/rux89zpa39sLq pDepwsJeqytS4cN1eKA+wb7HlFd6rQDyAXfeX5jFxjfRcKyFKnCbvrW/jIdkEutShcSd 1VDFlvcAcTIw9FUbmFhV9beyz2qwnEpFyf2zg8meF3UPxi84fY8JUPS6SVCYhXeXvXTI zWsrhC0RV1OPaQqEjq8jdKmQ8o9jEYGRcNg84VI/S5gKLLMeolUYLOxObzp8wSe5vTqK Gkhw== 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; bh=hRF/c6vSidz995Bdfrt73EUUwHf0cNPuoQjJDpBeQS0=; b=iKZmvuB3gon3sW3FGCWOthgFtDpe/06c07C+nJRuxp6DhVyl+AvbrKpVbdVidSDJSh v5SlThxbvztNRNS7RvuNwQ27GHkXwGQnvowoP9e6vCsPcMDJGs8YnYywvMmSBH0qjnuS yM39b6o7Er68T8xB6xqU2cIn/BbY2UMpJLNJWDMS+YvhlFT5OGX3t4qNEO1mvZzfDvSU dgXJ/sSB1nrHSESyL19WwPT+OdvE39YdWTGs350cWtNNDcB8rss2/m5J6LJeUTFustIp WQCuikfEmsWMZbw7QHDg+RaNTZ3OM/X0uJVFaiUh7eOqkBxY1mZPkYAcy7Yo8iA8Y6nP T7zQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g6si1959063otk.171.2020.01.08.07.55.16; Wed, 08 Jan 2020 07:55:29 -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; 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 S1727599AbgAHNgL (ORCPT + 99 others); Wed, 8 Jan 2020 08:36:11 -0500 Received: from foss.arm.com ([217.140.110.172]:44654 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgAHNgL (ORCPT ); Wed, 8 Jan 2020 08:36:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9AF3831B; Wed, 8 Jan 2020 05:36:10 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 253813F703; Wed, 8 Jan 2020 05:36:10 -0800 (PST) Date: Wed, 8 Jan 2020 13:36:08 +0000 From: Mark Brown To: Sameer Pujar Cc: jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: Re: [PATCH] regmap: add iopoll-like atomic polling macro Message-ID: <20200108133608.GB3817@sirena.org.uk> References: <1578392889-16587-1-git-send-email-spujar@nvidia.com> <20200107120902.GC4877@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline In-Reply-To: X-Cookie: Trouble always comes at the wrong time. 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 --ftEhullJWpWg/VHq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jan 08, 2020 at 10:20:37AM +0530, Sameer Pujar wrote: > While checking the documentation on snd_soc_dai_ops, it appears trigger() is > in atomic context. > This means I cannot use regmap interface (with default configuration) in > trigger(). > The above issue went away with usage of regmap_read_poll_timeout_atomic() > and now I think I just got lucky. It's fine if your regmap is set up to support atomic use (using a flat or no cache and MMIO) but not for regmaps in general, I'm asking you to document the fact that it's only usable with some regmaps. --ftEhullJWpWg/VHq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl4V2scACgkQJNaLcl1U h9DyyQf+LRcDvu8nJIgo56AfloLDZvisdiVJj7IrHeWoTCRS9c1x+UZUP70TNT6z U8jW6z/jfA0AjReMQygFjd6K+3qAlfl3A/7EdFIb2oIv8xhW89KOhEIG2gp0ai57 bID5m+17D34TDlaCbzVgR5jAapB34UzAK6Okv1VjbeTgAXvEhUbbPYPgNbF2WVB7 Sz8KTR4CVfHPNN3UVh/9PBkrbEx5ndgBhAyjf00iffGfisbtUJ2WoHWd06VuUAmW MlUxoi4kSwbgx+yd9L1gq+TOcCYqrCiW/8b2UubQ/xEe4hOM6i8SvMKbtuViORIa W9nhfZ/Ki+3VjeiMnh+n2/XUVY4ndw== =8PIN -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--