Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4037953rwb; Sun, 30 Jul 2023 23:27:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8ao7/TFzO2qcF13jinEi0FKK4ZRqAcGDue0v9pOlenPQt/tzYdKwhxeT+3+0Zx2ic62Jo X-Received: by 2002:a05:6a00:24c2:b0:686:bbfa:68e3 with SMTP id d2-20020a056a0024c200b00686bbfa68e3mr11969814pfv.15.1690784843179; Sun, 30 Jul 2023 23:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690784843; cv=none; d=google.com; s=arc-20160816; b=Xn+josM9AI43AuABmXz5JvoOdZd+BN6sxsh17jNeNyJWohR5dpxsJBZfOkOpeOxwox OX05doiwwmPEh0a6JRcm4la12l21wvlUIr2zWn2I7ZEQ8ADb9Vz/F97ZHHUZpFqOE72Q qbuBcbOTQuqYuNzlHEL8sTgR9RF8Gch0KMz5Lajw0rMUat8JesV9zEO8nAGMU0eJFvPV hbg/Jk22nH+uj3vf07C6ohJKdmBL2/k0eL4AgpJNzEuq909ky+y1EISwy5J5K4ywaVuZ wXezk4Znf95A9jiV0o6k/uVZBGknQ0CXIwZr9AqcCoeJK9IEHKChyajgY7wMM74+NnIL 8fHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LOdUw4qNFn1nUTqsoEBuwGPQSo7xeN13kiNxu0hiQ70=; fh=pV1B6t5xdc55dHAmzP3ipWL55TOVecn7zCrGga4I+UM=; b=L7le8I375nQLxrMRx3wi8z7B1wOF43FUbvetR189YDq4eDCH6sZJUZwTLcnnuh4+Tb zigU77miqLXTggcQNUx0qSJUKOvJl/AEGbK+ocPJrkywFMalXz7qaJH5gSJBwN2/f6tj jZS7VR4ppl7BXLydsKMKQdIM/T7MzADVvfxeyIE3TWTAG1d8v1wukSYCdrBRmf/gjGO7 V8fXl8AlumpTes3e0k4CxBjl07LDQu2jvdQHetg/nDNuTOBDU76Zn2iQGTw/8xnmK00V VeWqN0gf/2txQ9Av17rsZLtQdhSbXGSYM2fL6h1/cYKpS/W9QerrqRWx9XZrJAnciOng xUBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Hi1n5l6r; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a637f4a000000b005644a9be955si1217635pgn.179.2023.07.30.23.27.11; Sun, 30 Jul 2023 23:27:23 -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=@quicinc.com header.s=qcppdkim1 header.b=Hi1n5l6r; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjGaFhm (ORCPT + 99 others); Mon, 31 Jul 2023 01:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjGaFhl (ORCPT ); Mon, 31 Jul 2023 01:37:41 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3465DE68; Sun, 30 Jul 2023 22:37:40 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36V4uD1P012327; Mon, 31 Jul 2023 05:37:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=LOdUw4qNFn1nUTqsoEBuwGPQSo7xeN13kiNxu0hiQ70=; b=Hi1n5l6r7WGMfflzPQXmjoq/Hl67+VWzJRAINNYe13iwaTKhCYBt3vmP3kDnf9/dFHQB ATNVjO6flbiaO4DhNeHWphyAu8MZVapyLVhcqGLgJiPTJuxj7BDj2utlCrl2gkNHyokW MYhUNCnkjMRbOJq//AU6LoRN+rmZKGB9DKwGY1yyVaKjnBlh2jRr3fTmQFua1+/hWMQh IhyNXtjo8xyYZPAIKkkbAWbBo3fck2h4ErTuwqzKt1nOx4MMUmGUdGlQLm2dZW2mgF5f uaUymPxa+az6jTLREf/tatqxShSkObOFVoxrgrNu9ZD5/npyqqQqB/+hG37tpy+Ct8A6 pg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s4ueujq7f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 Jul 2023 05:37:33 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36V5bWx8013854 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 Jul 2023 05:37:32 GMT Received: from [10.217.219.216] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 30 Jul 2023 22:37:27 -0700 Message-ID: <27541444-9da2-78de-6174-ba22fcabe08f@quicinc.com> Date: Mon, 31 Jul 2023 11:07:25 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH v4 9/9] bus: mhi: ep: wake up host if the MHI state is in M3 Content-Language: en-US To: Dan Carpenter CC: , , , , , , , , , , "Manivannan Sadhasivam" , Jeffrey Hugo , "Greg Kroah-Hartman" , Dan Carpenter , "Rafael J. Wysocki" , "open list:MHI BUS" References: <1689232218-28265-1-git-send-email-quic_krichai@quicinc.com> <1689232218-28265-10-git-send-email-quic_krichai@quicinc.com> <1399c766-791b-486d-90d5-a00999eb15fb@kadam.mountain> From: Krishna Chaitanya Chundru In-Reply-To: <1399c766-791b-486d-90d5-a00999eb15fb@kadam.mountain> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Eq7XhRvqzwE04tMKcRXThNMMNt8Zb5Ui X-Proofpoint-ORIG-GUID: Eq7XhRvqzwE04tMKcRXThNMMNt8Zb5Ui X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-27_10,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 bulkscore=0 phishscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=894 malwarescore=0 mlxscore=0 adultscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307310050 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 7/28/2023 11:21 AM, Dan Carpenter wrote: > 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 I will add this in next series. - KC >