Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6663242imb; Sat, 9 Mar 2019 02:53:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzWXniE2CqOaB9SNvy3MFibM9c8VkDVpTIGA1ZUaKVdDr9smzt1MbwLVlWTvvyVgQB0tTV9 X-Received: by 2002:a65:4844:: with SMTP id i4mr20404503pgs.347.1552128822914; Sat, 09 Mar 2019 02:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552128822; cv=none; d=google.com; s=arc-20160816; b=t6YyO5tN1RjgJtGpPYl3n67k6Tsuf5jfAfy3o5tZjwB8d7SNUmhrpk7g1/gLkQl9Fc NgBkzC0ej4RXxZbfYgnAbMku81pA98JPLZyHRqoL15KTMvgofJcpnevBWHuN4loR2597 90zYTVeYaVM6nInsSSXvewnrrru1rBm0AyGPNoyiKaug4WJNO7N/4lSqDhK99rQGjfh0 ZCtzpE+6rczzY28Wv0WjZm5SFiFblmJL9gbl395lXmfz1nmlCj0G/pGj2wP/72gxLIqC QTra7kc98JylkaW/YAppmR+YiB08JRpDEB4yuZbo0nor7kqJVpCTEgPmFch0CUQRiqy1 gwow== 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=ljXPcrxeWbpI5VtcQdRpGdRGFj0egxZjP9onQZeOcmw=; b=Pc+xSLMvWngp+TeIHTWM5J242C6PBYO19CFg+CZBZlG3FZC/X9c3qxDGOcNNCMD7zR X+TbG/IYo3ZXEugpEh0T435obBF2vgzJXYfyvS5EeVMDbQAzDEhcL+K2UbondLG8HRLX UXCjET+6mHLFOB8P3qMmBbAcrfti9EldDh3dlnyeYpvD/brBFmL43ttK0Nxr3+ZvUrRy MpN0Wl6N89o1L1pUmcgmtlI+tpiy/kh9iATIroyCHVN0dqaKDt17O5jn46L/r9YZNHh+ UTphXIb9KuBbbu8xK4qzeNG8+4LS5p8j9wBW3RnGAM2xjuujifmpkSTyeAuVRK7E0ttL 8qfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QcUllTfO; 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 w13si259943pgj.177.2019.03.09.02.53.27; Sat, 09 Mar 2019 02:53:42 -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=pass header.i=@linaro.org header.s=google header.b=QcUllTfO; 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 S1726463AbfCIKvL (ORCPT + 99 others); Sat, 9 Mar 2019 05:51:11 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:39358 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbfCIKvL (ORCPT ); Sat, 9 Mar 2019 05:51:11 -0500 Received: by mail-lj1-f196.google.com with SMTP id g80so120291ljg.6 for ; Sat, 09 Mar 2019 02:51:10 -0800 (PST) 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=ljXPcrxeWbpI5VtcQdRpGdRGFj0egxZjP9onQZeOcmw=; b=QcUllTfO29nUEMy8YCzXGwD9hf5lgA0/OC3vwFZBml1EeWnaMBZxGHuEi1KeDCGNfi Bci7LcgJAXmQse5L5ArnonrF1i5BvGLYSEJJyhu82vuRo+23ik68ugibVrmkZgF5S9B6 9AxvHRtS5sPd8oPpGmqRCkOk2ZkUP4kHd2iTX/rRzXLjhLcg79qERowkTPIqkrYrD0s4 /sPZ0yZaVsIUR0C/3W7RvUv20iYUOreEio29lFsN3817fGH+q/alSo4vTxH1NfYqb8yn LKdF3ONcK9S/exoeVzlvIbUMTh9+ZvjI7UtKbEeHTzNaosRHIwfkj1b9swDVGLwF2WPa KjbQ== 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=ljXPcrxeWbpI5VtcQdRpGdRGFj0egxZjP9onQZeOcmw=; b=sjPKWbXVL8wJzcmIdVOuT3IiEsuzRTuJhIIGHt4YvHuJ4hNkYHA5CNxBaQHjtTvP7b dXEg9uEu9hpEtlJUC6dL0iZQ1NYAX2neT5c5pXU/no0OyI/IhnES3kFv2QLIb9R036mG dlRZuvsLd0j0WcT7prUte0D6wkIzGV0NRdg9yhEIywkxObk1CqZ3GtXOmNmpfO3U+Rqw KC4QxGMmQ5f0fZutpxdOEMgNWx3VEHK6ZRAtMEhXgiIEnLEvJenF+uqxPNn3szg9axkq l8prxNpuMgCer/ai6/wRJfdvWSjrtGhxRm0yBOS1vwTo+JIE3HvAJECT8KDik8hpyWDT 9kHQ== X-Gm-Message-State: APjAAAXcD8jBEE1JQZzZTyntoktl+Z5etCk7beF7wFLpBJ66oTd1Yv02 S6Hw6b8K5KPZSOupw9E35eFr1xuEOB0IDiZJf+A86A== X-Received: by 2002:a2e:b1c7:: with SMTP id e7mr3309900lja.107.1552128669410; Sat, 09 Mar 2019 02:51:09 -0800 (PST) MIME-Version: 1.0 References: <20190309015635.5401-1-manivannan.sadhasivam@linaro.org> <20190309015635.5401-2-manivannan.sadhasivam@linaro.org> In-Reply-To: <20190309015635.5401-2-manivannan.sadhasivam@linaro.org> From: Linus Walleij Date: Sat, 9 Mar 2019 11:50:57 +0100 Message-ID: Subject: Re: [PATCH 1/2] amba: Take device out of reset before reading pid and cid values To: Manivannan Sadhasivam Cc: Russell King , Xu Wei , Linux ARM , "linux-kernel@vger.kernel.org" , Daniel Thompson , 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 Sat, Mar 9, 2019 at 2:59 AM Manivannan Sadhasivam wrote: > For the AMBA Primecell devices having the reset lines wired, it is > necessary to take them out of reset before reading the pid and cid values. > Earlier we were dependent on the bootloader to do this but a more cleaner > approach would be to do it in the kernel itself. Hence, this commit > deasserts the reset line just before reading the pid and cid values. > > Suggested-by: Daniel Thompson > Signed-off-by: Manivannan Sadhasivam This looks correct to me. Reviewed-by: Linus Walleij I think you can put it in Russell's patch tracker in some week. Yours, Linus Walleij