Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3622112pxb; Mon, 24 Jan 2022 13:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp1FwL1tKwHmTVMkc5EftpGEhQOx5ls9ErDdgBnww63ct6/PTC7jF1w31LaqLGbh4fUtQ9 X-Received: by 2002:a62:17d6:0:b0:4c7:c1c9:e6d3 with SMTP id 205-20020a6217d6000000b004c7c1c9e6d3mr12217850pfx.31.1643060623233; Mon, 24 Jan 2022 13:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060623; cv=none; d=google.com; s=arc-20160816; b=rzpF49AEc4V6FYexTDgSY/JpH9BxcXuNS8I6PhHeYujjjBILZFvdEB5jmj8Mfw1tLG Dg2NJjus6TpXZm18LwjUbhX+u8g+IOHS4FgtJ7xZgtTFd2iVgH+1NmgCZksQMqvygO2c xylComvf16UcEtqoxysX8eN77zsjFntfF3vNVnwoYM7WE56OP+RRBIDxFSofCFUSCRl6 y6HyExUmWtCTS+AO3iYu0dbgoO3jifSia6e8Uzd3dWXS7VGe9yuK1l8pQxIxfXmqTQ+A FImwSl5m59c2Nj93XdNd8JMQnAuapmI8Jaye9+uhLlQU7mr+IhGdOIqKoUrzwttRfZ+o /CWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ek++vtwPj3cLXkdpWqmImmlaCpjnFhvDyiLmKrEsWOI=; b=cQmfpdP7VFZ+whb51h+suEp5eo3heyVBPx+geatq0k95wJnCktacNKdVF+8OLjbHHl xqzykzQuwcsW1oTur973z2E1CSfBIFpjhFxOqqWO9NO8IfbNokEqUjcHLMLnaY6Qtc2X Q2LmMEWmmJxf8DN2dTDbdOR8JYBJq257x7wehyMKAK7ftfloZGCC90cqvtYMHLVmvwSP fc6gQKSNEl/so6eUZ6ImCNAYjPNgRIp/ht1swy9VQEnDPuMg2xOI44ZIsXqx2XJ4LSaR wAWsHk2ZCbbttdXCLTX6cGrWcOvYrKIddYlSEh/jPCJTSav3+ZCDv7XPp3EueHIqo+SG Bvpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rj4OPZAT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si7047632pfg.171.2022.01.24.13.43.24; Mon, 24 Jan 2022 13:43:43 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rj4OPZAT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1451843AbiAXVXl (ORCPT + 99 others); Mon, 24 Jan 2022 16:23:41 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:48982 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442839AbiAXUzb (ORCPT ); Mon, 24 Jan 2022 15:55:31 -0500 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 dfw.source.kernel.org (Postfix) with ESMTPS id 6CA816091C; Mon, 24 Jan 2022 20:55:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D0C6C340E5; Mon, 24 Jan 2022 20:55:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057730; bh=ZysuhQ7Pz6OFnxju1Jqcw21yLpfW3eWSCctuI/N59A8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rj4OPZATGG8MX/u9rdnGo5zB0EAFxQI3eTA7CqTMl2SOJOASaladN5IpdFjAZbmSc dSVVB2RmFQLA4NRUkeOMKi2RO2Nsz9tkic/XIj0R+8IYdVRSf9DzS0sgSYr1GKQzK0 vDv4HReNo+NBSAv78IWlFVacqaxHEBRZW3aCWYjg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manivannan Sadhasivam , Bhaumik Bhatt , Manivannan Sadhasivam Subject: [PATCH 5.16 0061/1039] bus: mhi: core: Fix reading wake_capable channel configuration Date: Mon, 24 Jan 2022 19:30:50 +0100 Message-Id: <20220124184127.196002038@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bhaumik Bhatt commit 42c4668f7efe1485dfc382517b412c0c6ab102b8 upstream. 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. Link: https://lore.kernel.org/r/1638320491-13382-1-git-send-email-quic_bbhatt@quicinc.com Fixes: 0cbf260820fa ("bus: mhi: core: Add support for registering MHI controllers") Cc: stable@vger.kernel.org Reviewed-by: Manivannan Sadhasivam Signed-off-by: Bhaumik Bhatt Signed-off-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/20211216081227.237749-7-manivannan.sadhasivam@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/bus/mhi/core/init.c | 1 + 1 file changed, 1 insertion(+) --- 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_contr 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