Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp665208ybb; Thu, 28 Mar 2019 09:44:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1h3rxZVEDLM7otm85PEv/tTIJPaEpdUJ2h8un/0NM7vZSIPq4tQM9+zrK8wd5Illakras X-Received: by 2002:a65:62c5:: with SMTP id m5mr40352762pgv.77.1553791481303; Thu, 28 Mar 2019 09:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553791481; cv=none; d=google.com; s=arc-20160816; b=IkxyEEVHyphXzTpEo5vtDLnALnwpI3PDfAPba2edOomAZJLHdHpIn4xWLS/pJGCOAC mmJvFzlLz2hJFaJek+FE12DvWa0zlNIO4/h/5VyXvrC2p/E5msRxhJwb+IQtZm1BJDYO idPa32USUjVlgoENIpr8qwmF0OM3k7TbKRP26sMZAuz/kPps2z/QZGpbBa+UAoREhx38 l2ao72NIJLsuxXa+CoGasf1cvn6+SlmVShvaw0ib71mFdc/rfYoDO1AZDdP2aWmh/siK VnVtcP1hq8Piu2WscKsV8rPVnJbDZ2MC2wx0f3BjCxRyC+yOZdOTgSRQ44p8/jH5W0mK SVjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jaNrgd1g55IoM81UacYAJ1Xpwyq7RE4BrscS2SbcSG4=; b=llSZPq/nUqBTbIVEqzVUQlNiK5qceyhMUxo/QMUMuE2EDMQU9kFnQbaj3+gq0hoXtO zmhNhYLBIuhcerIGSW4/8oydGjSNAfbMhbcyAMRI4BzEN3PTXJaqmj/q9/0/N9xp+2sR 7zjZKwziEXkSilVLZs5afkD72zQIn8GkERAbmgGE5kskarTx8VkfAcW6Ww1V2nqaai2g MoeXEYdBMC6TKbC70d1ybD+/zARkR4te+4dXbv0ZoFE7JW2EhHAJPuGUY6/rI17AJ3MQ lZzIkZ871dplUJGPZzNf8ETHzyNOpWV/jJCLdH12N/hHCDWN9cB4vf9DRdTLlfEhFEXL eOaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="PfImegt/"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p88si21204794pfi.142.2019.03.28.09.44.25; Thu, 28 Mar 2019 09:44:41 -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=@linaro.org header.s=google header.b="PfImegt/"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726969AbfC1QnS (ORCPT + 99 others); Thu, 28 Mar 2019 12:43:18 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35297 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbfC1QnS (ORCPT ); Thu, 28 Mar 2019 12:43:18 -0400 Received: by mail-lf1-f68.google.com with SMTP id u21so14511053lfu.2 for ; Thu, 28 Mar 2019 09:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jaNrgd1g55IoM81UacYAJ1Xpwyq7RE4BrscS2SbcSG4=; b=PfImegt/ErnnH5XHna2hB/3i4fT8b65qnTRPT0py270Zf4kxSjA+9Bl2d0qsS61a9n bZf8Ku/DeuCMU3sNg+uIZm+baTfF+D9BQxwxCdDnHH7yQwTtiywK/k27XtdfRhVDhc83 qwvIkVL4p1OZcGGU4ibauUpvbt4/gLmlQt/1omVT3JUJb+5ORvAYUvTaGm/zLWJ9OIkm hY4m55GDVQuMEXXBdgEqKb7bf9gRfQsjEnA3584CWOFhc0VLscRWesuq/avV97og7N1s fmLUMEQHR7W6krhGYkVt9GNVcmVaDSFM1BCFshbDtDPUW+0eZBPVY0v5mU/Pa6vAA0ge m75w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jaNrgd1g55IoM81UacYAJ1Xpwyq7RE4BrscS2SbcSG4=; b=m7nbtIDhGumVTxEKP+snbaTrv1hHd0darabKBFl8+jy21/hMYzu1I5BcqtXAVPH395 6JQE2+tugMJkdMdnRqIIofLHE3Ka0xmZ2ZRrvGKmt5fpsPyTVD5Upb1K6Z1JM9V6A5xr VvSml0IEFje4U6ymZ/MprxS0+pZWvKvrswcX4rBiIEJR+oC5hys30w7c1MNGdW+noyVs BQFKtUcBLjVwPNQyvBdgZrP/5Ro7l+Px6uRql7JK9BgLw5Mb6CK3pj+R0qgBox6+799u vMXcJ6HXkL186Zki/F4REFy2WWn5zVbQDnaZUXRgGUWeCuaonO6pbpZRf8LsF8sL/w2s 3wyQ== X-Gm-Message-State: APjAAAWdtpNuenzH2R1oatJsgSryAMaJ6veuw8buA8S3PHukyX/byXwA Qe6aALDBViABBiwUxjTGFwkOOXaYImonwDk+3Eflta++ X-Received: by 2002:a19:5789:: with SMTP id l131mr22037709lfb.8.1553791395949; Thu, 28 Mar 2019 09:43:15 -0700 (PDT) MIME-Version: 1.0 References: <20190309015635.5401-1-manivannan.sadhasivam@linaro.org> <20190309015635.5401-2-manivannan.sadhasivam@linaro.org> <20190312122711.b2ibipico2dgavl7@holly.lan> <20190320065658.GA22381@Mani-XPS-13-9360> <20190320172956.lt4eq3vusq4traea@shell.armlinux.org.uk> <20190321111716.weqoderiyuicbktc@holly.lan> In-Reply-To: <20190321111716.weqoderiyuicbktc@holly.lan> From: Linus Walleij Date: Thu, 28 Mar 2019 17:43:04 +0100 Message-ID: Subject: Re: [PATCH 1/2] amba: Take device out of reset before reading pid and cid values To: Daniel Thompson Cc: Russell King - ARM Linux admin , Manivannan Sadhasivam , Xu Wei , Linux ARM , "linux-kernel@vger.kernel.org" , Peter Griffin , Guodong Xu , Haojian Zhuang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 12:17 PM Daniel Thompson wrote: > On Wed, Mar 20, 2019 at 05:29:56PM +0000, Russell King - ARM Linux admin wrote: > > On Wed, Mar 20, 2019 at 12:26:58PM +0530, Manivannan Sadhasivam wrote: > > That said, if a reset line is shared between multiple devices, and a > > driver wants to assert the reset line, it would disrupt the operation > > of all those devices, so there would need to be some kind of > > synchronisation between the drivers. > > That is what shared ownership of the reset line provides. When a line is > shared a single driver does not have the authority to unilaterally > assert reset because deasserts and asserts are counted and the line only > goes high again when they balance. This is what we want for this I'm pretty sure. Regulators have the same thing with internal reference counting so that if you turn a shared regulator on from several clients it just increases the refcount and it will not really be turned off until the last consumer is disabling it. Yours, Linus Walleij