Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp953895ybv; Thu, 20 Feb 2020 10:14:46 -0800 (PST) X-Google-Smtp-Source: APXvYqycL6jkgJtRA6DLF92k0OXocBFMlt7OK5wRLR3VZUPOgD9Lzah9J0Jypug/GYhJZyAwSvcK X-Received: by 2002:a05:6808:289:: with SMTP id z9mr2969309oic.48.1582222486596; Thu, 20 Feb 2020 10:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582222486; cv=none; d=google.com; s=arc-20160816; b=rPk/jLxj9TXTcASJZgiuF6x+kW5I1tVYXiOdsJA8/hASnSyoxetiC3pmn+qqA05JT4 izRDg+PRWp1wipauGAZJV7veLIpi5tVR3s+LRk+IHRnTJOLp2yh2tz/3A8stycnU8irn p4ob8WpQek0OTGqWz1U8iYmf1BbOAGJ+Q2AsJVVgtjnBo9hoTVf6LPTzey8+MpEnAUwb 1KXJyFlv5yxCMNZ8/IiMIYeT9dk1Nv+Oq+Xd1uxWVXDWUjhz/dG42eQf/B15T4r6TE2G USDlNs1+Y0jylXGQFxeF3ubvUEgCRs5BoDvF9Edorkn3sQnARIF0wyUMRYj484so9oou SX6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=EhlYQXpIQA9OIY2hL37Tp7C21R2CJIOsCLUVnXAtTWE=; b=a6RxzbJo0Eqp3RmpRg9w8Y2R3Kd10Od28VUEs/Oca6MDydHf3ObuxHxIjRNArKNdQh baMbiK2Xx4qKY+6XrXbuVA+OBq46ULXJb/0JVHO6roi4QHs0ycZAOlabMBp3cFDoKh1i gndtiUp6JqZHqjA7IWmK8GbTwb7Ag7cP7hv5AKrzsRkq+lVpi2OexVB3kgeJFc9acAGQ KzmG6c55AKKHT+mWjUOwW54S7gROviKhCc/w55xvJ6AyyqvpMkumiQYqj3BQfwxgynbx WUWQng45UCdYHfLPsal13wTeAl8z785SOs1S26fy/71lWN6px4ta66GGuLvsh68VNFkk QQdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si98941otp.11.2020.02.20.10.14.34; Thu, 20 Feb 2020 10:14:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728486AbgBTSO0 (ORCPT + 99 others); Thu, 20 Feb 2020 13:14:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:51584 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727553AbgBTSO0 (ORCPT ); Thu, 20 Feb 2020 13:14:26 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 13AACAC16; Thu, 20 Feb 2020 18:14:23 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 3/4] PCI: brcmstb: Wait for Raspberry Pi's firmware when present From: Nicolas Saenz Julienne To: Florian Fainelli , linux-kernel@vger.kernel.org, Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Lorenzo Pieralisi , Andrew Murray Cc: linux-usb@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, tim.gover@raspberrypi.org, linux-pci@vger.kernel.org, wahrenst@gmx.net, Bjorn Helgaas Date: Thu, 20 Feb 2020 19:14:20 +0100 In-Reply-To: <10a53db8-960e-eea7-1e8d-790de9a79e71@broadcom.com> References: <20200219123933.2792-1-nsaenzjulienne@suse.de> <20200219123933.2792-4-nsaenzjulienne@suse.de> <10a53db8-960e-eea7-1e8d-790de9a79e71@broadcom.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-RsrYh3XIvQNMFLjrdUpB" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-RsrYh3XIvQNMFLjrdUpB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2020-02-19 at 11:21 -0800, Florian Fainelli wrote: > On 2/19/20 4:39 AM, Nicolas Saenz Julienne wrote: > > xHCI's PCI fixup, run at the end of pcie-brcmstb's probe, depends on > > RPi4's VideoCore firmware interface to be up and running. It's possible > > for both initializations to race, so make sure it's available prior > > starting. > >=20 > > Signed-off-by: Nicolas Saenz Julienne >=20 > Reviewed-by: Florian Fainelli >=20 > It does not look like there is something making sure that > CONFIG_RASPBERRYPI_FIRMWARE is being selected or depended on, should we > have a "default XHCI_PCI" added to drivers/firmware/Kconfig? I think having that would enable the firmware interface for all XHCI_PCI us= ers, which isn't ideal. The firmware call has stubs for the case the firmware interace isn't compiled, so no problem there. Ultimately we want to enable CONFIG_RASPBERRYPI_FIRMWARE only when the built image targets the RPi4 (reglardless of being arm64/arm32). But I don't think that's feasible. Regards, Nicolas --=-RsrYh3XIvQNMFLjrdUpB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl5OzHwACgkQlfZmHno8 x/7JXggAp1+xWNqaL/5ExpM/n9Su+Z/6pLAFYSYbVlKAzipGxgOD4a9FH3jJ8p4J mACCkp+9psxkkQfoNW4s+edRXTKEJ8rH/Zv1tRJ3CpViHb8b95XW3zO6xWb2BLln Y+Q8VVvplVzQxci+Qo6oQki1hgvwm2lvTcbnD6w3yu0U3LUKKDzkZHQLVUtvXU9m thco7iOswNEq9FshjSLyrUdeZvtuYjx3zHNO5tFz7+Zo226CTPe9teoUjBMmlppv iLDJwBPAmT1QJNjDCP+ziduGh2IH14Wmf5IMofn7p9wnxCvvlL4CfZp9+QLtI2UH A7w2lxIPiOh0ERYep91DEHD/Jy3Hcw== =mdiV -----END PGP SIGNATURE----- --=-RsrYh3XIvQNMFLjrdUpB--