Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp827722rwb; Thu, 27 Jul 2023 23:47:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuob9x6Fau+y2cKdiq/mq3XChiTcswed+TBuFF0KaElNxV+nSP6HWkiqgf+3Xc2MRdNiR6 X-Received: by 2002:a17:907:2bec:b0:961:be96:b0e7 with SMTP id gv44-20020a1709072bec00b00961be96b0e7mr1288362ejc.48.1690526879030; Thu, 27 Jul 2023 23:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690526879; cv=none; d=google.com; s=arc-20160816; b=DdKxh9krBfrtXwPwL9lLdGvZnTMklNdP1wGAMy0EpcujjC5iEjnewY3qk8YIMGi47M VvSHqKGXGVHxyeuj+apZQD1IWp3y9bS1XCjhm2PxrS6IW7CnC+jIG8VuGPGmu8HS9+BH Y2gHZUEuFYmN/5ds54Jvl1Enc1hJhYZMdEFwgo/ZltpP7mRfgXvhaqrcNiwZ3/cmGLcy rqlN5Qq1vyIMK0kwz1Zak+i3b4BAPREcJrHJLCMIsGh9vnLx/ougPJiLFOCe+oGWDNBs Z47XkREidkHOWAXeD0quyGF/LyV8NiJ3E62du1SOVOuUqQ+tXxpwPc2wrKE/c5fsBJXv BAOg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QbJoy+y2Yudh1CYrBwAxIycjhiEMLkeAf2hLUb9dK34=; fh=rwhLbG3CnhbMY+TzOnSH0upCtrCom4diAp3iuEDKCmk=; b=tloSfobZl6bxAbSQv0EBTRSVjplQ7I2iehJHcV8wzm7KomMj0yGo2wBxfSGJ5dblD0 oiPiVG8yUd+YJnnE6aUmOjXwntnAs2w09asAtAgX/n+fyz/wlh7oHMccS/riHCILlv7e XMO39M+itfXYZTJmbxNs9JWyWn2H/nSFuTcB1hoY52yfVNfeKOGnos5HsHlL7nFLq9sF mMeerh56Y2OnG3qq3mMxnvdm2LI1QGNjK6c8CPfTsLK6IbOf0NMQMbvQ3M6zCdzCfbJI wEPyYK13N1O4ccGsOlMcy4ZQCgwhU1WcFoZcNXepdDlTbp5c4MT/h5R9CYCtaNsIMym2 9yAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LH6YTDFS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a170906138900b00988c92d2861si2436829ejc.397.2023.07.27.23.47.34; Thu, 27 Jul 2023 23:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=LH6YTDFS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231848AbjG1Fvm (ORCPT + 99 others); Fri, 28 Jul 2023 01:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbjG1Fvl (ORCPT ); Fri, 28 Jul 2023 01:51:41 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF05119BA for ; Thu, 27 Jul 2023 22:51:39 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fe05fbe250so2960811e87.0 for ; Thu, 27 Jul 2023 22:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690523498; x=1691128298; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QbJoy+y2Yudh1CYrBwAxIycjhiEMLkeAf2hLUb9dK34=; b=LH6YTDFSPga/O+VAxidGwEtHUFiI3euAsZYJ51ccNSFe5Qgtgeg9kwxBqunN05CDlm kGNggeVbJqUWLEqxdzRBLOUO4KA24vRH2TWLcqYZFoXj4kApGdquNlNU4oFte+F6WFIS 6GfIpews7zvObUBnY1Mw94OfijKGIIIOYc+v2SFkeyRifN/mkWxK588/D7xru6SLq3iZ YCGk1V3fqh4Hk/f6tzMe3sJfUJB4z+9Xjt9WAF50WSbNiudloZSmfk0OHe/YmrjUbIXS D7DnFpN8sgy9CikjAz6AkK222KA1IDRS9zcCdz5QGmQXtObIX3fwlOu3rIJv6IGo2ABB O9LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690523498; x=1691128298; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QbJoy+y2Yudh1CYrBwAxIycjhiEMLkeAf2hLUb9dK34=; b=QN4uXbE59C/WMhaPcQSYU1335uo0gajike63gAtpeiyY6PeAu5VLNg6iq7DAfrMkQi o9/cojjQ9Il0q9tO8/63hcqPTEXgS12nOxxRmvzg9Pw6WYVrSQdR5JTvTh4U6oMDjzG8 ugJOJVJNiKZk4Gg9MGmHwAaQf2kbsKLHUlcaKjRqoOUlkuKQuuTi7aE9M4MZbB1Y/hQv paQlZIQ76vrZW8A2BT2ElOHdHQgMarvQfcH7e/oLDFBhqMhzExsdjvz8iiMtyNb/occm FzixJV8aF0HUWPOFBzzbVp8gfaFRNToYTiuLY16p3ZDvyKupN3t4Sy76itYbsYomq6vj fWmA== X-Gm-Message-State: ABy/qLYMR5/epGRpAbFCkBf9d9sa5TBKs4A3uajfHkWvr0mJXUfkIAmf qJTmwWOs+pp0q9ADriZr/yRZog== X-Received: by 2002:a2e:b6c2:0:b0:2b6:df25:1ab0 with SMTP id m2-20020a2eb6c2000000b002b6df251ab0mr924764ljo.34.1690523498209; Thu, 27 Jul 2023 22:51:38 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id w4-20020adfec44000000b00317614b6a5dsm3857666wrn.50.2023.07.27.22.51.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 22:51:37 -0700 (PDT) Date: Fri, 28 Jul 2023 08:51:35 +0300 From: Dan Carpenter To: Krishna chaitanya chundru Cc: manivannan.sadhasivam@linaro.org, helgaas@kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_vbadigan@quicinc.com, quic_nitegupt@quicinc.com, quic_skananth@quicinc.com, quic_ramkri@quicinc.com, krzysztof.kozlowski@linaro.org, Manivannan Sadhasivam , Jeffrey Hugo , Greg Kroah-Hartman , Dan Carpenter , "Rafael J. Wysocki" , "open list:MHI BUS" Subject: Re: [PATCH v4 9/9] bus: mhi: ep: wake up host if the MHI state is in M3 Message-ID: <1399c766-791b-486d-90d5-a00999eb15fb@kadam.mountain> References: <1689232218-28265-1-git-send-email-quic_krichai@quicinc.com> <1689232218-28265-10-git-send-email-quic_krichai@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1689232218-28265-10-git-send-email-quic_krichai@quicinc.com> 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-kernel@vger.kernel.org On Thu, Jul 13, 2023 at 12:40:18PM +0530, Krishna chaitanya chundru wrote: > @@ -464,6 +484,13 @@ int mhi_ep_queue_skb(struct mhi_ep_device *mhi_dev, struct sk_buff *skb) > buf_left = skb->len; > ring = &mhi_cntrl->mhi_chan[mhi_chan->chan].ring; > > + if (mhi_cntrl->mhi_state == MHI_STATE_M3) { > + if (mhi_ep_wake_host(mhi_cntrl)) { > + dev_err(dev, "Failed to wakeup host\n"); > + return -ENODEV; > + } Since you're going to be redoing this patch anyway could you please propage the error code: ret = mhi_ep_wake_host(mhi_cntrl); if (ret) { dev_err(dev, "Failed to wakeup host\n"); return ret; } regards, dan carpenter