Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1679987pxb; Thu, 7 Oct 2021 12:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTbj/Dbkn6U1sDKq5PzVonBWEUKiOGGsLFrEYhNLEmcJo0s5vctMCa0D1uNC+SWig7syVj X-Received: by 2002:a05:6a00:158a:b0:44c:bc1b:3267 with SMTP id u10-20020a056a00158a00b0044cbc1b3267mr5531227pfk.76.1633635833676; Thu, 07 Oct 2021 12:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633635833; cv=none; d=google.com; s=arc-20160816; b=EJrzcP+bCajBL20okZ11SoIjcBwLrK0jm2f1gNtgqXFlkk7MnR4JB8gSb0/VHXaV04 Grn5IDRwvo/tkbdMOW1gXevSwmarhCxAT0SDDx7UUC+r3kk9N5RS4FHXRNNE1btH2dbT gksvZj8QIJmNDfQK59ZSt84+GMG2+UW43JAjGWuk9Imen5ZS1/3C8iv2fvx2Ylnp8yZW oE3dh2vUD1Rq/Tl1xw7NiaMuuOCm6pKZpyTkL4549rf4Jm/46+zTXmgIqc88mKAFKg3D f4b4ULtETBOhmDgxK6m9Xd8E0NaEMAR0Q8KqEwfeBkg4Bst7dWzlvJEIvozLUEsLsPWq jHMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vIaRdr2+be3y4Nl/ioqVB9YAX/AVl9QxeCW895S14Dg=; b=v76m+lYAK/Cp8HwVrMl5xFhLT+rtOUorAidPA26ht+6xCx0TuRRAPJFHrKm58+3rrF csiLKIZ0GQjC+oyAXkZUWg1QS6uIQh7rurF7Rputtmwbvdqa4sdj4wtwPeQLWa2zlztg GSj1UxFCDv4CbJ0SgJCAYvUT87YkYTARIToZu1H5rLQHDDa0PizG7c5EW/wIQHGSghlc mWQOUHtOUYskYUKT32F8407fyvD7occNu6DXxaaOnnp55IxxyzvRzSvKTWdT6LBd7f/d E2wEX1tfUxUKfYjLU6vqoIKnjJQBp9gWHjHsfCMItehszTFyFBG/vrUsRjajq8w0xG7E jQ7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si364576pgj.102.2021.10.07.12.43.41; Thu, 07 Oct 2021 12:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241360AbhJGR0t (ORCPT + 99 others); Thu, 7 Oct 2021 13:26:49 -0400 Received: from muru.com ([72.249.23.125]:41966 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbhJGR0s (ORCPT ); Thu, 7 Oct 2021 13:26:48 -0400 Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 6E3E080C7; Thu, 7 Oct 2021 17:25:24 +0000 (UTC) Date: Thu, 7 Oct 2021 20:24:52 +0300 From: Tony Lindgren To: Geert Uytterhoeven Cc: Linux Kernel Mailing List , Rob Herring , Linux ARM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , Geert Uytterhoeven , Rob Herring , Simon Horman , Suman Anna Subject: Re: [PATCH 1/3] dt-bindings: bus: simple-pm-bus: Make clocks and power-domains optional Message-ID: References: <20211007124858.44011-1-tony@atomide.com> <20211007124858.44011-2-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Geert Uytterhoeven [211007 13:27]: > Hi Tony, > > Thanks for your patch! > > On Thu, Oct 7, 2021 at 2:49 PM Tony Lindgren wrote: > > Clocks and power domains are not required by the simple-pm-bus driver. > > There are buses with read-only registers for clocks and power domains > > that are always on. > > The presence of clocks or power-domains properties is the only > distinguishing factor between simple-pm-bus and simple-bus, from a > DT point of view. So if there has to be a distinguishment, the > properties should be required Heh seems there is no need for distinguishment beyond the compatible property here though :) > If you don't have clocks and power-domains, you should use simple-bus. Except simple-bus is not the same as simple-pm-bus. We do not have simple-bus do pm_runtime_enable() as you well know having written it :) > > Even without clocks and power domains configured, simple-pm-bus is still > > different from simple-bus as simple-pm-bus enables runtime PM for the bus > > driver. > > Which you need to have working Runtime PM for child devices, right? ;-) Right. And based on what I remember we simply cannot do pm_runtime_enable() for simple-bus without breaking tons of devices. > This is not specific to DT, but to Linux. > One more reason to let Linux treat simple-pm-bus and simple-bus exactly > the same. Linux handles the clocks and power-domains (if present) > transparently anyway, through PM Domains I agree they should be treated the same way with simple-pm-bus just doing the pm_runtime_enable() being the only difference. But the clocks and power domain still should be optional. They are not required by simple-pm-bus.c driver, and may not be required by the hardware. Got any better solutions in mind? Adding yet another compatible or another driver does not seem to get us anywhere either with this :) Regards, Tony