Received: by 10.213.65.68 with SMTP id h4csp942213imn; Sun, 18 Mar 2018 08:11:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELvq7bjJN7XDTSIT54mUDxiEcEJfyO5uECVQOwg/or+wugnl+VD3Sa1OnGjWkp4pz/4ijvDN X-Received: by 10.99.125.75 with SMTP id m11mr6720534pgn.391.1521385890737; Sun, 18 Mar 2018 08:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521385890; cv=none; d=google.com; s=arc-20160816; b=exBvcGVDm+/C25TSORKkI/OHTAd2v2FYpo5fpqluzLe/MGiMew6zM9oYvdlComFss/ jMh2FoZrt9/kwAfqJsZ+BmXdZGdoIDLOyHGL1Pin4Y9hIUoYNeMg01tYUi98/ge0ggtI qWv9VGvik6H6e8ri1a2ksydPeqbLkogb+OxDzJotvhfn2WqtuKliG0WDNyd+Q8vnSl1p o8WXiZDa6j/vEI4IbKJiWj3HwTw3SY9Iq5bUpwTVK5VvNokhc8/ekCdi4Ra2JBJ24DOU FF7VRzquVzL290sG6/CQ5QtFTdAOmM6qGTHWIp0fvjg7Ul08ss7yPGMg+OZlVvhi7PmV DM6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=7RqbkOBj2BzK5/l4pbcqZYAgOu6GBFtfAmVRJDMOYeY=; b=AHn5mzHa6+46GaXz6EFOjKtjPLzpRJnIeaaJHRdN6d7f4bgjePMb5xlnXef1xEyOPs 97ZUQs0GO35ub2OKnxDu9hDE+ZJrfWhr0uCaZdC10zCV/hUi1Ik79iGIBSXo3paxtpwj j/sAxyHWNn6DFoSZlKXWkv2NmmXzB7B3ma37zCd1lPp/c1kcxv9PRWH7jsMtH/vEdJWA 3xbefZe0j53RWbihsc1MIOvpPMoDA6XJVfa3vyJV9Sj+VaLK2dPmChkyvNiSl1HU34Dw a0z7vstyHwjbAwffETujqIj9f7oYsBoun8FaorKxF9go/bTlp6gPoC1C1aUeiZr1tHXX 6Gfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=enyZ+JUr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si6580098pge.465.2018.03.18.08.11.16; Sun, 18 Mar 2018 08:11:30 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=enyZ+JUr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754066AbeCRPKE (ORCPT + 99 others); Sun, 18 Mar 2018 11:10:04 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:42967 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbeCRPKC (ORCPT ); Sun, 18 Mar 2018 11:10:02 -0400 Received: by mail-wr0-f196.google.com with SMTP id s18so16040804wrg.9 for ; Sun, 18 Mar 2018 08:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=7RqbkOBj2BzK5/l4pbcqZYAgOu6GBFtfAmVRJDMOYeY=; b=enyZ+JUroXm0MndY0gD/+VHUMpU5Et5E9TOo8S4O1pwpIPubK1xiU2RMnzrROBshWb uV54iydyaopBnBbrCOJT7gl3obgr4iuO+DGqzLv+EUtb8RG91k1hDigYXrURl7OPLI+u MMJvSz5INLGr7z1d4+BfVxGGKadXyoihqhu5RMvEi0/BECzR/BPvRQccvYRkon0DrezM payb4OAunzg1Xw1X6CQMz/FMN+trx3yqr3OV9/9yyrFE2wWaijkqLioRGjAgarWbmgs8 bz61u2kPSaHuAiX9ZmQc3+/Qh+oqJdkduuK8j8rPjUeYvFOZbGpxO8hK2kKLWiYepa/G T7Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=7RqbkOBj2BzK5/l4pbcqZYAgOu6GBFtfAmVRJDMOYeY=; b=Q6Jfg0KJ4Zu/H3FShk6wtBDRhuLbpSabNgHXcFYA+KY0/bUkmXv1LoeualfkVZNeRg ZvcQlimd9BO8Bk6ovs3NarUUfWUM+ifoph/0zMczENuWSxGwHPqSSxS/u8NTwL6jfTrj eCf0xjnrEUvWQu9kPeQPb0bbTTOxCu3GTjsC+s7zyGdCkGndEPdk+1iG7DaQe3dapbVj 0TSx1+T+/9Y6f7OVf/NhgNYa5suSwPBctfseLVcCl1vuxq9X0yIpYaZU50XyfrDWF8X4 SeD5ZJ83S1SdbmMjtWCW7DHUmXsEMhpvaMYdRS80HCxNLthX5BGfA8gOhgrivTlKLXlU eEqw== X-Gm-Message-State: AElRT7GtjRRwu6d9B1vHxClDl3bUleKJIpU/CHriAKL4tx/a9SVjr/Wt WWpsmhOdhhNjdLzlIRnkpsqVlw== X-Received: by 10.223.188.135 with SMTP id g7mr1697334wrh.69.1521385800615; Sun, 18 Mar 2018 08:10:00 -0700 (PDT) Received: from boomer (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id z3sm9424718wme.3.2018.03.18.08.09.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 08:09:59 -0700 (PDT) Message-ID: <1521385797.6569.90.camel@baylibre.com> Subject: Re: [PATCH 1/4] dt-bindings: clock: meson: update documentation with hhi syscon From: Jerome Brunet To: Rob Herring , Kevin Hilman , Neil Armstrong Cc: Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Sun, 18 Mar 2018 16:09:57 +0100 In-Reply-To: <20180318125222.kqtybu4hiwvsx3om@rob-hp-laptop> References: <20180315115545.1884-1-jbrunet@baylibre.com> <20180315115545.1884-2-jbrunet@baylibre.com> <20180318125222.kqtybu4hiwvsx3om@rob-hp-laptop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-03-18 at 07:52 -0500, Rob Herring wrote: > On Thu, Mar 15, 2018 at 12:55:42PM +0100, Jerome Brunet wrote: > > The HHI register region hosts more than just clocks and needs to > > accessed drivers other than the clock controller, such as the display > > driver. > > > > This register region should be managed by syscon. It is already the case > > on gxbb/gxl and it soon will be on axg. The clock controllers must use > > this system controller instead of directly mapping the registers. > > Sounds like a kernel problem, not a DT one. It's a platform problem, so it has much a kernel problem (solution already merged) as a DT problem DT wise, we've got two devices mapping the same region in arch/arm64/boot/dts/amlogic/meson-gx.dtsi: > system-controller@0 which is used by the display device. and in arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi (same for gxl) > clock-controller@0 It has worked so far because the clock controller claims the region w/o reserving it but it remains unsafe since both device may access the same region. The fix is to have the clock controller go through the existing syscon. > > > > > With a single child, there is really no point to this change. A single > node can provide multiple functions. Look at nodes that are both reset > and clock providers. There is more than a single user, as explained above and in the cover letter of this series. > > What other functions are there? > > Rob