From: Mark Brown Subject: Re: [PATCH v2 2/3] spi: Add HiSilicon v3xx SPI NOR flash controller driver Date: Thu, 9 Jan 2020 21:28:42 +0000 Message-ID: <20200109212842.GK3702@sirena.org.uk> References: <1575900490-74467-1-git-send-email-john.garry@huawei.com> <1575900490-74467-3-git-send-email-john.garry@huawei.com> <0dc5cb2e-b765-9e13-b05e-9e3c835c5985@huawei.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yiup30KVCQiHUZFC" Cc: marek.vasut@gmail.com, tudor.ambarus@microchip.com, linuxarm@huawei.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, xuejiancheng@hisilicon.com, fengsheng5@huawei.com, chenxiang66@hisilicon.com To: John Garry Return-path: Content-Disposition: inline In-Reply-To: <0dc5cb2e-b765-9e13-b05e-9e3c835c5985@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org --yiup30KVCQiHUZFC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 09, 2020 at 03:54:00PM +0000, John Garry wrote: > From checking acpi_spi_add_resource() or anywhere else, I cannot see how > SPI_RX_DUAL or the others are set for spi_device.mode. What am I missing? > Are these just not supported yet for ACPI? Or should the spi-nor code not be > relying on this since we should be able to get this info from the SPI NOR > part? I'm not aware of any work on integrating this sort of stuff into ACPI platforms so I think it's just not yet supported in ACPI. I'm not really sure what would be idiomatic for ACPI, figuring it out from what the part supports might well be idiomatic there though I don't know how common it is for people not to wire up all the data lines even if both controller and device support wider transfers. I've got a horrible feeling that the idiomatic thing is a combination of that and a bunch of per-device quirks. There may be a spec I'm not aware of though I'd be a bit surprised. --yiup30KVCQiHUZFC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl4XmwkACgkQJNaLcl1U h9DSmwf/cxqR58GjrThK9SdQjRi/lDgE2Zvu+klgcyq4qaE5CzctPqfdcJvyMn3D 8dnuZ0QZ/u4P/6nbc1FfGXfqeV7B0KeZ7yZbzklrjD1ehohvg3H46K52oVsVjF4H xsjPdJDNeTtFBIgHGy1M4AIYVC58nRYX/6S7qLRKdyE5OOL4uHv/ZXSzBfhh+XPe UtVTZNNfcXxdkWOTsmFo3qo0hnb8FxD/K0Rg++9C6XHLftNqmsXJcpzLaYKEBkor FuQEwWTfDc4x3bq3cjsBqEURrEBAhUSMwZlfwgBJgX4GZfgR7pBv1IDZvXCwff0W o8LOG/PgA593X83a55IjHs2w5oIGoQ== =Vjtj -----END PGP SIGNATURE----- --yiup30KVCQiHUZFC--