From patchwork Wed Dec 2 09:41:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 335960 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp777951ejs; Wed, 2 Dec 2020 01:44:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZCrZgFQdwE7c/8XlKFJ8ye0M4g710wRXK4HCBs7YYFFT/iK3YxAyUAyWJmnmYt7g+G6La X-Received: by 2002:aa7:d459:: with SMTP id q25mr1699631edr.279.1606902298818; Wed, 02 Dec 2020 01:44:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606902298; cv=none; d=google.com; s=arc-20160816; b=jzbCbJ1EeGxRe+czINxoUoENokAtMbrQ/gC1/oRnmhi3iLS5QszaEfkb305KpVv7um qTunF+31WT0X/BEoLj4qap6xas8EsycLuyRuadGKNlMya1wkF/9e5rmLvcU/7EmNmrAo jIdeNIv87x5O7QKnQePpgaMuYj8WYgZBuSGfI2sKHNGCylMhGatYngrWgylLA6RoEOIz CiLFi8veofL3e9dLncmiuz7tVfysSRX0D8sNJ5RtZQJY0xNWCTMX7WbZa7xY5pq9g03Y VATBjDoV9Z3OiuptiXCpcDcEiMnY1/7xFbZ1iPpW9dSvEaBP6VRYWPIr2+vLYbCSGpxJ 0JVA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EVdtvlNlMaH6XJZVDa7SACl1Wek+TOSf5O60QTYY0oc=; b=e7yyppIVqX9JRyzMJkWfsyX/+oEoaokHNyKRN2sRbzRM2L+enedyPAEbEdjnuYzvl1 cZnZV+WcJQEryzJgNw+ZTscvV5u5kBrwr1O3UIXLWRQOiGbXp4YJ+xZCZXesXLXs9TJS obPoVRNHnb5eKDsm8K+xqNcWd+VGER1cXb5Z2m/+B6TK5VnqlpKYRCizu8iKBWh+YqtW OT4BAKRj4is7VpRGl/C/SUevEzwqSkGRUa9irmhVGdJi5zcnUxobdvtghfIRebc2LsOY kIDbQstD12EdCXLmhGdIt4TpGdsOV9XKph/XaJM7rJkEDDjoFzzurwSn92zugezzQko/ JySQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oNLCZIZ0; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do13si531726ejc.286.2020.12.02.01.44.58; Wed, 02 Dec 2020 01:44:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=oNLCZIZ0; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S2388606AbgLBJon (ORCPT + 15 others); Wed, 2 Dec 2020 04:44:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388541AbgLBJom (ORCPT ); Wed, 2 Dec 2020 04:44:42 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7FF7C061A4E for ; Wed, 2 Dec 2020 01:44:06 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id o4so774396pgj.0 for ; Wed, 02 Dec 2020 01:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EVdtvlNlMaH6XJZVDa7SACl1Wek+TOSf5O60QTYY0oc=; b=oNLCZIZ0/aPHgaorzTRveyCpmaxIgzkOy/EMMm968Nh3E6zHjukXnPEgdU/smgfwEx 0GglQkJ6Z62lmgh6lfclTB4UZazJBcDdd4Lq8IvUCgrB6gxVEuKJDpqDOIK4AIsbJj69 Pok3FEmvpfEZ9z0i+sU34IcyqHTxfFuzPb/kFQfFFiKNXp9j7mF16flViAm3HexD5g86 Ef1BFNrG2ieqKgkTa6TVSCbokXW9sjsIS0/h97pDlH3VPcAnhTRdp+Vtw6UrDRx84m/4 FodcVAuBJNXA5qdOOoy1toC3d91iGGladljqxPf9DXdzG9b8kAL88v7YeNX+2KIwcrdB RLwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EVdtvlNlMaH6XJZVDa7SACl1Wek+TOSf5O60QTYY0oc=; b=jXIN4wVbsLY5t2BD1QKaQo7ijVevAEwOYknqJrncMkFohHOOTah0T5RAOqxRCyPbWM gqx7pNjmW9m90WemH0U0qLK6t8qA0bVef1lt0qGK/nZ6Xuk+Q7i0/RRDoKWZPvlEOyI/ uUIg2Zr2JmR1zUFJ+uycJDAtu743++WxMmyRUQwKytSgRIMiRWKIC6rFPwccTnO42Gm7 EA7FGOA/QMcmoQveV4fr3/BFqK9TlxZ1laGfQaf14niKlgM7+1QXkinb2t09hGnr5f39 ezCfaoiAIX72eIvu8b+HKvIUVOtBCbSQK7MZB+74+kjMjDSs3kHdOvvt11wwvVTa72ZN pBkw== X-Gm-Message-State: AOAM5303zIfpT3lnXeJ4ph7qIEdpHfyX8PNHg8OFlKAbuxLDaYibq0Sv APk9z/V4jC4Cva2XyKU9nQZA X-Received: by 2002:a63:d357:: with SMTP id u23mr1890661pgi.106.1606902246250; Wed, 02 Dec 2020 01:44:06 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.gmail.com with ESMTPSA id bg8sm1393990pjb.52.2020.12.02.01.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 01:44:05 -0800 (PST) From: Manivannan Sadhasivam To: gregkh@linuxfoundation.org Cc: hemantk@codeaurora.org, bbhatt@codeaurora.org, linux-arm-msm@vger.kernel.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, Jakub Kicinski , Manivannan Sadhasivam Subject: [PATCH 25/29] net: qrtr: Unprepare MHI channels during remove Date: Wed, 2 Dec 2020 15:11:55 +0530 Message-Id: <20201202094159.107075-26-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201202094159.107075-1-manivannan.sadhasivam@linaro.org> References: <20201202094159.107075-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Bhaumik Bhatt Reset MHI device channels when driver remove is called due to module unload or any crash scenario. This will make sure that MHI channels no longer remain enabled for transfers since the MHI stack does not take care of this anymore after the auto-start channels feature was removed. Signed-off-by: Bhaumik Bhatt Acked-by: Jakub Kicinski Reviewed-by: Manivannan Sadhasivam Signed-off-by: Manivannan Sadhasivam --- net/qrtr/mhi.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 diff --git a/net/qrtr/mhi.c b/net/qrtr/mhi.c index 7100f0bac4c6..2bf2b1943e61 100644 --- a/net/qrtr/mhi.c +++ b/net/qrtr/mhi.c @@ -104,6 +104,7 @@ static void qcom_mhi_qrtr_remove(struct mhi_device *mhi_dev) struct qrtr_mhi_dev *qdev = dev_get_drvdata(&mhi_dev->dev); qrtr_endpoint_unregister(&qdev->ep); + mhi_unprepare_from_transfer(mhi_dev); dev_set_drvdata(&mhi_dev->dev, NULL); }