Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1989837rdf; Mon, 6 Nov 2023 00:58:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIS+B+8RI61LhPJL8FTssrCiJiAlHZdhXoMt+HokOmDTBLqc5nxOLyQNnkZAq6W6AKMe4Q X-Received: by 2002:a05:6a00:2d8b:b0:6c3:6ce2:46b0 with SMTP id fb11-20020a056a002d8b00b006c36ce246b0mr6903029pfb.16.1699261084398; Mon, 06 Nov 2023 00:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699261084; cv=none; d=google.com; s=arc-20160816; b=Rkoh56YCAw2iedxsdkVOhDTMtHhs2Bu457h7SHOtTQKZaIKK2+CjCr+da7sH5JEShQ ctBqPHkzaCeEqjh5ooqwT35gP5cYc/ZOiTMqnkR3tO0dL3i35i1ouzRQrXz5LegNJvEX ylvOuqmeVpkd7FCtiBGWTaAI5SvAuSDiE8WmG5H05WbAHqZc3DO/zoWfUkPiiHtR+Wjn IRT+kUT52FxUfGHIGU1qy7VRoGfPha+XwwFv7XCloVR5Sm0Y63IzWUhvtDRGuakTwZOL txhXKzBPii1XQHLXFmEBtEu972o4A9gnpLspTljLlwu8luHC0NT9DRsa82EooOcEsRCZ toRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Li64Rr+47O978kTffHt8aUaAj4nCMLpfy4HwCQCJMvw=; fh=XR8g1WnP5G713dQpxwUiT2pVDJ2Pry1MY2+MqnwD3vQ=; b=ThfnL32LOojP0bwxzbRip2tWtd6OeoMfh/pXDEW5PV8FBNR14ngUxHIwgqb0jeXogY LDrpk/XVNIf1ZzLKjrLEwL80SrA6V3AnPe2hPn8/6L3lL7MYKP0AZtccrNgsVlRxGQy+ P3327qVrr7sJGaIrKNqKhFnwFVEMwqpG5m9pQR7I7J0rRYbZ+Ym+JlHcbCYLgXLrvvVG 92jrbD0+WCc15sRVQ0euldFz+y5lrj6ItREoATarUStifbpApoTI+vbRSCeYp0cClS+r rx4BIeDkJryaDNgwihq1Z7zxePzgiK42n2ghxQLWOtOGCJa4iQCrx3AbYBqr5VGD6COd oXkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FDYtNNs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id y9-20020a63ce09000000b005b9801386afsi7357465pgf.70.2023.11.06.00.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:58:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FDYtNNs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E32098058A0F; Mon, 6 Nov 2023 00:57:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbjKFI47 (ORCPT + 99 others); Mon, 6 Nov 2023 03:56:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbjKFI45 (ORCPT ); Mon, 6 Nov 2023 03:56:57 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A6FD47; Mon, 6 Nov 2023 00:56:54 -0800 (PST) Received: from [100.107.97.3] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id DBB4966022D2; Mon, 6 Nov 2023 08:56:51 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1699261013; bh=2bQrh9kRjs2Bw4B8MQ78bYsQT4NqBoEiyodRc4PVONs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FDYtNNs62qygPiCN2rkjAxEyXDar+qBlAq8PklIeaawgbJuotagpZL9UXpi7hCk/e xwlzBeG7+F/E3dchu4toNfgHksxeSbMrIPsPB/pSCJOuOAQbsI1/yAS8f0wdgC+63U 4wV3ZbKi2qGhaZx3Uo3Xg1QDx/Cf5+wTjRDCyFfqINMSz/+RShlOdmuKWgpJsNZtHU PGwa/j/350/shzhiFJd8f1QqYf2EbJVmIcUy410Q2QkGgOGPsK4n3HAaCiUOVe7r/W jSwZ+HBileEniXukCZPpfMxDlVwEisByngWE/dyPzQwCEfci9e5JuaIrSUdnpTNcEA 2H3Y1Kc3Ue+fA== Message-ID: <08afca95-9e64-4763-890c-809cd5575a06@collabora.com> Date: Mon, 6 Nov 2023 09:56:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/2] PCI: mediatek-gen3: Add power and reset control feature for downstream component Content-Language: en-US To: Krzysztof Kozlowski , Jian Yang , Bjorn Helgaas , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Lorenzo Pieralisi , Matthias Brugger , Rob Herring , Jianjun Wang Cc: linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com, Chuanjia.Liu@mediatek.com, Jieyy.Yang@mediatek.com, Qizhong.Cheng@mediatek.com, Jianguo.Zhang@mediatek.com, Bartosz Golaszewski , Abel Vesa References: <20231106061220.21485-1-jian.yang@mediatek.com> <20231106061220.21485-3-jian.yang@mediatek.com> <74e491ce-24c6-4d7a-a1b3-708857f03887@collabora.com> <1b66b6bc-2a9a-4caa-b4f5-c88f098475e2@kernel.org> From: AngeloGioacchino Del Regno In-Reply-To: <1b66b6bc-2a9a-4caa-b4f5-c88f098475e2@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 06 Nov 2023 00:57:41 -0800 (PST) Il 06/11/23 09:46, Krzysztof Kozlowski ha scritto: > On 06/11/2023 09:36, AngeloGioacchino Del Regno wrote: >> Il 06/11/23 08:53, Krzysztof Kozlowski ha scritto: >>> On 06/11/2023 07:12, Jian Yang wrote: >>>> From: "jian.yang" >>>> >>>> Make MediaTek's controller driver capable of controlling power >>>> supplies and reset pin of a downstream component in power-on and >>>> power-off process. >>>> >>>> Some downstream components (e.g., a WIFI chip) may need an extra >>>> reset other than PERST# and their power supplies, depending on >>>> the requirements of platform, may need to controlled by their >>>> parent's driver. To meet the requirements described above, I add this >>>> feature to MediaTek's PCIe controller driver as an optional feature. >>> >>> NAK, strong NAK. This should be done in a generic way because nothing >>> here is specific to Mediatek. >>> >>> You just implement power sequencing of devices through quirks specific >>> to one controller. >>> >>> Work with others to provide common solution. >>> https://lpc.events/event/17/contributions/1507/ >>> >> >> I agree that working with everyone else by adding pwrseq is a must, but other >> other PCIe controllers are doing the exact same as this patch: if the supply >> and gpio names are aligned with the others, why shouldn't we let this in and >> then convert this driver, along with the others, to the new pwrseq subsystem >> when it's ready? > > Because you already push to the PCI controller bindings new properties > which are not properties of the PCI controller. > >> >> That, because I expect the pwrseq to require a bit more time before being >> ready to get upstream. >> >> P.S.: Check Tegra, Broadcom, RockChip DW, IMX6Q-pcie. > > Every new hack will not make it faster. :( At some point one have to say > - enough of hacks, start doing it properly with upstream. > Eh, that's a fair point. I can't really disagree with that. Cheers, Angelo