Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3691039pxb; Mon, 24 Jan 2022 15:29:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJymfwsranIPryDxE7+W9NELNBGK6GpRPi43do9WQi8WYFaFPcng2dPIRsjN5kUTT0AnkZQi X-Received: by 2002:a17:902:8f82:b0:14a:c442:8ca5 with SMTP id z2-20020a1709028f8200b0014ac4428ca5mr15989476plo.31.1643066954303; Mon, 24 Jan 2022 15:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643066954; cv=none; d=google.com; s=arc-20160816; b=XT0rOh7G0qXy5oyImvN7ACF6PS8JCx8/l1Y9IjOKIOmJhJVZzUYuVKNPFgCZu5MNGK wS7fpvBmOjpR2jCQvmaBSIYfp/vOPY8gA1PTiNY0G9yA1kUmpEu8VzGPBsTLWDrsB1xh 0YHjLRJwlTIlRDv6j7ZW1PqpzMECvO+ZIQscdrfRb08SxeZlzsTdUKakYUfWRt7wgCSu 8+fx+zaqvVSo7g+E3lzxj/GboXbwy3gyLir3ha5dkD9fttkXA+yrYk+oBRUwgZZW9KbV 5L4VUA+7M6WZaps3mg1D3XkGgo16Z0jLtAeGxiFyZZKnVMaI7aQ5IVU7C64v9XUDKLxa hUIg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=z/0ULIwyN0wS59C6nlNWrWIDywthnEN0u+ItsJFAoxM=; b=W5DZgPUbB5Iuo5baZp3p1tvg4D9YDWKeKydlTGp7CcW82DLMBxjCcDp5VNVU0vChjY Ww9koGIWxqpGBfmRmEiDujHMvaoGXBOFP2XxHtn6lqracleE+CyAP9EenXEwT1vjWjch dk8xjWWvN+yO9Qz3VRvQd11Xau29CRL5qdBtpKsKwI0PGbHa8r09KR1yHxCyWXNEVk8t BZNhtjxwLW7OBW+85QaghoQX2sVDq5LiycVOkHCviu4zwUfHIzGGo/TTpHavI7N8ss8Q 0djSvFSG5ainDmpjpP6LWyPp1FL4/FUM8PiJWQlMWJnCne+ahx3bpQ7PNglVWf5p5P0g 3b1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fk8e2mbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u193si12116380pfc.334.2022.01.24.15.29.00; Mon, 24 Jan 2022 15:29:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=fk8e2mbe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1584546AbiAXXXh (ORCPT + 99 others); Mon, 24 Jan 2022 18:23:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835208AbiAXWfs (ORCPT ); Mon, 24 Jan 2022 17:35:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73661C0E9B96; Mon, 24 Jan 2022 12:58:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0D85E6135D; Mon, 24 Jan 2022 20:58:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E676DC340E5; Mon, 24 Jan 2022 20:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057932; bh=HMP4DKejjmzzmBiC3x+uMGlYrLYTaLCXGsNBASp+WKU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fk8e2mbefWPvOTqTKSMjtWURZEY5SLOxm1Y7MStYI2PHd+2EcP9x/tGQvpvUHaUoI U3e1ODyt64KkCvAMEIU55i5AioMLh8/boqnC8EBs+LHsK3ZjYr5qtPNhVnalfNkIce nD+36M6vkRAdaGD7h5IRNR5SmGEpu75Az3orQbYo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tedd Ho-Jeong An , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.16 0083/1039] Bluetooth: hci_vhci: Fix to set the force_wakeup value Date: Mon, 24 Jan 2022 19:31:12 +0100 Message-Id: <20220124184127.945773742@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tedd Ho-Jeong An [ Upstream commit 8b89637dbac2d73d9f3dadf91b4a7dcdb1fc23af ] This patch sets the wakeup state of the vhci driver when the force_wakeup is updated. Fixes: 60edfad4fd0b6 ("Bluetooth: hci_vhci: Add force_prevent_wake entry") Signed-off-by: Tedd Ho-Jeong An Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- drivers/bluetooth/hci_vhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index b45db0db347c6..5fd91106e853d 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -176,6 +176,8 @@ static ssize_t force_wakeup_write(struct file *file, if (data->wakeup == enable) return -EALREADY; + data->wakeup = enable; + return count; } -- 2.34.1