Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp296935iog; Fri, 24 Jun 2022 04:21:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJ8VT3va086wT98PbLf1d74oBwgN9w6jXFw99oJp5kUtRredjqthuFneq2zriyS+pXv9to X-Received: by 2002:a17:907:60d2:b0:725:5611:cea6 with SMTP id hv18-20020a17090760d200b007255611cea6mr7496430ejc.60.1656069671661; Fri, 24 Jun 2022 04:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656069671; cv=none; d=google.com; s=arc-20160816; b=fSb0HQWxdCT7Bhc3CojKmbshM32PcuJApXaUJChDtZ1PUqG+OdiqhvVN0RiSkPDF/1 ih5UFzCMRCX1FDE21V3AeDteI+Boo1dtTFalPNepUM6JYJH/m4SVNgU9Cj/IJqOgATmT kfh7F9kUtg8+VweUUS7uTzqkL5TCgh/rbR8cnJfgbNxI92QfH+T6U4CJlTjpQT22rrtf yDunKnSEVbfRghSZo8Eu9IulyYcXHz8G6RFacHtmeHD1ORR+RZwTqoBeYubiotqF4N3G 727PPJRXRfOCshmys43GGMufkEyeewdAWfffN/OY9cp2KHl2OKkGjgj24EoRxD5l21WJ cj+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=kNHqgFkl4YtCT8pApbI11s72RFD7Nt0OXIvThCLw2Rc=; b=M9xlPz4Zu02tYwmt+jbI24fmO/SphEhxykBF0RUxklzLfoPNYq0aOd0+/7wzrJenpm OSzSjzMQx65TpS+0bzNW9uo81Izpl2UnV8ttQOEUR6Fs5ZoOXfcOsoTGTYV51+snA5XR oWvpRMGyt3EsTSF6YSP2pikVd1NB39XHg4pGT4h6TUemFaaFI1HM8vt1YmKvCEyL7vnE LdbPwCpUaxlE2x6rtFe3be4yzrxnpxQ1IxZaO8f6xMGjMyb4D4EIPr9cUPp4g5VmJVk7 5tKGAZLmlpZyVL8jXZHfvYbBdyQP+FSpt3+tOhI0zl3SOImlgDlPCNEJglElDzReg228 jgsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ip2rsVnL; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc13-20020a1709071c0d00b006feb4205ecdsi2647889ejc.742.2022.06.24.04.20.28; Fri, 24 Jun 2022 04:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@google.com header.s=20210112 header.b=ip2rsVnL; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbiFXLUU (ORCPT + 99 others); Fri, 24 Jun 2022 07:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiFXLUT (ORCPT ); Fri, 24 Jun 2022 07:20:19 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B322F6F7BC for ; Fri, 24 Jun 2022 04:20:18 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id b11-20020a5b008b000000b00624ea481d55so1950507ybp.19 for ; Fri, 24 Jun 2022 04:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=kNHqgFkl4YtCT8pApbI11s72RFD7Nt0OXIvThCLw2Rc=; b=ip2rsVnLkEXP2nEvAFw/6ziC0Ey7lsJnGlf1m/VagPLcx9QLX2XmZa8VwX/GffV0F2 4P/V6EXhVlUAm9jt5y8faz2KrK5IA2RbQGSIKladV+3a6eUzSqXtRd2UVxXhjKuh3ivH dXUK/kVjsfphNKyEr+qpiE0+72XQgaLrwsB2u7j+NFI4KSlJhphu9XES6QOU8mfSb8LU m7+AitHnhFbSugm772jNJfcYfA8nqURR6IHxqQQD4sJvFae4nb0uNWssyPekbIUlrAWw w/CwN7Or004nIsaWGO7Gvn19Y9eqr1TO9qhdVcGpuK3qmVqlN34uDxFxtup6qQupj1IA r8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=kNHqgFkl4YtCT8pApbI11s72RFD7Nt0OXIvThCLw2Rc=; b=KaYDC5mUgWC5vkCZ3xdSquWEk9rrmr1kgbNydQ4YitQhaNYnUuJDjOCZa1jbO+ZOtP PbDEFF+pqcfaHAFRzDcuBaLp2wzyFhCUzMJEVZbw2SXhBy+b01eY5FG/AXO+ur5dzQjx eiDXfWV2vn0DFR61OMWkVVYHwDW1uKDlbEEQxMpp8T6SbC189XbRGeUdZ9HJmdXUd1cG ZD3XmELeWU5ETSXW7xMe0hFkFFqEV+qAKUjGDcJgRs4wtPcg8zMhSvN2SHa/yl834sgT y+iqDoOUtRJMftv8Ai6c8qPLxId065HUeRxAvXAeYsJ2KYJxY3x+9LgcwOZsuPPSDAyE BaRw== X-Gm-Message-State: AJIora/BypcjMjGlsz2rz31pakksJfOsRAT/IV6dmlTz2c7M+Ie/YCk9 IxXHUrW1jVu6YLD6WIAma7NILnXvOdL611XOIFo+w+hvO08vUvv8/rhC9XziZ2v7pEJnz8clzrK JrEIePAMxLvu6GiZZv5J+1BlEVMaiCvltzuDnMVsqxzvEhWaAt/okaPoeyUsdcYoDLhw/YeLT9E YM X-Received: from apusaka-p920.tpe.corp.google.com ([2401:fa00:1:17:fcdb:e3a1:45d7:ed39]) (user=apusaka job=sendgmr) by 2002:a25:2309:0:b0:668:a570:f69a with SMTP id j9-20020a252309000000b00668a570f69amr14997205ybj.554.1656069617958; Fri, 24 Jun 2022 04:20:17 -0700 (PDT) Date: Fri, 24 Jun 2022 19:20:12 +0800 Message-Id: <20220624192010.1.I9afcc6142cb963cf7014aa09edf61a94f5684799@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.0.rc0.104.g0611611a94-goog Subject: [PATCH] Bluetooth: btmrvl_sdio: Remove hci_{suspend|resume}_dev From: Archie Pusaka To: linux-bluetooth , Marcel Holtmann Cc: CrosBT Upstreaming , Archie Pusaka , Abhishek Pandit-Subedi , Manish Mandlik , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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-bluetooth@vger.kernel.org From: Archie Pusaka Both calls are already handled by the hci_suspend_notifier. Signed-off-by: Archie Pusaka Reviewed-by: Abhishek Pandit-Subedi Reviewed-by: Manish Mandlik --- drivers/bluetooth/btmrvl_sdio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index b8ef66f89fc1..41f1c15ec5c1 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -1656,7 +1656,6 @@ static int btmrvl_sdio_suspend(struct device *dev) priv->adapter->is_suspending = true; hcidev = priv->btmrvl_dev.hcidev; BT_DBG("%s: SDIO suspend", hcidev->name); - hci_suspend_dev(hcidev); if (priv->adapter->hs_state != HS_ACTIVATED) { if (btmrvl_enable_hs(priv)) { @@ -1721,7 +1720,6 @@ static int btmrvl_sdio_resume(struct device *dev) BT_DBG("%s: HS DEACTIVATED in resume!", hcidev->name); priv->adapter->is_suspended = false; BT_DBG("%s: SDIO resume", hcidev->name); - hci_resume_dev(hcidev); /* Disable platform specific wakeup interrupt */ if (card->plt_wake_cfg && card->plt_wake_cfg->irq_bt >= 0 && -- 2.37.0.rc0.104.g0611611a94-goog