Received: by 10.213.65.68 with SMTP id h4csp1245633imn; Thu, 22 Mar 2018 20:05:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELtRIFckcPAdBIvH1xP833XrluPd7lBvHKaYFjiEmXjcQrSnk/4xb/qCNkG4fctKIt4eqOWX X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr27756262plt.303.1521774355695; Thu, 22 Mar 2018 20:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521774355; cv=none; d=google.com; s=arc-20160816; b=VUxnyB/UDSdtCecf39qqklvjfOzKMnw3SFTEl+l6ccjFaiWMcFL+Xhb6yy5YyoRNfo 1P1vaAvTo7rf62kLUs4xAY2GuGwrdaZ8nfQuilr4p2MhbVvP51up1bCGmpqMRCwXaJv6 S8SfBqb/9bk8Sbe+CI2UDA7tm+t8qXY1tTTfnVig+RXMCdbccKqWHUiGD1Ey/JZyIkqo yukJHoIBWD/hRuRkj3L90UdEzr2zKP78o/CWIf/GhVHbesPVLRV4Ejxz/HgdAMtcHGwr CdiW/z/fDdqiAa8g6/6psTl9jDGrZUrYlRTwxtfjNm9vBBmtILDqBjmq4T38kNBqL9xM buiQ== 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 :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=0g0ipAQVYqVQxXPwX60oeeJwxWKPPAlJCFEs27p8PXs=; b=xhIJGpoWHPlDPnJWmi0lq5jDHn6PpPUip9tcs4c+QAY1U90MvTRXWj+xNFHjTVdcQI UWMX/c0YTS2m0ztaTbSX0NBZbPnvN/MxSKlD4jI806j9iyYmY7HwzHMqxWXXIEGUIZh+ MWwhWKpHZNKClWNReNJZ4iZJKZXOW8suffA5NqsGq0gdk567SMwXinQIUUfV/5V5KiDm vi/AD86dHbScQXd341afhZvHep8eEscosxmGS6Rj9CP1zzKo6xC7vYH2Okn5l9ipBGAy coEeALzqoEE+yPXDSF+EGgFOIM5kwizICAamfBkQ3m0LC5HRAGQtc27A8JZSscsjLsMC hYtw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si6169622pld.137.2018.03.22.20.05.40; Thu, 22 Mar 2018 20:05:55 -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; 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 S1751905AbeCWDEh (ORCPT + 99 others); Thu, 22 Mar 2018 23:04:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:51512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbeCWDEf (ORCPT ); Thu, 22 Mar 2018 23:04:35 -0400 Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 11B2C2183E; Fri, 23 Mar 2018 03:04:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11B2C2183E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qt0-f175.google.com with SMTP id v11so11199593qtj.6; Thu, 22 Mar 2018 20:04:35 -0700 (PDT) X-Gm-Message-State: AElRT7G0RjNqlbVkGE7vclpF2FJJW07ZtIEbLojuI+2O/qlyvcUl6+XK J0Ts4MSOOZOs31Ln/pKtQXJqRpea2gF/Q7gI1g== X-Received: by 10.200.42.37 with SMTP id k34mr23679331qtk.101.1521774274237; Thu, 22 Mar 2018 20:04:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.213.166 with HTTP; Thu, 22 Mar 2018 20:04:13 -0700 (PDT) In-Reply-To: <1521385797.6569.90.camel@baylibre.com> References: <20180315115545.1884-1-jbrunet@baylibre.com> <20180315115545.1884-2-jbrunet@baylibre.com> <20180318125222.kqtybu4hiwvsx3om@rob-hp-laptop> <1521385797.6569.90.camel@baylibre.com> From: Rob Herring Date: Thu, 22 Mar 2018 22:04:13 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: clock: meson: update documentation with hhi syscon To: Jerome Brunet Cc: Kevin Hilman , Neil Armstrong , Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" 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 Sun, Mar 18, 2018 at 10:09 AM, Jerome Brunet wrote: > 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. We certainly want to avoid multiple nodes using the same mmio region. >> 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. Right, but a single node can support more than a single user (or provider). You don't have to have multiple nodes to have multiple users/providers. Rob