Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3597545pxb; Mon, 24 Jan 2022 13:09:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJ7PrrGJrkv+jl02EcnhL3tvxd+NPosZHctnzMi38HdvtW6sB+Qpf2kU7u79gfs83tOxSg X-Received: by 2002:a65:694a:: with SMTP id w10mr9772274pgq.126.1643058569009; Mon, 24 Jan 2022 13:09:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058569; cv=none; d=google.com; s=arc-20160816; b=Iz36abbSLYbNRQARt9TtufpwoBrbA6VnGHERRp0PtFYamA9prUYoBFYM0Ohf2UAzWt 6bRvNMCgqRAdEz059/r2r9KDkYDYUlbyF3RpLSaIOKdo0p7g6R6FWqvsh5Sfr2FoMYG7 cn1DMp7jjt3FlF8iFDCRQUZSA9yXLxaZfAXLZv7sKXrjKv90i9XH+3PHZ72VGD13WBY2 jQKow1lroY8uwBGckUMCEZx86E2oaf9nsbl3LcIoQN1TTcIYdJAgdH/Cj+51wi2176yP yxbPPYEUAU33F6UkkMs5tApcPgzzRctr/HPYBXvDQH62I38lrtGzojnx/IZzhTB0PcmE Ysdw== 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=OTRFm1evKqh/S3mzLZOdvPloP7NcG5mJFVR3/yRD90I80D9dSAYdMl8F44Rtl0i9W5 M8RKxdOwZ1itLGR4/7ssLGWbhkuffV8JxqkHKuzCmXcIfgLivdg73lZ5Sqdgtr4PNJbi JNzstl1cSklYUC4RcY1ghqpNKxQr1RnbqgHw5FmFj397SfDW/1/Nl7DRp7nqsU7TIRRb JAwUbaakDGYjEPRgj+aE2Un0iDSonNI7wroGz0j8By7K/GLJJ1Jeaq5ZtIbGhQj3wDd8 BUwfg8z2ybfFLX+7j0q/1Vm5H9vZ7paBLEKhmcqJzl3ydm7Xo1/e1MvIb4p8AEZ9AZQY 34Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tQAe9faI; 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 q10si10507655plx.544.2022.01.24.13.09.16; Mon, 24 Jan 2022 13:09:28 -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=tQAe9faI; 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 S1386183AbiAXUfP (ORCPT + 99 others); Mon, 24 Jan 2022 15:35:15 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52018 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379794AbiAXUMl (ORCPT ); Mon, 24 Jan 2022 15:12:41 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6A935B81218; Mon, 24 Jan 2022 20:12:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AFB0C340E7; Mon, 24 Jan 2022 20:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055157; bh=ZysuhQ7Pz6OFnxju1Jqcw21yLpfW3eWSCctuI/N59A8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tQAe9faIuVNjxB0fa2Qff8Gr0T83Uu/strL9xrk2k9SJtfQg8GLwSpi8hieayFSrb qfC7ztdgcqs4jU7mGK8ACKQv6QrOe6gfbGFpmKDsl/0L77I0YCa3lG1T+N3uyx3OF7 m67ZkheK6Bdj/qTRcomViWgMcNHwCnaZ3DzXcdH0= 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.15 059/846] bus: mhi: core: Fix reading wake_capable channel configuration Date: Mon, 24 Jan 2022 19:32:56 +0100 Message-Id: <20220124184102.997191555@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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