Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1164722lqp; Sun, 14 Apr 2024 18:23:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUx74VxuUwNkx5ViUzc9IoYXCQGPFGKisjiTgnWuW2NZGxmEEUYwkPplFMlUpl/LmxNxFKr0Q5go13FMgrXeMruSfdfyPNmvV6a6fKnNw== X-Google-Smtp-Source: AGHT+IGbtvluzt1TKYuZ7GsoHyJNQU+UpRaOMz75yxDZnLF5NS4uVk2ysolebJ1Ad3++rVTBIyQ3 X-Received: by 2002:a05:6512:3901:b0:515:a8c9:6e99 with SMTP id a1-20020a056512390100b00515a8c96e99mr6068847lfu.5.1713144213243; Sun, 14 Apr 2024 18:23:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713144213; cv=pass; d=google.com; s=arc-20160816; b=gXi4Wh7LKOnguQR7HtNCZB91u+sEHV/xLGs+tq75XrO/6FLM0iMNWce79IhENqLtkK GSYBvqAiY9WPUOOpF4vGRrtXC2VFyPKqULWRJwD36m54DCxdjM2Nwb6LPVmhgg1fuOsk /m3wumnjG2TFDhRLcb9tLQz9iA1+vCN87i3syDVU+kuikDnQezxZM3rHRg1bdB5XJak9 OFxt4Sl+o36w8ZojQcQxUz5IGO3iJTXSCFNHEdhR7A4seYRhBojsxJoJGvK2Tf6oln/g JTzjn99PlQpaj7w4dUHSurFClrME8iZpatbBVUpKARMH6+z7EcKsJrtsYA/AD+B4FgiZ OvTw== 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:sender :dkim-signature; bh=yUYjY+H+ebNB4HkEUdMBYlZN9uRDGs8w/DqirPju+wA=; fh=LxRl3cG7UOZF4nl9BfRl8tw2ojhEMkRH8FjCUiq/7rA=; b=SjhUSF064g4gokRnPXp4KP5WXWfPxxtr0D61CQWRct8Qr3zIMOQec2he8U3shUB7ta FMdgeXpW4YTRK7Y30amDVnwR1IBJgrmL6NkeENRI3UNYGrkO+XD5OJWsBj03G6Ywvfmt IhmqTqYvX2ecvzvMLv+zugOZ6cuznnjIDmgF2oVCHYH4eiIlIsgnamIxySZP25n3J/Aa 8D0aNEylAUBuG2pSEYqcb3a9ieKMgi9gRhrDRbc2jF6dGQRXfkABqjKYs9kcFW2ov+0Q GqHfVle1A3dpMwAOm3N+DcX03+cud16ElCSQViOYxTAmJDY1kXmyhy8LKa96MZg9pkZ3 Sgdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KHTzfahm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-6295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6295-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h3-20020a056402280300b0056e31dbe4f3si4151528ede.154.2024.04.14.18.23.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 18:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6295-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=@gmail.com header.s=20230601 header.b=KHTzfahm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-6295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6295-linux.lists.archive=gmail.com@vger.kernel.org" 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 E8D5B1F21D90 for ; Mon, 15 Apr 2024 01:23:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D700BE6C; Mon, 15 Apr 2024 01:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KHTzfahm" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8559BBE58 for ; Mon, 15 Apr 2024 01:23:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713144209; cv=none; b=XlvcOmz5Kfzfz27MzqmdtWm1TRLZDVE1s/LFLg97AOu+h0Da1C6pC0l9eLD0SY7OCVCmZZfrmzhQ/GhcedYxufp79rq5T/bF2LrqS54MuLdle7gWPuFBMs9lS9JdL5ZET+7MlvkpHqXct5hIzDin+At9bpp67ZjVW/sI5k/wMO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713144209; c=relaxed/simple; bh=gzTr0viS67fiwCArwpZDAU6hJ96BXLt45Z5bvRVyaow=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T2t4xx4XS/FGPvRh/leecRJo7eiKeAna97YxA5Q3mhEEF16sB7mEPFSOcqUcIaYX9cdm3AOCSg+iXIFrfNiIJf3xwTa5EOTQY2JQkVbQk7rBR3nYNqEZuhoXpaTVjNDfCrkOslfyQ/oyGl8Oa7hyONF+RspYU84qIUTrZ2G6JzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lwfinger.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KHTzfahm; arc=none smtp.client-ip=209.85.161.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lwfinger.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-5aa2dcd4454so1945769eaf.2 for ; Sun, 14 Apr 2024 18:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713144206; x=1713749006; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=yUYjY+H+ebNB4HkEUdMBYlZN9uRDGs8w/DqirPju+wA=; b=KHTzfahmf1KHddWM+Utcwi4DiZ+hfFSmIlB7wvFdXBTtggu1Cqxh7R4XDG3KzT7fEg KLfl8LqGEk9ZtHnCvnumZDTbAWtHw04BqnvtHBPu6TUNPx7x+AMtnl137GweCrr/Js+g f1rwg8ChZD/8EVMhy9iKyXSt8fS/NAreAn6zKE0gh+ZFI9bWG5xvmVbqaLUEFygkbrms 6Loq68cw+WBSja21ZJrex2xeMjTTGdmdi5gkG58VCHNNj72DspjGpfVxb/k1Qk846jDI IGBjtURraIqRIfybMow3CQl9p+xryGD7QS05x32OH4FU1xFY+ce2abKF/MAXL/vsQBwZ JoXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713144206; x=1713749006; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yUYjY+H+ebNB4HkEUdMBYlZN9uRDGs8w/DqirPju+wA=; b=W+KMY17oNBJ8bhhW6jwbe5pv6wjIFwU6zePVXDHJ3NqHv2+ooqZ/tr85WZnQGqskkz pzcF9Q+IRpGrtvOuqRF5gJnE0l+fDCZOLIYqovOXnPv/b+5OFYmEhhG44HIaaIxgww5p Ed1wdrGk4nzMwKUZF9NUIFZisUloX6DGQHFvIISDVDVkf4yJ5PZ84m+/QSJTu2wwoBM/ 3+cHFOTvFNRpIhPBvxBVdPWyYpxu+JKXZP4Pyep4M6p/mlkkzpynL2WpNlG61j2EEJ4L q4IOXvkyxhTdiPoySxW9miB927vtqAGsGGbSWfWF2blxtCcWod5ZnlMa6oYgS3VmJRKi FWSQ== X-Forwarded-Encrypted: i=1; AJvYcCXv/tvMA+lp3kki1sQCAh4JR49Ku5lOW/yTxgAc34PetQwCSKV+Yi3mCCiQ870UOmSsslUxOMGG4NcTl1UXAls+hku/huyeOtkA7O8cnvw= X-Gm-Message-State: AOJu0YyranC2tbPzozxKGpQloaJ8hbMNSORdGU+Zdpr6x+kgSgIz4IxU Bpv10Bnnhb1UeGFKFmQ2gosNf/B0wRdZIETFhgfE/VhgYE8Qhgb4 X-Received: by 2002:a4a:4e81:0:b0:5ac:9f86:cc0d with SMTP id r123-20020a4a4e81000000b005ac9f86cc0dmr1988052ooa.6.1713144206621; Sun, 14 Apr 2024 18:23:26 -0700 (PDT) Received: from [192.168.1.119] ([216.130.59.33]) by smtp.gmail.com with ESMTPSA id v26-20020a9d5a1a000000b006eb80dd6c97sm169423oth.68.2024.04.14.18.23.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Apr 2024 18:23:26 -0700 (PDT) Sender: Larry Finger Message-ID: <4d36d201-bb39-469c-9861-5e08c9003c73@lwfinger.net> Date: Sun, 14 Apr 2024 20:23:22 -0500 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] rtw88: Fix startup problems for SDIO wifi plus UART Bluetooth To: Ping-Ke Shih , Kalle Valo Cc: Larry Finger , Johannes Berg , "linux-wireless@vger.kernel.org" References: <4umro86wvv84.MjDfYvt4P5uZryt8boBK8Q2@1EHFQ.trk.elasticemail.com> <5af71338f3904aac9d2c237637c851e7@realtek.com> <287e9d4e-316a-4579-961e-58e75abea534@lwfinger.net> <87o7agjs00.fsf@kernel.org> <46745fe7-a43d-4f7c-b247-f0fde01ee63e@lwfinger.net> Content-Language: en-US From: Larry Finger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/14/24 7:45 PM, Ping-Ke Shih wrote: > Larry Finger wrote: >> >> I originally wondered if there was a power problem when both were simultaneously >> started, but I see that is not the case. To reiterate, the BT must start first >> and complete UART initialization before the wifi starts initializing. It seems >> to me that a suitable msleep() at the start of the SDIO probe routine seems to >> be a viable workaround even though it is not aesthetically pleasing. A sleep of >> 150 ms is too short, but 500 seems to work reliably. > > Suggest to apply this workaround but only if UART-BT + SDIO-WiFi, because SDIO > experts didn't remember they have met this problem. They need real hardware to > measure signals to know what it is wrong, but unfortunately they don't have > bandwidth to process this because of limitation of human resources. Sorry > for that. The OP at GitHub reported today that there was a DTB error for that chip [1]. I am going to drop the patch for the stable kernel, but I will still apply it to my rtw88 repo at GitHub.com. That way, users with older kernels will get the benefit of the msleep() even though their DTB may not be fixed. Thanks to you and the SDIO team for your efforts toward a problem that turned out to be in the kernel. Sorry for some noise. Larry [1] https://github.com/ROCKNIX/distribution/pull/63/files#diff-e2de6222b1794f89311bdc1597c1597c76f34503c575ea3f7e7ec9c5376218d6