Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1601429rwb; Mon, 7 Nov 2022 03:42:50 -0800 (PST) X-Google-Smtp-Source: AMsMyM45McWAAtKBPVpDhqmLMSiQIZtVckuX9JgNYHZWNH9W0i3a0KFBgZWtdTVqjGm1nIrXpSf+ X-Received: by 2002:a17:907:6e28:b0:7a0:b6b5:5103 with SMTP id sd40-20020a1709076e2800b007a0b6b55103mr46530314ejc.300.1667821369941; Mon, 07 Nov 2022 03:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667821369; cv=none; d=google.com; s=arc-20160816; b=Kn4daBP069za+1AxLRNqgViYOsKHrZax4auOx6+NkUC6lKwhj+K3bSg8gVPpE64PSZ eYe7s3HvZx0Ayc0dbdMNG8EHNUa63P+Go7apkDXO4TvI95mqGKz9s4CYoO1JIaGk7ypp j4DfPhL4Ijq6Yajdb3a8WujMkP71Qe3yMza+TzNOR69HIytr/FgQkW6F6TMI0zX+VY5+ D8pwALEdDPTug0Z7+aQfLkUtg0IC7e4hi8wTzMxnsJ48JJHnt9c6o2FtXctyAk10jRZt vybQxDf3+2yv0avCTgidns9krIg2IPM7GND6n7c8PPk0q87PK7CQ99NfnBF4yVzPumVa LF5Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=++dAats7+pvqjIUnsK39bRCQSWJQTYaGXgc2E8p3vxI=; b=uDUsQ5/yamEZ88Z8BN6sVraxPDBFkLjnbpu0O+jylf5IBIhNGPFq4cxdUiBI0OQYeA PezQIj9JI/87wM+Ft6SlTEmYMS6YzxGaZicmJISNs0JS2hfO2nZ19iUDDFLhjG0Myj5J kMSipc7x5U4iZ6Heb6OffuD9vURgTWHxghyqsVIfU7+Jcmqnpfk/1HM0zkFBAmSEkBhl eV4x4UGiHPBtoG9DdT9A7E2QIQmpL55JRh3hFrcx+LNxVeW0HwtocLctKurjeb4rvaCX xeWgIx9Nf7WOthl4uIkOyjCgbYmyuOULsXM+1WvTbvcCUUeW7i6+qCTLLPedaqG6lC0G 5XsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cvTLkC3V; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a05640200d800b00459c1e64776si7554152edu.412.2022.11.07.03.42.33; Mon, 07 Nov 2022 03:42:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=cvTLkC3V; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbiKGL2W (ORCPT + 67 others); Mon, 7 Nov 2022 06:28:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbiKGL2Q (ORCPT ); Mon, 7 Nov 2022 06:28:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2CC91A3AE; Mon, 7 Nov 2022 03:28:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8C1EFB80F9F; Mon, 7 Nov 2022 11:28:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 586B4C433D6; Mon, 7 Nov 2022 11:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667820490; bh=gX0czMPTs+259vGom9QGdlIGR+c8u6kSHEipAFI8adA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cvTLkC3VKRS9PtAELzxSU8KvwKLl0f7r4w9dHgMyB6a/OXsiruhEGzQN0QcVuBg+Z /PaoGMX43mD9PbvRm5DdocDSs3I7JFdPC8rDGJ1fP+UF3eC4G32sdRpgAml8IeiORp xvIrH8jnQofutAF5rio2BDGUbuH9pBOkiDGF1JiiaWVptKA9S/VmtXJq4b8a92Ln7F uEMnU8pZPFeXVtvSgBdCv2v3GwhppLvhl7t8aFHDKWPMKxszmZClEn2kKBIuGsCOVX lqU+DD6OEiC16RcBT5bmOuNtRUV6SL2ChUfq/xLPon/SrCMaEmbc+gOelhv3qbkA+Y G4JoRFRAf/i0g== Date: Mon, 7 Nov 2022 16:57:56 +0530 From: Manivannan Sadhasivam To: Robert Marko Cc: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, gregkh@linuxfoundation.org, elder@linaro.org, hemantk@codeaurora.org, quic_jhugo@quicinc.com, quic_qianyu@quicinc.com, bbhatt@codeaurora.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, ansuelsmth@gmail.com Subject: Re: [PATCH 1/2] bus: mhi: core: add SBL state callback Message-ID: <20221107112756.GB2220@thinkpad> References: <20221105194943.826847-1-robimarko@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221105194943.826847-1-robimarko@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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-wireless@vger.kernel.org On Sat, Nov 05, 2022 at 08:49:42PM +0100, Robert Marko wrote: > Add support for SBL state callback in MHI core. > > It is required for ath11k MHI devices in order to be able to set QRTR > instance ID in the SBL state so that QRTR instance ID-s dont conflict in > case of multiple PCI/MHI cards or AHB + PCI/MHI card. > Setting QRTR instance ID is only possible in SBL state and there is > currently no way to ensure that we are in that state, so provide a > callback that the controller can trigger off. > Where can I find the corresponding ath11k patch that makes use of this callback? Thanks, Mani > Signed-off-by: Robert Marko > --- > drivers/bus/mhi/host/main.c | 1 + > include/linux/mhi.h | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/drivers/bus/mhi/host/main.c b/drivers/bus/mhi/host/main.c > index df0fbfee7b78..8b03dd1f0cb8 100644 > --- a/drivers/bus/mhi/host/main.c > +++ b/drivers/bus/mhi/host/main.c > @@ -900,6 +900,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl, > switch (event) { > case MHI_EE_SBL: > st = DEV_ST_TRANSITION_SBL; > + mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_EE_SBL_MODE); > break; > case MHI_EE_WFW: > case MHI_EE_AMSS: > diff --git a/include/linux/mhi.h b/include/linux/mhi.h > index a5441ad33c74..beffe102dd19 100644 > --- a/include/linux/mhi.h > +++ b/include/linux/mhi.h > @@ -34,6 +34,7 @@ struct mhi_buf_info; > * @MHI_CB_SYS_ERROR: MHI device entered error state (may recover) > * @MHI_CB_FATAL_ERROR: MHI device entered fatal error state > * @MHI_CB_BW_REQ: Received a bandwidth switch request from device > + * @MHI_CB_EE_SBL_MODE: MHI device entered SBL mode > */ > enum mhi_callback { > MHI_CB_IDLE, > @@ -45,6 +46,7 @@ enum mhi_callback { > MHI_CB_SYS_ERROR, > MHI_CB_FATAL_ERROR, > MHI_CB_BW_REQ, > + MHI_CB_EE_SBL_MODE, > }; > > /** > -- > 2.38.1 > -- மணிவண்ணன் சதாசிவம்