Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2601585pxu; Mon, 14 Dec 2020 06:37:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyclTbLnN6cjrLA/NehjhtVhJdbfncCjlGpLhPbTKE6oXquGE9Hl5FIeQw6a/PF2zU4rv01 X-Received: by 2002:aa7:c558:: with SMTP id s24mr25525324edr.257.1607956653925; Mon, 14 Dec 2020 06:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607956653; cv=none; d=google.com; s=arc-20160816; b=RFEhRdWjKEVRvEKmy5yfx7Qao2hkQX2lxDWn1OfymL8dtbebbRMnFI91tF8olPbdoY nnORpy1MT3XvhHwErJzlUkQJGoS6rX6ZHF1M0pfbSNDu5cGFS1c1+dm/O17mmUNVmjpB RZgVV/mj6mb13g2/3MfPHfXoUU04UDg285Pb4ZBVv5GVcFfsCxNNZeJ31sjqKSkalJno ydMMWXFRe4XIxxPoUNRfmhM5Uzr7P34FK1Tsa4u2JckySw+tqH+QvNZ3h6B0XMj3LX/a NnsGSmiC0exZgiiuxbEVBb22QYBIoGvFDBgJNKhJy6iO6JFb4XvzBlNRJaP9EFVFIVnF oZ+g== 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; bh=JxIUxtR1xSMl/MFUeMdyUibvP9yAeJWR43OQFkCv2jQ=; b=0QmNeP2QN2A17pxgKYMmuUjxCi4i7HMz/JSuSrKdT/u97Zz9PpMo7pb4EK8QjQM3Nx JdgbCDJIgOwpsblvKW4IpMUSFqva9YR8sReWrjsVThzhvR524sydT2SHcHzeEKPD1Bx9 N7G3m4hiB0ufSuaa9CyMbl/OkxyQqFheWlDKto47eXabXmmp6rEp2Fp7ncMOvPllU+UA /WTBHy+KMHAsTf1PkwA5ec7PZ944YBUkPat6wGV5RRZ6973E3Xn4f8uZy5B4kzt7xQS3 ciAQAmd4Tv3M/pe6inJH06dFaAZDLzZaT2iNoup7faP8zVNrb09Ltl21UIVcYqQd8Gv0 yXnQ== 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 q6si922339edn.416.2020.12.14.06.37.10; Mon, 14 Dec 2020 06:37:33 -0800 (PST) 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 S2407851AbgLNLiF (ORCPT + 99 others); Mon, 14 Dec 2020 06:38:05 -0500 Received: from 10.mo5.mail-out.ovh.net ([46.105.52.148]:53649 "EHLO 10.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407299AbgLNLiA (ORCPT ); Mon, 14 Dec 2020 06:38:00 -0500 X-Greylist: delayed 12991 seconds by postgrey-1.27 at vger.kernel.org; Mon, 14 Dec 2020 06:37:59 EST Received: from player789.ha.ovh.net (unknown [10.109.143.201]) by mo5.mail-out.ovh.net (Postfix) with ESMTP id 22C1C2A4364 for ; Mon, 14 Dec 2020 09:00:39 +0100 (CET) Received: from milecki.pl (ip-194-187-74-233.konfederacka.maverick.com.pl [194.187.74.233]) (Authenticated sender: rafal@milecki.pl) by player789.ha.ovh.net (Postfix) with ESMTPSA id 14F541927E5EF; Mon, 14 Dec 2020 08:00:27 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-101G0040c338a84-40d3-4bcf-9a09-0dcf186e6146, 9D4513A06938E8562C9FC8D5040FBB067C1A90C8) smtp.auth=rafal@milecki.pl X-OVh-ClientIp: 194.187.74.233 Subject: Re: [PATCH 2/2] soc: bcm: add PM driver for Broadcom's PMB To: Florian Fainelli , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Cc: Philipp Zabel , "Rafael J . Wysocki" , Kevin Hilman , Ulf Hansson , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org References: <20201211215942.5726-1-zajec5@gmail.com> <20201211215942.5726-3-zajec5@gmail.com> <4d0bea20-1a3b-24d1-2d27-96f2f4fd48b9@gmail.com> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Message-ID: Date: Mon, 14 Dec 2020 09:00:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <4d0bea20-1a3b-24d1-2d27-96f2f4fd48b9@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 1992279886806289969 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedujedrudekjedgledvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptfgrfhgrlhcuofhilhgvtghkihcuoehrrghfrghlsehmihhlvggtkhhirdhplheqnecuggftrfgrthhtvghrnhepkeekgeefieeuhfdujeefgeektddujeekledvheehfeelfffhfeekjefhfeehuefhnecukfhppedtrddtrddtrddtpdduleegrddukeejrdejgedrvdeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejkeelrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheprhgrfhgrlhesmhhilhgvtghkihdrphhlpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.12.2020 04:26, Florian Fainelli wrote: >> + >> +static const struct bcm_pmb_pd_data bcm_pmb_bcm4908_data[] = { >> + { .name = "pcie2", .id = BCM_PMB_PCIE2, .bus = 0, .device = 2, }, >> + { .name = "pcie0", .id = BCM_PMB_PCIE0, .bus = 1, .device = 14, }, >> + { .name = "pcie1", .id = BCM_PMB_PCIE1, .bus = 1, .device = 15, }, >> + { .name = "usb", .id = BCM_PMB_HOST_USB, .bus = 1, .device = 17, }, > > Do you have to be more specific and spell out whether this is the host > controller (xhci) or device (bdc)? If not, then this looks good to me. I believe I have to and I believe I already do. I used BCM_PMB_HOST_USB which clearly (I believe) points to the HOST controller. In 6838 part of pmc_drv.h from Broadcom's SDK I found: enum { USB30_2X_Zone_Common, USB30_2X_Zone_USB_Host, USB30_2X_Zone_USB_Device, }; and that's what makes me believe we need to specify HOST explicitly.