Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1055164rwb; Fri, 23 Sep 2022 07:40:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52HO4p+lR+AKu+znKSZ4DS+h/h6h+la3o1N64TZlzd4TCbxc8B3StVThTXlQxF53B0/d8C X-Received: by 2002:a05:6a00:22cb:b0:543:7003:21a1 with SMTP id f11-20020a056a0022cb00b00543700321a1mr9415709pfj.3.1663944033836; Fri, 23 Sep 2022 07:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663944033; cv=none; d=google.com; s=arc-20160816; b=yAYgf+sxRaXRhCjd5B4nDQcZitK3iGFJny5MsfmPjcZ3oBsn3ruJlk5xlJI/qPvUUe xf9d4QQwy5mpH4HZyynbFwM/7fnNikS458/1ArYC7VVg5qeHItQus1cbjDHY7IdOlFO5 y9SwUhHNgVMKNc7YmqlY2g18rDBfygSIwmQcCMrS7Me2b5CPm/2a6QJdkGnEF3s4VMgF GrD0IoOdT4rcK2WmUvHoAv0/im7Iumo4q1zZazWcpoWvQdnaFGr4cCj5tcMxu+U8HiBm Q6bsxs2z/NGLc2w0tp930DFIBJ0N1q4Cp2uxdQ/bi1XIrE3YBUnIuO6By1WoFLp1fVzv qfHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=S5eZN2svmhOfsW6VEcUb5Ry7O5bFBRCb5lC2tn/7Tfo=; b=KeZ7kxtKgpV/cL4qYxLao5u0miKIOK6DpHfffEy/UG5KAJEM2eMiwrB6qGTsI406IP aijjp/4zbRuFS7xqYl+NxSAbdc0A4L6gwv72MIcAFnRKYa62+0wx2u1TEGiA4Tggg5ZK ldSfL60RnV/nBcWrkJLi7JSFSID4ynNptcP94We5lJMfJWRvGHlw3pBcUYE1OJeDKkzT eTgySbUSJ4Qf29ThCcjaxUGOF3iPeIpV1D4RyjOXQWK/twxaVdjmiXchYyuFXWy2Diyw uDBdaZG2LhRFZy2bBm8QzBKsU8dcsKD8UIWohulSHS6OJxVVSFu0siz62U6UzOwgo58P Xcdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="gkzAlIt/"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y63-20020a638a42000000b0042bd92a3596si9284286pgd.688.2022.09.23.07.40.20; Fri, 23 Sep 2022 07:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="gkzAlIt/"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231965AbiIWOj1 (ORCPT + 99 others); Fri, 23 Sep 2022 10:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231781AbiIWOj0 (ORCPT ); Fri, 23 Sep 2022 10:39:26 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506A114328E for ; Fri, 23 Sep 2022 07:39:22 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id y3so1184329ejc.1 for ; Fri, 23 Sep 2022 07:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date; bh=S5eZN2svmhOfsW6VEcUb5Ry7O5bFBRCb5lC2tn/7Tfo=; b=gkzAlIt/hpKoRZEZLqhfZ8OysZ9L7bILUx3sexHwwb/6XDB+pCPacUz+MJjhWKhuR8 03WIYD6q3het0x2eUZOaFt4+8DLRxhO61dji69+3Me4MLavSly0qeRo0vqetAht869ok ifG9Ps6irane6AxqQ0QfJg90uACXU5trZG5FNLfEzHAvnDR/7MbC/Fiy3LIbWwjANhiM E2UJl7+e5iXNxOJG9pVXNlrbpNeiZUe/b5JBc4Ah587wHR6LrqOEcMd85sSJX+AHXzVH ylFVisJVdx3w/VxoxI7/ouKWTh3F9lVB7kokwRSC1DxQ36BVKR9k3+145PxEiaip0TUB rnCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date; bh=S5eZN2svmhOfsW6VEcUb5Ry7O5bFBRCb5lC2tn/7Tfo=; b=ptStceWEd9k1xcyZ7H8btxmW2MZi1vl4JxyTFJqBOJuxeHxA4E3GAHvq4Xms5y6iZJ BHp4xbeqKiEtewRxTjoHE9eI0tLQ/GQI8axT2nhLj+d7yUx5Q8vdI0rDRL8fwCtlwW/f gtw96eNEyOXsBkHWulrtUM03ApoDsqlziLm9QlVcH5fLa3eGwaG8kYqZk17hZ/XLiPJM JRT6NctbpKHGEx5zRTL37YGvLLbwCI0MDF2pgWa3pm2K5WZ2ZL0ua9LLrhsEAP/LJAPo wtLGGuMduVBfMhXoAhzLEvpa9rzQrb9n49yXbVeMnshhCmtfF9tQXwqlxcCuAvvr6h30 Gmnw== X-Gm-Message-State: ACrzQf2ywnwHYTN6h8t5Y3+ycd+EZgDb3sZ7Vn0Ye3tcTYKv2Mlojqy7 T1G62iRKcsISnMEWFfngBJ/xkg== X-Received: by 2002:a17:906:8469:b0:781:fc76:fbd7 with SMTP id hx9-20020a170906846900b00781fc76fbd7mr7457238ejc.486.1663943960828; Fri, 23 Sep 2022 07:39:20 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id j2-20020a17090623e200b0078197a9421csm4117653ejg.85.2022.09.23.07.39.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Sep 2022 07:39:20 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 23 Sep 2022 16:39:18 +0200 Message-Id: Subject: Re: [PATCH v1 00/15] create power sequencing subsystem From: "Luca Weiss" To: "Dmitry Baryshkov" , "Andy Gross" , "Bjorn Andersson" , "Ulf Hansson" , "Marcel Holtmann" , "Johan Hedberg" , "Luiz Augusto von Dentz" , "Kalle Valo" , "David S. Miller" , "Jakub Kicinski" , "Stanimir Varbanov" Cc: , , , , , , X-Mailer: aerc 0.12.0 References: <20211006035407.1147909-1-dmitry.baryshkov@linaro.org> In-Reply-To: <20211006035407.1147909-1-dmitry.baryshkov@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Dmitry, On Wed Oct 6, 2021 at 5:53 AM CEST, Dmitry Baryshkov wrote: > This is a proposed power sequencer subsystem. This is a > generification of the MMC pwrseq code. The subsystem tries to abstract > the idea of complex power-up/power-down/reset of the devices. > > The primary set of devices that promted me to create this patchset is > the Qualcomm BT+WiFi family of chips. They reside on serial+platform > or serial + SDIO interfaces (older generations) or on serial+PCIe (newer > generations). They require a set of external voltage regulators to be > powered on and (some of them) have separate WiFi and Bluetooth enable > GPIOs. > > The major drawback for now is the lack of proper PCIe integration > At this moment support for PCIe is hacked up to be able to test the > PCIe part of qca6390. Proper PCIe support would require automatically > powering up the devices before the scan basing on the proper device > structure in the device tree. This two last patches are noted as WIP and > are included into the patchset for the purpose of testing WiFi on newer > chips (like qca6390/qca6391). What's the status of this series? With this I have gotten Bluetooth to somewhat work on sm7225-fairphone-fp4, which is using WCN3990/WCN3988. Is there another solution with a different patch series that could make it work also? The latest I could find regarding some new Bluetooth thing is the following email from June 2022, but nothing seems to have happened since then. https://lore.kernel.org/linux-arm-msm/SJ0PR02MB7135746D204F13550E9BAE77F8B2= 9@SJ0PR02MB7135.namprd02.prod.outlook.com/ Regards Luca > > Changes since RFC v2: > - Add documentation for the pwrseq code. Document data structures, > macros and exported functions. > - Export of_pwrseq_xlate_onecell() > - Add separate pwrseq_set_drvdata() function to follow the typical API > design > - Remove pwrseq_get_optional()/devm_pwrseq_get_optional() > - Moved code to handle old mmc-pwrseq binding to the MMC patch > - Split of_pwrseq_xlate_onecell() support to a separate patch > > Changes since RFC v1: > - Provider pwrseq fallback support > - Implement fallback support in pwrseq_qca. > - Mmove susclk handling to pwrseq_qca. > - Significantly simplify hci_qca.c changes, by dropping all legacy > code. Now hci_qca uses only pwrseq calls to power up/down bluetooth > parts of the chip.