Regressions List Tracking
 help / color / mirror / Atom feed
From: quic_zijuhu <quic_zijuhu@quicinc.com>
To: Elliot Berman <quic_eberman@quicinc.com>
Cc: Wren Turkal <wt@penguintechs.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	<luiz.dentz@gmail.com>, <luiz.von.dentz@intel.com>,
	<marcel@holtmann.org>, <linux-bluetooth@vger.kernel.org>,
	<bartosz.golaszewski@linaro.org>, <regressions@lists.linux.dev>,
	<kernel@quicinc.com>, Greg KH <gregkh@linuxfoundation.org>,
	Trilok Soni <quic_tsoni@quicinc.com>,
	"Bjorn Andersson" <andersson@kernel.org>
Subject: Re: [PATCH v6 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390
Date: Fri, 26 Apr 2024 10:45:09 +0800	[thread overview]
Message-ID: <3d61680a-79da-4a5b-a5c8-feb6f41bd5a6@quicinc.com> (raw)
In-Reply-To: <20240425103329807-0700.eberman@hu-eberman-lv.qualcomm.com>

On 4/26/2024 1:37 AM, Elliot Berman wrote:
> Hi Zijun,
> 
> On Wed, Apr 24, 2024 at 01:33:50PM +0800, quic_zijuhu wrote:
>> On 4/24/2024 1:04 PM, Wren Turkal wrote:
>>> On 4/23/24 9:31 PM, Krzysztof Kozlowski wrote:
>>>> On 24/04/2024 06:18, quic_zijuhu wrote:
>>>>> On 4/24/2024 12:10 PM, Krzysztof Kozlowski wrote:
>>>>>> On 24/04/2024 06:07, quic_zijuhu wrote:
>>>>>>> On 4/24/2024 12:06 PM, Krzysztof Kozlowski wrote:
>>>>>>>> On 24/04/2024 02:46, 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()")
>>>>>>>>> Reported-by: Wren Turkal <wt@penguintechs.org>
>>>>>>>>> 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 <quic_zijuhu@quicinc.com>
>>>>>>>>> Tested-by: Wren Turkal <wt@penguintechs.org>
>>>>>>>>
>>>>>>>> No, Bartosz' patch should go.
>>>>>>>>
>>>>>>> what is Bartosz' patch.
>>>>>>
>>>>>> Srsly? You were Cc'ed on it. How many upstream patches on upstream
>>>>>> mailing lists do you receive that you lost track of them?
>>>>>>
>>>>> Bartosz' patch have basic serious mistook and logic error and have no
>>>>> any help for QCA6390, and it is not suitable regarding DTS usage.
>>>>
>>>> Really? Why you did not respond with comments then? Considering how
>>>> imprecise and vague you are in describing real issues, I have doubts in
>>>> your judgment here as well.
>>>
>>> Please slow down here. Zijun's patch works and Bartosz's patch does not.
>>> I don't think Zijun means any ill intent. I am replying to Bartosz's
>>> patch right now.
>>>
>> this is reporter's latest verification results. actually i don't have
>> much time for kernel upstream. i really hope my fix is able to merged
>> ASAP, it will help us to solve other possible impacted QCA controllers.
> 
> I saw you were planning to slow down for a minute. When you're ready to
> work on these patches again, let's get them reviewed internally first.
> Please check go/upstream for some helpful hints.
> 
thank you @Elliot for your reminder. i will learn go/upstream again
before next upstream, and i will request for internal code review before
do external upstream for further upstream.
thank you Elliot again.

> Thanks,
> Elliot
> 


  reply	other threads:[~2024-04-26  2:45 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24  0:46 [PATCH v6 0/2] Fix two BT regression issues for QCA6390 Zijun Hu
2024-04-24  0:46 ` [PATCH v6 1/2] Bluetooth: qca: Fix BT enable failure " Zijun Hu
2024-04-24  3:21   ` Greg KH
2024-04-24  4:06   ` Krzysztof Kozlowski
2024-04-24  4:07     ` quic_zijuhu
2024-04-24  4:10       ` Krzysztof Kozlowski
2024-04-24  4:18         ` quic_zijuhu
2024-04-24  4:31           ` Krzysztof Kozlowski
2024-04-24  4:33             ` quic_zijuhu
2024-04-24  5:04             ` Wren Turkal
2024-04-24  5:33               ` quic_zijuhu
2024-04-24 13:56                 ` Luiz Augusto von Dentz
2024-04-24 14:01                   ` quic_zijuhu
2024-04-25 17:37                 ` Elliot Berman
2024-04-26  2:45                   ` quic_zijuhu [this message]
2024-04-24 13:49               ` Luiz Augusto von Dentz
2024-04-24 13:51                 ` quic_zijuhu
2024-04-24 13:52                 ` Bartosz Golaszewski
2024-04-24 13:53                   ` quic_zijuhu
2024-04-24 14:00                     ` Bartosz Golaszewski
2024-04-24 14:08                       ` quic_zijuhu
2024-04-24 14:08                       ` Luiz Augusto von Dentz
2024-04-24 14:12                         ` quic_zijuhu
2024-04-24 14:19                         ` Bartosz Golaszewski
2024-04-24 14:25                           ` quic_zijuhu
2024-04-24 14:41                             ` Bartosz Golaszewski
2024-04-24 14:44                               ` Krzysztof Kozlowski
2024-04-24 14:46                               ` quic_zijuhu
2024-04-24 15:31                                 ` Luiz Augusto von Dentz
2024-04-24 15:42                                   ` quic_zijuhu
2024-04-24 14:02                   ` Luiz Augusto von Dentz
2024-04-24  0:46 ` [PATCH v6 2/2] Bluetooth: qca: Fix BT enable failure for QCA6390 after disable then warm reboot Zijun Hu
2024-04-24  3:22   ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d61680a-79da-4a5b-a5c8-feb6f41bd5a6@quicinc.com \
    --to=quic_zijuhu@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@quicinc.com \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=luiz.von.dentz@intel.com \
    --cc=marcel@holtmann.org \
    --cc=quic_eberman@quicinc.com \
    --cc=quic_tsoni@quicinc.com \
    --cc=regressions@lists.linux.dev \
    --cc=wt@penguintechs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).