Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50493 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753185AbdKFTwP (ORCPT ); Mon, 6 Nov 2017 14:52:15 -0500 Message-ID: <1509997924.2748.118.camel@decadent.org.uk> Subject: Re: [PATCH 3.16-stable 12/14] wlcore: fix 64K page support From: Ben Hutchings To: Arnd Bergmann Cc: stable@vger.kernel.org Date: Mon, 06 Nov 2017 19:52:04 +0000 In-Reply-To: <20170509100502.1358298-13-arnd@arndb.de> References: <20170509100502.1358298-1-arnd@arndb.de> <20170509100502.1358298-13-arnd@arndb.de> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-njpyirJofLFdjVvj3+va" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-njpyirJofLFdjVvj3+va Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2017-05-09 at 12:05 +0200, Arnd Bergmann wrote: > In the stable linux-3.16 branch, I ran into a warning in the > wlcore driver: >=20 > drivers/net/wireless/ti/wlcore/spi.c: In function 'wl12xx_spi_raw_write': > drivers/net/wireless/ti/wlcore/spi.c:315:1: error: the frame size of 1284= 8 bytes is larger than 2048 bytes [-Werror=3Dframe-larger-than=3D] >=20 > Newer kernels no longer show the warning, but the bug is still there, > as the allocation is based on the CPU page size rather than the > actual capabilities of the hardware. >=20 > This replaces the PAGE_SIZE macro with the SZ_4K macro, i.e. 4096 bytes > per buffer. I replaced this with the upstream version (commit 4a4274bf2dbbd1c7a45be0c89a1687c9d2eef4a0). Ben. > Cc: stable@vger.kernel.org > Signed-off-by: Arnd Bergmann > --- > drivers/net/wireless/ti/wlcore/spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/wireless/ti/wlcore/spi.c b/drivers/net/wireless/= ti/wlcore/spi.c > index a460fe669443..48559a5baffa 100644 > --- a/drivers/net/wireless/ti/wlcore/spi.c > +++ b/drivers/net/wireless/ti/wlcore/spi.c > @@ -71,7 +71,7 @@ > * only support SPI for 12xx - this code should be reworked when 18xx > * support is introduced > */ > -#define SPI_AGGR_BUFFER_SIZE (4 * PAGE_SIZE) > +#define SPI_AGGR_BUFFER_SIZE (4 * SZ_4K) > =20 > /* Maximum number of SPI write chunks */ > #define WSPI_MAX_NUM_OF_CHUNKS \ --=20 Ben Hutchings It is a miracle that curiosity survives formal education. - Albert Einstein --=-njpyirJofLFdjVvj3+va Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAloAvWQACgkQ57/I7JWG EQnOaBAAg0pFg3D178++LEOs7mFn4oEQzw3CVP70tHngRzgLf0sqA7Kajr4b/R8G AoRqJZNu5vAMhOdS0ehgiXDEnIpgXO/R8OzZcl9ijoGJqmu6QBj6Xr3AbytuDNzi RYbFMXIjwAesJ4KqWIGXzTjQ45C+mUabFAZatQhOXTD7eD6Mrr7t3TPU2oBsCG3u gr69B8P8jIcaNkmmO6eGLLxcn3p791azpAL6rhIzg7YfEy+A/JgB4qXULmMoID7b zrfym9492QnY8Ws1BsWvk6OTZD7IUjxIB6Ne7KgN7m+tz02dFDJBCwnDQcQqib/C zdTdWVpapQ+t5L9Sb9y6i8lJ4sn/+RFIfW5mvJZTdMML3IQm6GCBz+OljdS1ysub EtVMntaVmUUNcq9Z7rdLwn0YcaTgYpUSK69g0s2uyBCZOvSKPTgR76CVv6k6Zz9P rOSO6tpJ2rgv2SF+RwCP98hobS8BgBI7Z7IjhvjzP2xK84Sw66PnNDgVABt7LsIH 83ZM1zk9tuh7gI1VnS35o1qddnm3nXE+ryHfBgQfTaAcK3zETkT9GGDa0uhZcjkW znVKDUme4b1kmI84eg8LEbUKzJqZmlmluEeY2Z9xNgTHwbxq3MrnBz/GtoOC+sqK Sj1ybWrwMrhtWztocCPwKD8OLEypJFGnxUWMhUuY1BI5T3jufmA= =r94o -----END PGP SIGNATURE----- --=-njpyirJofLFdjVvj3+va--