From patchwork Wed Dec 28 16:16:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 3367 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1970054wrt; Wed, 28 Dec 2022 08:19:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXu98fS1fjDnPsAwLyNi728hCvaOdx4MXgVbcQ1cFLbPdhr0tUhdmIj/yKkAFZJUaJH/4PGk X-Received: by 2002:a17:907:7e83:b0:7c0:f558:e518 with SMTP id qb3-20020a1709077e8300b007c0f558e518mr25862485ejc.51.1672244384931; Wed, 28 Dec 2022 08:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672244384; cv=none; d=google.com; s=arc-20160816; b=XtqxtAok8dTauVmfPUTzQmt02I2tjnIXJj2B+DTbab/ov1p/j+c7F2oF7Ay2xaurAX eTF3CY82FMYXJanQO6bYYPxUyjYuMVdkEBLU+aqxgexfFIaMQqBKmdJIXFqpByt0w5xd 8OUS1+sIZv5Y61N0fIwKZ6d7MX2pBKFGSj2NWlzc3oN3yhL+EaVPNJs6aNvquCR2Vxsk J32mI4vZ7y0h9ztzd/8UOUGLpz/P8PAoGYjOoi3bORbmGBYiQXDvuIYnUeIcgJuBnemb d7MOn8BLfUL67uFqvrNROYH1ZWOGxMjXNiVU7qn2Jfm9TnnZvxxVspki9Q2H9PjHzs5W 4rkg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JUcPSGeQSyCQV+5RFes2Or9gqPhDpOlebNcO/R3D1CU=; b=aoPKw9kIHNbqU/9n5Lm05UltHZ3MVan/IjePq3OA19JAjQOjOTgTFfq/tVltApqi/O tJ3Y9u32kHkU6Kjvhs3JsEvkXC+ww5iUs93Br6qXaaAH6WJkXaMjdr72t9Jf9m+dBDz2 kaL1CrXXhPA/1q/bMwT78mndshRLalkCBgWnQoapd/bxE740s380f8N8xV7+/ihL5lGx x2NnQabB5mZBk0CDvNkzxk2iMhWun6XHuOJwhQvX1qedovfCE+9cHWFUINbEjYk8QiAB KCLDSa4VCDIIVdQTPUAk892kQ0ceK9S66BnIyONmKzPBO1zwPh8b4i8ntk5rpPaqO6yG +bXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxfWZabu; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw35-20020a1709066a2300b00839f873bf75si13877234ejc.511.2022.12.28.08.19.20; Wed, 28 Dec 2022 08:19:44 -0800 (PST) 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=kxfWZabu; 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 S234424AbiL1QTK (ORCPT + 99 others); Wed, 28 Dec 2022 11:19:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234631AbiL1QSk (ORCPT ); Wed, 28 Dec 2022 11:18:40 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 519C2193FE for ; Wed, 28 Dec 2022 08:17:16 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so16459866pjj.4 for ; Wed, 28 Dec 2022 08:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JUcPSGeQSyCQV+5RFes2Or9gqPhDpOlebNcO/R3D1CU=; b=kxfWZabu89t81jk2jvL8stxvjeLflrKxQXz2ozJNyxkF5MYc4q4n2AIrv2IZaCUAJb iG0kmZN/VOiV6NmWKK8U/5pPqr7DK5Q5ESWVUeZ6h5BC7yeyFPPqcCbx4qJw9Vewgr8Q +L0CXOnS4eOgzGrsfKTaLmdnrm2M+mk1P0aXnnjGyDqI3ipOi8p3hy9L+w5sd0y9FYDB +hW9cJaPTImgM40r7cE1AE4Ssgcjv6RXGfXGcjU7hzaI+1s2yxnOYAbxqbUGtUx5guNW /ZlhGlTJmUvKPSmRHiSRLJ02aE/cHWv6I1iMHRodAjyXAROugL+4F/APK9T9Dw//c0zS /CdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JUcPSGeQSyCQV+5RFes2Or9gqPhDpOlebNcO/R3D1CU=; b=CnixZ2ejW7NTujsvu8EuvyzF27jXDCuTBR4jGHYGytd/1q0YIVz36kHxpJWKC2pIA+ ruKiKprP1NyREyvngt0Cf+kLpMjbe6Bvj1Nd/FVOPnVbBvGz+AYsbTo+4O9us4PzDgWO /Wzp1rJceH4ff/SlOy8WYuiNSa3j5Gx98CUkvjjbKnADiI2yAA94XcTSkh59aFfy8eX+ h+cI6iFk4WVps3NGru3ZP7yZSq4ndkCiIHfycfmw91NT1aKAh0yD5Oqm3ZS1c90SckD9 MgFndvES2keV0zHPoicNovP31JAqfypUM7nphPrNMN1DAWT8n1Giu/7hLE3Gt4b06rUu 1naw== X-Gm-Message-State: AFqh2kr8rECsUxmxR3DDdkLqiVG/WUsXJlMPoWPeKIx9nNxmNhqeH/Py 3Cxk7UzqfqJUQ2Ju3hOpI8OUynGCKDXccEU= X-Received: by 2002:a17:902:704a:b0:191:7d3:7fdd with SMTP id h10-20020a170902704a00b0019107d37fddmr42210555plt.60.1672244235781; Wed, 28 Dec 2022 08:17:15 -0800 (PST) Received: from localhost.localdomain ([117.217.178.100]) by smtp.gmail.com with ESMTPSA id s3-20020a170902c64300b00186abb95bfdsm11256798pls.25.2022.12.28.08.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Dec 2022 08:17:14 -0800 (PST) From: Manivannan Sadhasivam To: mhi@lists.linux.dev Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 0/6] MHI EP fixes and improvements Date: Wed, 28 Dec 2022 21:46:58 +0530 Message-Id: <20221228161704.255268-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753475328316089852?= X-GMAIL-MSGID: =?utf-8?q?1753475328316089852?= This series fixes several issues on the MHI EP stack and also improves the suspend and resume functionality. Thanks, Mani Manivannan Sadhasivam (6): bus: mhi: ep: Power up/down MHI stack during MHI RESET bus: mhi: ep: Check if the channel is supported by the controller bus: mhi: ep: Only send -ENOTCONN status if client driver is available bus: mhi: ep: Fix the debug message for MHI_PKT_TYPE_RESET_CHAN_CMD cmd bus: mhi: ep: Move chan->lock to the start of processing queued ch ring bus: mhi: ep: Save channel state locally during suspend and resume drivers/bus/mhi/ep/main.c | 79 +++++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 37 deletions(-)