Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1497144rwi; Thu, 13 Oct 2022 14:46:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4L3LQuYOIto4d56wWmWZ8ZFfOqc7ugb8HqelaCINXravCAfyl75ausmYGILtPS7fk+5eO8 X-Received: by 2002:a17:906:eec9:b0:783:e662:2513 with SMTP id wu9-20020a170906eec900b00783e6622513mr1290705ejb.656.1665697617720; Thu, 13 Oct 2022 14:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665697617; cv=none; d=google.com; s=arc-20160816; b=TKMdCwcizOZBnn0Ju85YUEAgvj1pxVrJ+/VO3JR55/yQ1shMX0m4TG1wnu3pxjNFcg YMI/rdCYD4ydugtuc0bcuxFaj1yCLx9qeji3X1dvtMTrocXniUOQJjcVwHFG3P714ylK WFMqOIn8p1Ta/zhyWeticp42RdhoRdwpPp4Nf49/dFm+HYE7wrc3FFXfCeD00KFGuPy8 qmjnO2jxkkrlWguEDOINbL/QhyaGwdcAon9Qyl2a4j5ffOPQMrrrxc7s0kaPUWiS3au7 IZbvSC4hvDkmlP+7J1AvsmZTsc3bNSXFjpId+dJZDv9+DdpvYjT9EawephHf6Nd5fSmp PA9w== 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:message-id:mime-version:date :dkim-signature; bh=q2R/hsm49uk88OerGE7g+BdKMkZvbcCHzaGf+dnABps=; b=RoFC65ivrZ9V6tI01+EPSROk8Hc71xAD2dSDZk5ucihU2jngGAkb889kuuw2RJRlob t7mlWP6oiEPSah+o+X/Y9XrTIVocrfSy/+2N+4mZSnzOrx1T8SDfpLMfrs/yR8muG2Vj xnxKWCYEcacs6+TSjq/eIVEYO3F+PUTrt2ClTiQwOUzlZA1DO3Lwh/4VZ9fm727FoYyf 8NochwK5oZpawN+fDt7jJkRday0c9uzIpA4OyWfAQ7GZiALc086qVcJ7CGleehH1Y7Aq zJDjLQrat2lanIzgko65FzvmdN/C0QwTl/G5E9tQJ9plLQxR+vnVXFOI94KlY4fw29CS X/Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Zm4JNi59; 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 hz1-20020a1709072ce100b0078df24be357si600908ejc.603.2022.10.13.14.46.14; Thu, 13 Oct 2022 14:46:57 -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=Zm4JNi59; 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 S229437AbiJMVpQ (ORCPT + 99 others); Thu, 13 Oct 2022 17:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiJMVpQ (ORCPT ); Thu, 13 Oct 2022 17:45:16 -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 5D4D453A76 for ; Thu, 13 Oct 2022 14:45:14 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id b14-20020a056902030e00b006a827d81fd8so2623298ybs.17 for ; Thu, 13 Oct 2022 14:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=q2R/hsm49uk88OerGE7g+BdKMkZvbcCHzaGf+dnABps=; b=Zm4JNi59McSgtrZO3mTQE5c795q2xbejWFdsYn2FLal8WgYRezz4RsjUb9EegTCKF4 1+NnxEFTQgcvq29EQpQ8XxZnLIDXWY4Gbc1yUAa+0e9WrWHGaLztknyIUeOfsCEVjJzO 6MelgFtufgP93wq3/AYgv+NfsuBT+9Gmy/m4w6E8jlds9Dgy6E8CKdG9/zRn4cZ+jg/a E3KBJoheGEd4rtN2YtBXFyMUkD8xm82haWrPa9yAcxU0a1Nu0yCLUeR2EToqlf9qfjtM 6oKWfRCm38QN92WUPgaKVL9vZRBsUcTZeO2i6CcVh8uq5QptXvsPWlCkRG/iKED0Fh+A tZYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=q2R/hsm49uk88OerGE7g+BdKMkZvbcCHzaGf+dnABps=; b=lwbqUv5hVyDnPXCyNJ84lhV9Z3nCsibazMrqb+nuAdEUyp28OlhjCyGKs/Pn/CDf7q qfKoUWVECDYCJxXaLNFPvVvUlqwq84j5VxqIRtbCdJhhtRwgDrrjlAqyJnLs7j2gnDRi p4lIGwljee4EtKeD/Hlkndyjj3V1hb4QSA3xR8fO2tAq96NEksCOP1SpdYEEcWTgPTNA CRAZO1LksYwDIcAcdzhl1CQiI1+S49NPqvflvEZndgmmTzVN2EMVUV0wAbStVP7RqCoM 5e+IMuglxnKGE0mHsQj7/6dzzwSRtlSBQorhBI2xDkOD+ewD4Eebxb6aFuLdByhDnvuP fehA== X-Gm-Message-State: ACrzQf3xka3+eH78yOYmZvjoMat2U9TZsRtRyGznYridBAw+dQDW6BZ5 d//xMq1hw9YKM/+CV6YTUJHm3EmqoCaI8rH3YBdQ/0sI2YGPlmG72FZt+B4yIubvwkXeIaJwHc5 17ZaB2/H12bFevTO8J3veF+gxP3u5eUtozG0Ub5zS8+QwBYtLdhNsoChcp6PbZ/qq/zUqPAIXSL 3L X-Received: from jiangzp-glinux-dev.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4c52]) (user=jiangzp job=sendgmr) by 2002:a81:9e42:0:b0:361:4dad:7a95 with SMTP id n2-20020a819e42000000b003614dad7a95mr1959497ywj.256.1665697513640; Thu, 13 Oct 2022 14:45:13 -0700 (PDT) Date: Thu, 13 Oct 2022 14:45:07 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog Message-ID: <20221013214508.2195347-1-jiangzp@google.com> Subject: [PATCH v1 0/1] Bluetooth: hci_qca: only assign wakeup with serial port support From: Zhengping Jiang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com Cc: Zhengping Jiang , Johan Hedberg , 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,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 This patch will check if the serial port supports wakeup before assigning the hdev->wakeup callback. After landing the 'commit c1a74160eaf1a ("Bluetooth: hci_qca: Add device_may_wakeup support")', the wake-on-bt was broken in Jacuzzi because the qca_wakeup returns false. In this case it will fall back to the default hci_uart_wakeup. Changes in v1: - Check serial port support before assigning wakeup callback Zhengping Jiang (1): Bluetooth: hci_qca: only assign wakeup with serial port support drivers/bluetooth/hci_qca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.38.0.413.g74048e4d9e-goog