Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2318659pxb; Thu, 4 Nov 2021 18:27:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA8kVBwKbj0/yiC16j4nqrcDm2ykUB7qheqZ0ZIBsgz/BslmCeghTbtHCHtSyoBzR93UxD X-Received: by 2002:a05:6e02:1544:: with SMTP id j4mr14178034ilu.205.1636075673349; Thu, 04 Nov 2021 18:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636075673; cv=none; d=google.com; s=arc-20160816; b=D1L4Vkmj7+3HMpg5vkBKSNCZ76eHZEKOK1KWTZ9XkihZUJp+8SRgWv1IPQ2KaMUiqV OlCSbvW/pNcMMhNbLHKleGG7BsfRGPzH3k3RpYjpT6l/9nrfSEzBKf5Xz2kKg4jcqmPQ WGyEDjwYDqBZ4yGJE++6Q+rrbmhFqAABHPdo+rZU0N8LY3643Y3SpiJNjQKPaknDvOXO h3jjxlwS1x7EAOQVB2KLPnGhRaZm5CtXWfQBpjENf9Vj5tj7xDh3hPvHKX1r+9O5myQK Q56oaNIbv77WwkKSmGPVZLwp48runBz0jPEm5dD3DCjoHJhSK495xwSqDJIveIpQLlto 4LmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=BDIoF3/FvA1RoYzn+r7S+qitEnsRNcOF7wiDLaFQVc0=; b=k0/x8cvXyTRrSnzmBtPiVl/rAi5BjJxu6ki8zoy10dItRWXLMXinwIfX4Xf8jSXtET B5btmXhPKaWCK+2mZ3JlA9m7HI01CbDPGH714gWu093D796UhIfyBJaLbRPg7VhGH3+m H2+SpyXCtEaQI+cN8BUE2fy9wysTLRBJqd2JXkHmeBob51PKNSVvcX24GfROJHyUdigB lHljTtwtgrFNp0cY/j+1V0dgV/iXRo3EOZkz3CqRvvfVqVwzYIeWeEJrB5Do2NveA2Rn ieYGKgHSkAZrmYbbi8OefSWc2JxwDqYU3CQ980FNzN9g6hc1YQx+gjYjubljDbuyi2by E0pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=qDcRu3x8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si6330547jad.6.2021.11.04.18.27.41; Thu, 04 Nov 2021 18:27:53 -0700 (PDT) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=qDcRu3x8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbhKEAee (ORCPT + 99 others); Thu, 4 Nov 2021 20:34:34 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:42889 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbhKEAeb (ORCPT ); Thu, 4 Nov 2021 20:34:31 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1636072313; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=BDIoF3/FvA1RoYzn+r7S+qitEnsRNcOF7wiDLaFQVc0=; b=qDcRu3x8NzyeTBdu7SpFLEwpRDNLyF5ttXICfU7O89cC2XdwR3z/gsX4Tr1qziNbeQzII+Eu rW6UqmRKo8xueTIfhsefmIb2DHDJXlXM9w7SU7Sd20PGHtuvtnkM8QNRgPlKdYm3kZMeu/HB juoWzHChnpqrfzBgvtDau0pZCxg= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 61847b5dc19d3d12571d8ba7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 05 Nov 2021 00:31:25 GMT Sender: quic_bbhatt=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 60D17C43616; Fri, 5 Nov 2021 00:31:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from vivace-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0706EC4338F; Fri, 5 Nov 2021 00:31:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 0706EC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=quicinc.com From: Bhaumik Bhatt To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, quic_hemantk@quicinc.com, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, Bhaumik Bhatt Subject: [PATCH] bus: mhi: core: Read missing channel configuration entry Date: Thu, 4 Nov 2021 17:31:13 -0700 Message-Id: <1636072273-16034-1-git-send-email-quic_bbhatt@quicinc.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'wake-capable' entry in channel configuration is not set when parsing the configuration specified by the controller driver. Add the missing entry to ensure channel is correctly specified as a 'wake-capable' channel. Signed-off-by: Bhaumik Bhatt --- drivers/bus/mhi/core/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/mhi/core/init.c b/drivers/bus/mhi/core/init.c index 5aaca6d..f1ec3441 100644 --- a/drivers/bus/mhi/core/init.c +++ b/drivers/bus/mhi/core/init.c @@ -788,6 +788,7 @@ static int parse_ch_cfg(struct mhi_controller *mhi_cntrl, mhi_chan->offload_ch = ch_cfg->offload_channel; mhi_chan->db_cfg.reset_req = ch_cfg->doorbell_mode_switch; mhi_chan->pre_alloc = ch_cfg->auto_queue; + mhi_chan->wake_capable = ch_cfg->wake_capable; /* * If MHI host allocates buffers, then the channel direction -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project