Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5074055ybv; Mon, 17 Feb 2020 11:41:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyWi7PzBCv1MohNyDvfJY8T0lY40qlM7k9L5I9vgsJh1DDCVukT5hzPYgtRbPmUiXNi4TOz X-Received: by 2002:a05:6830:15c2:: with SMTP id j2mr12541943otr.351.1581968514187; Mon, 17 Feb 2020 11:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581968514; cv=none; d=google.com; s=arc-20160816; b=AQBYx/s+d2fhZPUVuqxKjYPpZ2pUmJkpT4vIY7gxArN9anhAnM1NNkUZL93vxyEySJ UuN/ZOcQWRohCj6r8U7cLKYdwRltrm7uP5HNzRP1fnbgDfCppxu1jJ+g5b0x8rq0KQ5Z iVRAXUAOv0Zrvcwn8igS06nZFnuQF5MKA58U+SqyDovM0aT7QjOceGj9yWj2QGHOuS2T F1ssrs0AIHZP+FxHBErA2qg5J+rd5d87oTdw+K6U9T7mXaElISEHXDg0SXvQQO5CrcEt WyrV1hlBOZk6+L5rk4KzbY+h2jQqzEeDfVe6avH58kZ12mzab6g7PwyM/UxAcdwNbQFY m7WQ== 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=+yTwXcJ3H5mqWIkpNLtdnO06ZekZaUGj0F5xMzG5Trg=; b=C5eWaO9HsjaLS2NsFmF3TlZmt+4VSNE1fW2+/tfFgx7BTJv+ddzlp7rXp7Ps56wwUu 4AhFC08NB5FWpkeacelfFlQ9Elr6Gl8OKaxq79ERdFcOj+pz2WFmLlKWnA/dZxbRJJSh CsBJKlYVIFaAfcSSQNY3C2QlYbOeeEPGSKE8iBhfa3Ffd4+NOIkC83uF0UCEDovvc9La tD5CDbe4XMgzCT3vzdC8uvOTv2RHkVxP2ZMjJZHOogwIKeDlCNa0SFRWb5a0PP6Oyh6p rTWDidOjpQfaEQHhkjutW/dRu9i1LQQXI8QLB40voCn08cdd71OUNVd26nkZ7M98jPk9 nXyQ== 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 d20si643162oti.311.2020.02.17.11.41.42; Mon, 17 Feb 2020 11:41:54 -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 S1729697AbgBQTjM (ORCPT + 99 others); Mon, 17 Feb 2020 14:39:12 -0500 Received: from mx2.suse.de ([195.135.220.15]:51422 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729625AbgBQTjL (ORCPT ); Mon, 17 Feb 2020 14:39:11 -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 D108CAC53; Mon, 17 Feb 2020 19:39:08 +0000 (UTC) Message-ID: <8b50c93b2556413ce2736e18e939f1b376bf48c7.camel@suse.de> Subject: Re: [PATCH] usb: xhci-pci: Raspberry Pi FW loader for VIA VL805 From: Nicolas Saenz Julienne To: Stefan Wahren , Mathias Nyman , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com Cc: tim.gover@raspberrypi.org, oneukum@suse.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, phil@raspberrypi.com, linux-arm-kernel@lists.infradead.org Date: Mon, 17 Feb 2020 20:39:06 +0100 In-Reply-To: References: <20200217100701.19949-1-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-ogkfL5d9U8ZLHgULSlCK" User-Agent: Evolution 3.34.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-ogkfL5d9U8ZLHgULSlCK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2020-02-17 at 18:47 +0100, Stefan Wahren wrote: > > + > > + dev_addr =3D pdev->bus->number << 20 | PCI_SLOT(pdev->devfn) << 15 | > > + PCI_FUNC(pdev->devfn) << 12; > > + > > + ret =3D rpi_firmware_property(fw, RPI_FIRMWARE_NOTIFY_XHCI_RESET, > > + &dev_addr, sizeof(dev_addr)); > > + if (ret) > > + return ret; > not sure, but there could be a corner case which should be handled > differently. In case the Raspberry Pi 4 has an EEPROM for the VL805 > firmware but the firmware is too old to handle > RPI_FIRMWARE_NOTIFY_XHCI_RESET, we should return with 0. I don't know > there is a change to detect this reliable. I just want to mention this. Ouch, good point, that can be problematic. I'll test that scenario tomorrow= . > > diff --git a/include/soc/bcm2835/raspberrypi-firmware.h > > b/include/soc/bcm2835/raspberrypi-firmware.h > > index 7800e12ee042..cc9cdbc66403 100644 > > --- a/include/soc/bcm2835/raspberrypi-firmware.h > > +++ b/include/soc/bcm2835/raspberrypi-firmware.h > > @@ -90,7 +90,7 @@ enum rpi_firmware_property_tag { > > RPI_FIRMWARE_SET_PERIPH_REG =3D 0x00038045, > > RPI_FIRMWARE_GET_POE_HAT_VAL =3D 0x00030049, > > RPI_FIRMWARE_SET_POE_HAT_VAL =3D 0x00030050, > > - > > + RPI_FIRMWARE_NOTIFY_XHCI_RESET =3D 0x00030058, >=20 > In past we updated the firmware mailbox property interface in a bunch as > a separate patch. So we can avoid those gaps. Ok, I'll change that. Regards, Nicolas --=-ogkfL5d9U8ZLHgULSlCK 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/4FAl5K69oACgkQlfZmHno8 x/564ggAnRR3cI7WWFgxYpBmwwEU6WnQinv4UaaIe0w5g4vjvt8UjgnypPpwGlBI qqVXlFsvzR1pXNyTDZcjdzkqmYekgCaR4+0ONPYL+ofhQ3SeYg/FwsVgkWTcE0SQ FmiQRIDZk9qYF1UV5ABz0dPTvD3nBjNEN5+1s2Ti6hjSIb3OIVH/DgsxSUIQfvaK iL1+4ikVfvckbDrBG/PnCsCfxoiTfQWMC/QoUZROSsO4NVBFojLwyK0nDA+O9k8R 6N/1OMUoJOCzjW27KZ3vUuKf2Vc3pu4UgfPXEY4oeWpAF+5055DHaJBrYDQopEzE 0sJWKha2D5TpFR9/StcAUyp2secwOw== =+vmi -----END PGP SIGNATURE----- --=-ogkfL5d9U8ZLHgULSlCK--