Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4362996pxb; Tue, 2 Nov 2021 08:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztg0ITsPmkJjGmHLEG9Q4Fhr8tgyMl1ZCX0wPb7m7gcyoh7x6jnyo5iaGuinugsqSrfZC3 X-Received: by 2002:a02:ce99:: with SMTP id y25mr13655972jaq.73.1635867056685; Tue, 02 Nov 2021 08:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635867056; cv=none; d=google.com; s=arc-20160816; b=UB0RIdUbjpumPbPU54+QIOYxSiO/hEKPNg5ZBuR+nZFNPCGf8AiAnHGW0fe+88Fuga eoyI5PDhNolO24wSwe/AaeULb8Xb8agTkJO2Um39eK+1KysBCyuqKKZXX93/HZ8FGJtH FYlA1fAaaPJQq0ofHvhoBKzbIBgrIEyGFfLMubO4W0AR/oZ6qkpY+Lh7FpH3ud4JjS1C kiKRe7OrzUBaXjl1aL3/4lyzZEXQH2LSZNkT0HNcwdyxKaV3gsdi/BXtMFrcDx2CE4KV ysJT9yc7OIwUUgsKaioriiR73Tz4tYd9L2WaYzRDHESRl8l3+HkqcCXqnqRKYgOGtfnH zhTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fxVnPZH6b6L2I7aYk+0v0By0qTM5ney7UTSCmiLQK+A=; b=WvztbwdG71/hqP3kz0EQ7IhXjQsymjk9EYSIJT+TJ9jpaYz8vBzUjkoVRCyFFY2PVO t3rHrOrbexU5RjQlj0upw+4Yduw1NNAMy/crfbHRUJfoi/bv9jdtLD10LbtXhPA6A1kA iV9N5slMONYP+Cz7u9oi0oIUr3GQPmqE8zTkd0fdQ2az68XLB6N7KnGDpthCsjHXKyRZ hJbfkP7Ot+MAc9VI4ph7R5XUTYVjqgbI9Sk+2l0sAXFq63+YViL83vn6ZRYo46ClXdGv CYQiUdu/i94CxXZNrLvfDsZl46MRnZLGdeC3ezPgo55SrNrM7KCH9YSKnfD1Ih68L6nK kiEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x5JmB/0O"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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. [23.128.96.18]) by mx.google.com with ESMTP id r18si29895700iov.50.2021.11.02.08.30.32; Tue, 02 Nov 2021 08:30:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x5JmB/0O"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S234616AbhKBP30 (ORCPT + 66 others); Tue, 2 Nov 2021 11:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234398AbhKBP3Y (ORCPT ); Tue, 2 Nov 2021 11:29:24 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 970CAC061203 for ; Tue, 2 Nov 2021 08:26:49 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id s24so6614836lji.12 for ; Tue, 02 Nov 2021 08:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fxVnPZH6b6L2I7aYk+0v0By0qTM5ney7UTSCmiLQK+A=; b=x5JmB/0OUUm0n3pUNm0d3bDFVZ9zoYTwmC68+WhMKiYCDd8J6meh19KGHZHjteCmGj Gb+poFRw+Q5O4+zzJh7M1JgxVnp1aEyWS9A6EwcLLgY1LpLfVZUgGn2Yl2smq1KttslG jPUkrYMvywbQCMzI5XmPp3b7So9dWZKEff10PaYosjnRDQLTQFGGPrDw8wBORG8lCbKW 055tT1pMfjVah6HOGuwIlD2rt3+wAoJcH5D10pnUSYQaFdjeh/fCItdq489Cn5qMhSnu pXYuysYzaAZvTPJAXCBoDBvy2nCrHmK0DLmb5ukSGYKQGQKHUnB+TYuHVt5IerDWDAHS SkwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fxVnPZH6b6L2I7aYk+0v0By0qTM5ney7UTSCmiLQK+A=; b=71uL5bDFWP+GwFHPnVVBs2JeyLSRPoEDMCfcncT0IBS1ryNf9jTh+V5bpQBC311xhW sIUq5cG6nhF6wANwtAVaE55W4rSVgDGZ5yCw3WC6M7rem5d7Jf5V3rBGjnv0OMbbZ6Dk LIZNCQxodW6kXHt4/xpigQVMLaGyiy5+joFTM8beGEdsn8Zyi3QHFOq0Qlw4cYF355fa eU8yaNdPhQTN9xhVFPg1M8dRdzZrPd+fYgXrv+Kl0bAzWqG9Y0sXFFeLNboVLSk1YZ4P tHnAyaEjTiM8Ja84GhtlNKCE3mykQROboU0fFr58XF0t5k1dKTfzO8NMLO7CI9os2/kI Qc4w== X-Gm-Message-State: AOAM5306tncZI5YqZMz26N+vPLZt2Rbf9lhGmA3etanYJlPIQUvW3JfC xcrGofiBjHWVMSXWYSVZ2KiSOg== X-Received: by 2002:a2e:7210:: with SMTP id n16mr29186843ljc.155.1635866807510; Tue, 02 Nov 2021 08:26:47 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id c1sm1844823ljr.111.2021.11.02.08.26.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 08:26:46 -0700 (PDT) Subject: Re: [PATCH v1 01/15] dt-bindings: add pwrseq device tree bindings To: Rob Herring Cc: Andy Gross , Bjorn Andersson , Ulf Hansson , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Kalle Valo , "David S. Miller" , Jakub Kicinski , Stanimir Varbanov , linux-arm-msm , linux-mmc , "linux-kernel@vger.kernel.org" , "open list:BLUETOOTH DRIVERS" , ath10k@lists.infradead.org, linux-wireless , netdev References: <20211006035407.1147909-1-dmitry.baryshkov@linaro.org> <20211006035407.1147909-2-dmitry.baryshkov@linaro.org> <37b26090-945f-1e17-f6ab-52552a4b6d89@linaro.org> From: Dmitry Baryshkov Message-ID: <31792ef1-20b0-b801-23b7-29f303b91def@linaro.org> Date: Tue, 2 Nov 2021 18:26:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 28/10/2021 00:53, Rob Herring wrote: > On Tue, Oct 26, 2021 at 9:42 AM Dmitry Baryshkov > wrote: >> >> On 26/10/2021 15:53, Rob Herring wrote: >>> On Wed, Oct 06, 2021 at 06:53:53AM +0300, Dmitry Baryshkov wrote: >>>> Add device tree bindings for the new power sequencer subsystem. >>>> Consumers would reference pwrseq nodes using "foo-pwrseq" properties. >>>> Providers would use '#pwrseq-cells' property to declare the amount of >>>> cells in the pwrseq specifier. >>> >>> Please use get_maintainers.pl. >>> >>> This is not a pattern I want to encourage, so NAK on a common binding. >> >> >> Could you please spend a few more words, describing what is not >> encouraged? The whole foo-subsys/#subsys-cells structure? > > No, that's generally how common provider/consumer style bindings work. > >> Or just specifying the common binding? > > If we could do it again, I would not have mmc pwrseq binding. The > properties belong in the device's node. So don't generalize the mmc > pwrseq binding. > > It's a kernel problem if the firmware says there's a device on a > 'discoverable' bus and the kernel can't discover it. I know you have > the added complication of a device with 2 interfaces, but please, > let's solve one problem at a time. The PCI bus handling is a separate topic for now (as you have seen from the clearly WIP patches targeting just testing of qca6390's wifi part). For me there are three parts of the device: - power regulator / device embedded power domain. - WiFi - Bluetooth With the power regulator being a complex and a bit nasty beast. It has several regulators beneath, which have to be powered up in a proper way. Next platforms might bring additional requirements common to both WiFi and BT parts (like having additional clocks, etc). It is externally controlled (after providing power to it you have to tell, which part of the chip is required by pulling up the WiFi and/or BT enable GPIOs. Having to duplicate this information in BT and WiFi cases results in non-aligned bindings (with WiFi and BT parts using different set of properties and different property names) and non-algined drivers (so the result of the powerup would depend on the order of drivers probing). So far I still suppose that having a single separate entity controlling the powerup of such chips is the right thing to do. I'd prefer to use the power-domain bindings (as the idea seems to be aligned here), but as the power-domain is used for the in-chip power domains, we had to invent the pwrseq name. -- With best wishes Dmitry