Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp199069lqd; Tue, 23 Apr 2024 22:03:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCWuOEXqLHQwF5HLqFK9LoxPYJv91WOYsi+CEMWfleJOkfAiCKv/CNFC5dayScLKQO4KAdnKW0sbXSmUw3r1AtJRsAbBR+pawhqQ2R3w== X-Google-Smtp-Source: AGHT+IGLzkxB9G4RtcYQWjwxn/oHYm838p1GigdsUo0d0Q1tEmUbZikpNk/qyrCA3yWJ1XHKM1+w X-Received: by 2002:a50:c306:0:b0:568:9b13:77fe with SMTP id a6-20020a50c306000000b005689b1377femr1264713edb.37.1713934998244; Tue, 23 Apr 2024 22:03:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713934998; cv=pass; d=google.com; s=arc-20160816; b=F39XyYLvCtpwu2RTsmMcc75PU0cs41GMimoyzitEvx8OAiVMUIZpww6IJWYEWIapUI W7Ilx5ONAmRY2ypTnDeZJgkkazyXRCv0HHdGc7zMQQGdG9kOcV2uFaNXN5ons5RRmIiH 3jealx1or2N5pxV2U+pZi3ODbdFZwAw3gwV09GXsybgHnsjWSmLREfi0Rc7YN9XvHgj+ Q33I89XNE+JijMm0tbOjtp2IvJdZ+1MAJu9TL6AeS+sr4RmqArClxf+NxP9WgtPBMljs 6G3P2StgYlMMbfsI01oIEKWvfkkor6fMdfu5SClP9cwuVCd/zElm+LKBDRkOgd6Dt03U /gAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=s8iCE06xFUnCtO3XvM2Zkme/+4l11K6TJlEmn7UHZlg=; fh=nGrRs+ffyRN9yvKuuSGlIfjL4vo++dv4wufINRtauvM=; b=kPXqKknVnzil9VxO+sz7HBBpXKWuDstSpgsU//n/kMTuEvYmlEA0XlVM7j8YNUeodW 8RIt0NRe9hXKOnqTowZqtHAUcCMaItvhUqsQvkUsD/YcL8r/H5wjauKvK033GGAiYZjf b3JgQ7YiyGYESOOyxOaLnhWdwoaLNpBwsiPjO3bpko8b6aisLzzzhs8rca3tW0mtNRqw xc93WLmj3eigKZlhApeMVxP50YIugn4QWqB8LoDqi7NPNTd+GM1oYMG/cwHfdYNPb8+t ptjeJq+gQMFzB98vgvwNw7M/cAyszToQhMyrLuxpmJbQa5QD03pTHq29LLtIwfSXCoJl +fbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="agQ/RPAt"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-bluetooth+bounces-3937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u2-20020a509502000000b00572207fd7e2si1747726eda.184.2024.04.23.22.03.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 22:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="agQ/RPAt"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-bluetooth+bounces-3937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F20FD1F235B1 for ; Wed, 24 Apr 2024 05:03:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5AA2154446; Wed, 24 Apr 2024 05:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="agQ/RPAt" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBEFA43AB4 for ; Wed, 24 Apr 2024 05:03:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713934993; cv=none; b=hfKKliLkWA21L47bN1eb8S5RQuhgUmiPUmbrjGa6QSioAYb02uMDh9cCfRSbbzzvk4FTcLn7l/jlfwjGgCT6erO0EIbmcce87lunvPNh5e9FHvUQnz6ncF0Mmua8jlczpaCpsoyaW9XVqT5vxY2nriP8EN6PUuL9m8vldvr1Vww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713934993; c=relaxed/simple; bh=l8UoxWR8PCvSUdlim2+htodE8swWM0HgXRm0wVnsTuk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=EyJYXjD+WWCNjJsXduf1NIi9rAUwxmTVNCAmlInxlYL7WPOMrXR+epBPckb7a/IVZXqzGOjGcQhyk7eKW0E2DiR5tBEsR/WWnrMvBb02byClgszWOSH2dbbL+C85jG68zKi4Fut8qcdV543rMAV0vP6U5nT+rYPm4xsEHoxWZbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=agQ/RPAt; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43O0nnY9013651; Wed, 24 Apr 2024 05:03:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=s8iCE06xFUnCtO3XvM2Zkme/+4l11K6TJlEmn7UHZlg=; b=ag Q/RPAthm7aDtwKJ7TODWSRoPoDGkjZ+CcMwFupVv4AqS6OagQCM2FZxDIeeeiXhK dhtJ9y8z5LXXLVVG7hiENGJEr8QU++Tv1vpvp6dtgiJY+vthMi5ZTg6rwT3jVvLq x7PyLw35mV8KZ+0SBfxk0PheP57AFZsV+G22l9Kf+KYwKXhF6YcHgf8Uhxxrw98q 8JHK1tIwoZGJhXYjGnD2nA3yV5sFQwolHV60JJCxx4hUoDBcMVkQ0VTwylpXWPUx YVl6IXOwjWcl3OLQ7aJsBJ+4Yu8abos3waad796zK2FQyHV0pPoySmjQ0XoyqU9c bLJUEIyaj2ZkdH5ViK6w== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xp9c0k47w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 05:03:03 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43O532xt000666 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 05:03:02 GMT Received: from [10.253.72.119] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 23 Apr 2024 22:02:56 -0700 Message-ID: <067db05d-56bc-4ca3-aef1-bc3bae47667c@quicinc.com> Date: Wed, 24 Apr 2024 13:02:54 +0800 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390 To: Krzysztof Kozlowski , , , CC: , , , , , , References: <1713932807-19619-1-git-send-email-quic_zijuhu@quicinc.com> <1713932807-19619-2-git-send-email-quic_zijuhu@quicinc.com> Content-Language: en-US From: quic_zijuhu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: __QhaBoaKuO3828RKpUG02rggcdc1OV7 X-Proofpoint-ORIG-GUID: __QhaBoaKuO3828RKpUG02rggcdc1OV7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-24_02,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 clxscore=1015 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=893 lowpriorityscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404240020 On 4/24/2024 12:30 PM, Krzysztof Kozlowski wrote: > On 24/04/2024 06:26, Zijun Hu wrote: >> Commit 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() >> with gpiod_get_optional()") will cause below serious regression issue: >> >> BT can't be enabled any more after below steps: >> cold boot -> enable BT -> disable BT -> BT enable failure >> if property enable-gpios is not configured within DT|ACPI for QCA6390. >> >> The commit wrongly changes flag @power_ctrl_enabled set logic for this >> case as shown by its below code applet and causes this serious issue. >> qcadev->bt_en = devm_gpiod_get_optional(&serdev->dev, "enable", >> GPIOD_OUT_LOW); >> - if (IS_ERR_OR_NULL(qcadev->bt_en)) { >> + if (IS_ERR(qcadev->bt_en)) { >> dev_warn(&serdev->dev, "failed to acquire enable gpio\n"); >> power_ctrl_enabled = false; >> } >> >> Fixed by reverting the mentioned commit for QCA6390. >> >> Fixes: 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()") >> Cc: stable@vge.kernel.org >> Reported-by: Wren Turkal >> Link: https://bugzilla.kernel.org/show_bug.cgi?id=218726 >> Link: https://lore.kernel.org/linux-bluetooth/ea20bb9b-6b60-47fc-ae42-5eed918ad7b4@quicinc.com/T/#m73d6a71d2f454bb03588c66f3ef7912274d37c6f >> Signed-off-by: Zijun Hu >> Tested-by: Wren Turkal >> --- >> Changes: >> V6 -> V7: Add stable tag > > Stop sending multiple pathchsets per day. I already asked you to first > finish discussion and then send new version. You again start sending > something while previous discussion is going. >you concern is wrong and i am sure it don't block me sending new patch sets to solve other issue. so i send this v7. i have give reply for Bartosz' patch. i hop you as DTS expert to notice my concern about DTS in the reply. > Best regards, > Krzysztof >