Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2058211imm; Mon, 28 May 2018 00:22:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpWhRZWIlqwohe3c5yMR/rRUc1p7ya5RsiRSzpGaaD+MxDQ5K6ujqEzl4oaimjZkvTrz5nj X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr12783888pld.315.1527492152828; Mon, 28 May 2018 00:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527492152; cv=none; d=google.com; s=arc-20160816; b=Dy4x9UvMDMVbqaSoVQ4b2ryIUh/JRxGP57zMWl8G0eDYFgu7g2I+mFbo/1wxvmbnO5 l4V2CEi4oPZp2SJ4HrmDkojmkO/PQ9KIkMOAfT4Cov1xtT6Dmo+3hfelhB8JsQ9xeKXk l6tcHXqTQV5q2nQagGam2lTCSk+vdec0+cU9LFBCmFyTTzQ5/xpi32GaanaMe73mYi1i 7ghzcJTJlmPogJ+Bw1T3QH/DzZN/AG8WGYIMP7ysyjpUifVgSjaj/WX6vGzQeJcgVeek dmaKxBhdJJ2RWBm7i2e7J9j6mak7xRplR4QTaMbmTc390HjxVuGBSobGvbuFNtje6B36 s6yw== 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:arc-authentication-results; bh=Fd5ESNxf4CxFlWIW3lck1f0OyhkthouAldMdXe7gSdc=; b=AbLnN7OvQwN1lPboWwP+6FKr9yarPjcMaAfZXIk4cfpONKs28pqOCHcy0a4HzqdQR0 qq0YyBSdLav+mVV6gaO0ct1pxQeWqEemGz2GslcTUHzbdaj87xU/bPA3O7hcIc/Te8oZ Xwk4TA5eMj3np3HGziDv/wp4g9x+cQTl2F+H5ZBE9KWqXahwzzl6eHvYDSLVCG4x/OcJ RrKgJEizlZtYbJVp9vQAYTN/+RsaSYc0VGg8FWyxTTGCOthCeXgNnXQeQ8/8qbBjPNNm Re8sQs2250B7Zn70ngqaXfEu1Gjv6rzZtv0EqXYUYvAtnpl9SzVvo7qOZV7mv2YOsplN Kdpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Iyi1Hn6R; 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 l4-v6si28691200plt.258.2018.05.28.00.22.17; Mon, 28 May 2018 00:22:32 -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=Iyi1Hn6R; 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 S1753826AbeE1HUv (ORCPT + 99 others); Mon, 28 May 2018 03:20:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:53700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753638AbeE1HUp (ORCPT ); Mon, 28 May 2018 03:20:45 -0400 Received: from dragon (unknown [104.237.91.108]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E245420845; Mon, 28 May 2018 07:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527492045; bh=tewcpoGvVNrLi5cWNnm9ADBgeV02a+B83vQdV+MbmyE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Iyi1Hn6RxwI76mn9c28XtgFP3crLm92XPUUFS+sh2prXEdDodKfEbxy4l1V/kJtlj oKxj6MTthnddgYsEjfbHyeluMor75sGiKHB8x+I5IlNry4xKqTiIbqQX3lBMjvqePf MM3xwuy769DlYj8evXBsQTbZC6NPjF9pXOqisCQw= Date: Mon, 28 May 2018 15:20:35 +0800 From: Shawn Guo To: Sebastian Reichel Cc: Sascha Hauer , Fabio Estevam , Will Deacon , Mark Rutland , Russell King , Ian Ray , Nandor Han , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCHv4 1/2] ARM: imx53: add secure-reg-access support for PMU Message-ID: <20180528072034.GB3143@dragon> References: <20180212123945.15732-1-sebastian.reichel@collabora.co.uk> <20180212123945.15732-2-sebastian.reichel@collabora.co.uk> <20180224074543.GF3217@dragon> <20180226134741.neqkpge33zo3pfzt@earth.universe> <20180227011033.GV3217@dragon> <20180227101712.3zwobvs4ox4jchcj@earth.universe> <20180528022652.GA3143@dragon> <20180528064131.y5burm5kakiazaq4@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528064131.y5burm5kakiazaq4@earth.universe> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 28, 2018 at 08:41:31AM +0200, Sebastian Reichel wrote: > > Are you saying this is a very specific setup required by i.MX53 only? > > Yes, all other SoCs supported by Linux ARM PMU counters driver can > just use the registers without having to enable platform specific > bits first. > > > In that case, I can live with it. > > What about the DT node? I did not add it, since this is a i.MX53 > specific workaround anyways. What you are adding here is secure-reg-access property, which has an defined meaning in PMU binding doc. I'm not really sure if it's appropriate to use the property as a condition for DBGEN bit setup. Or can we set up the bit regardless of the property? Shawn