Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1613674rwr; Thu, 20 Apr 2023 18:53:10 -0700 (PDT) X-Google-Smtp-Source: AKy350bV76h+yx3Bx0/ijJQEx6qajNNXJ8lPp5SYGTS821lz99jZTMPPB+TW551QjPoX95Jg1DAt X-Received: by 2002:a17:90b:30c2:b0:247:8ad:d5d4 with SMTP id hi2-20020a17090b30c200b0024708add5d4mr3726613pjb.8.1682041990444; Thu, 20 Apr 2023 18:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682041990; cv=none; d=google.com; s=arc-20160816; b=ykz/amxYXbG02/hssSH3GRX0q/IbU6Sih+iyjFWRL6Fa6yawMR7EDwJ1c3Spgd5u3u BEhCdJWJ2r8ZR5salU3xfo1gV5GwDVVOHEbwBMnyGt5nbdX2erXoa7mCQXMmmaoZhjI0 CiRxmD77TdWo2kVyhTjXALnuGJWUi1gNOFEhRY+dMIRk9CBoW+r7p3+7tk9T8Ey3sdc2 ypalR5kOxFyedggfGucw1I7yimKz7pnq4JYgCCuyIwJclBg5BKCPah8ipxBhVIowMcke ry1KLEIKJeeBmWdaepeAKfPi363GEJiThkiUj9RwskCgAjAu3mcpYuL7dxhPmRhGqRfw je5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dIxy13HfCmUT7EC5y5m4UCU0YeS0VjV5fZQ5jhML6eE=; b=DmJ3TbcEMD2HT75NcT8johte8NL6yD3q0xh5sTPy8aZBnVnVQpeTNhI51WFb2re/+M yYOg7WQwnEj85BvE+xWGfsLDhWx2dCC58VTSeLjlGGlHhd8bynhtz44D0YSaadQsEc0b eJt4KQBRae9AvuMAPQNFpX+79xvM3v/Jsn9pSa6an6FE+YyfLM5wQOe98YcqwvwwD5sw FnufbRSstMgJsxLCfCfiVD+F0iQnquJ2pyKMobrkWtnLzy6rcb4MQdyAP2Q/srkDW21g xOUApqa7k7vb66aev43Z02d/traXB6a0KfV/rWyMSba9R/q/udwIHLEnY8qaMGEMZ3pr yaAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=qw8MaCUv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 x22-20020a17090ab01600b00247316f415csi3279213pjq.26.2023.04.20.18.52.59; Thu, 20 Apr 2023 18:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=20221208 header.b=qw8MaCUv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229689AbjDUBnq (ORCPT + 99 others); Thu, 20 Apr 2023 21:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232762AbjDUBno (ORCPT ); Thu, 20 Apr 2023 21:43:44 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED2943C34 for ; Thu, 20 Apr 2023 18:43:43 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1a7ff4a454eso406515ad.0 for ; Thu, 20 Apr 2023 18:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682041423; x=1684633423; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dIxy13HfCmUT7EC5y5m4UCU0YeS0VjV5fZQ5jhML6eE=; b=qw8MaCUvrN0Zk46JopzDu1i95viE1y9QMcRYLwicZ7IUpzsNd4mLhxoglU3f6L67tD XcHwkffp88Zp+CzDTdY0ZDrRe/0OpumfRosvaqq/M9HtwUW9JNTdtiqDzE6giLTNmfut F3FiSaMXOj4IirV4/0xlNrpPfnNEsfSOg61PM2JDllV/+Xk4aKiYJP9QM0ZaNA/PoVmy TP3aixmciyyj/ICJb85pAPLqFEW7VHzwO8TTIJDXTRDDVVRoPnHlrrl+W6hizmnSsnAp s66LEehvPywdjmkjlJi0ZAVxnyQj8dk96ylVOMAcK4MRhtGNcJCjpMp0splqkZs50TCu 9SSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682041423; x=1684633423; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dIxy13HfCmUT7EC5y5m4UCU0YeS0VjV5fZQ5jhML6eE=; b=bBtmsb7519ynVqbeqdqXAYzh7C6ENVUh+g6oAOwNieRo21TZ18vFOzRx7iCke3DqWh ixw/Colw+z5px9Sqha2cUGyOtsgas4eoo+nQWBboTZCt2f+y2uQdxuvXftTy1afC/7YK EhVOj93ywrmRrxf4142E4BiSpSW6S+Q7d7TPaTkXHxi6AEGcgQ7M/42g/MuUoRY1e4m6 9Ki9rAPZBSdXr30duztoPDXAxkOdkxngcEpxOwe6ygDuV9Uuop8eF/Iv/pgMNZRB9153 TFDMc9pp9zc8f2VdhZBmSyXsVcyoGWpfBI/xqGYWkA2mBIJZ4NOOkE1juI67i8HWhH7/ 2omw== X-Gm-Message-State: AAQBX9e0MWP9vImGJvo1urpZFmW1rTjJg1hizbPMpaXmScOlYQkthW04 cMPOYj78MT+hKuzjOcClSksgirF97yiLLAmvr3RmHw== X-Received: by 2002:a17:902:eb8c:b0:1a9:23a7:7c57 with SMTP id q12-20020a170902eb8c00b001a923a77c57mr135908plg.10.1682041423159; Thu, 20 Apr 2023 18:43:43 -0700 (PDT) MIME-Version: 1.0 References: <20230416012421.255bfd19@slackpad.lan> In-Reply-To: From: Saravana Kannan Date: Thu, 20 Apr 2023 18:43:06 -0700 Message-ID: Subject: Re: [PATCH 1/3] ARM: dts: sun5i: chip: Enable bluetooth To: Jonathan McDowell Cc: Andre Przywara , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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-kernel@vger.kernel.org On Thu, Apr 20, 2023 at 12:12=E2=80=AFPM Jonathan McDowell wrote: > > On Sun, Apr 16, 2023 at 01:24:21AM +0100, Andre Przywara wrote: > > On Sat, 15 Apr 2023 18:46:03 +0100 > > Jonathan McDowell wrote: > > > > > The C.H.I.P has an rtl8723bs device with the bluetooth interface hook= ed > > > up on UART3. Support for this didn't exist in mainline when the DTS w= as > > > initially added, but it does now, so enable it. > > > > > > Signed-off-by: Jonathan McDowell > > > --- > > > arch/arm/boot/dts/sun5i-r8-chip.dts | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/= sun5i-r8-chip.dts > > > index fd37bd1f3920..4d72a181d8aa 100644 > > > --- a/arch/arm/boot/dts/sun5i-r8-chip.dts > > > +++ b/arch/arm/boot/dts/sun5i-r8-chip.dts > > > @@ -255,6 +255,10 @@ &uart3 { > > > pinctrl-0 =3D <&uart3_pg_pins>, > > > <&uart3_cts_rts_pg_pins>; > > > status =3D "okay"; > > > + > > > + bluetooth { > > > + compatible =3D "realtek,rtl8723bs-bt"; > > > + } > > > > As the kernel test robot already pointed out, there is a semicolon > > missing here. > > Otherwise looks good (dt-validate passes), but don't know if there are > > any wakeup GPIOs connected (can't seem to find a schematic?). > > So there are wakeups, but if I add: > > device-wake-gpios =3D <&axp_gpio 3 GPIO_ACTIVE_LOW>; > host-wake-gpios =3D <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */ > > then some odd sort of dependency issue happens where the serial port > load is deferred waiting for the GPIO to appear, and then the device > doesn't work. When you say your device doesn't work, are you saying it never probes? /devices_deferred should tell you what devices have deferred and w= hy. > Error in dmesg is: > > serial serial0-0: deferred probe pending > > on 6.3-rc and on 6.1 I get: > > dw-apb-uart 1c28c00.serial: Failed to create device link (0x180) with axp= 20x-gpio This error message doesn't block anything. So I don't think this is the cause of your blocking issue. But I still want to understand why this error message is showing up. > I'm not clear why it's trying to link the serial port to the GPIO; it > seems that it should be the bluetooth device that depends on both the > UART and the GPIO, A fix for the device link error message went in on v6.3-rc3. Is that the 6.3 version you tested this on? Also, I tried looking into the UART driver (drivers/tty/serial/8250/8250_dw.c) but it wasn't clear how it ends up populating the bluetooth serial device. If you can point that out, that'd be helpful (assuming 6.3-rc3 still shows that error message). > and that the GPIO is actually optional so shouldn't > hold up loading, but I can't see how that should be represented. Optional dependencies should get ignored after the default deferred_probe_timeout runs out and the supplier driver hasn't been loaded yet. -Saravana > Adding Greg + Saravana in the hope they can tell me what I've done wrong > here. The LED driver using a different GPIO line on the axp209 works > fine, so the device is definitely loaded and working ok.