Received: by 10.223.185.116 with SMTP id b49csp3867015wrg; Tue, 6 Mar 2018 06:21:51 -0800 (PST) X-Google-Smtp-Source: AG47ELsHgja4Zq7RuX60IdqQrQVxOBqO1YLz9CQKK9trsCjhPWdY1s9d/ZmJhlltKBIpManUPoi5 X-Received: by 10.98.48.195 with SMTP id w186mr11029665pfw.174.1520346110919; Tue, 06 Mar 2018 06:21:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520346110; cv=none; d=google.com; s=arc-20160816; b=f9Hs2/l5eWFlNJUI3U8oChwftyOmRHsS2RT3/jWNGaTonA72d6MYiRRIOBU1iUolF1 bYucrJJ9SXnRYvnnVDXD7bLuHipnctH8US+1eEG9R9EFvcgm8MRGAtZtvz4CtvLD6w/L Iinu05O7FJRIEpOef38AMry175U7XFDcmTiLG8Yb29UIk4aGc5w43uEfdgTp76nC8iJf 1iTiuFCrP5/XiiaeeEUL8ouuJyZ0soG5jzkLrWWvx3/lhgKZVDL6kyEdRgwlwlqoEpM+ OWgW1ymZQ7ALnquT9Wgvpd5AZnYetKn/V8ssk+MPCz1kTE80cG6C/A+4sogIAEu7hM4c DcNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=6WHs0U0t1JzSW1p0l29MyjEV29dBvELf0h8aMaKg2MM=; b=B/DGyr27rMH0EOD4LQD8f4ren//PcsQM2on0gI7Hd0rmxKQ5C/abLHFY15CgcD9bQy 2K1nuUnD6FD88Du+dEd6dcVpPxwxAiIdjDIj2KD+JzXaNshihHV4RefurG9q7nnlsRci Isjfsj8cWCRa2EuW57Co1HHXlZXtqNJTzhjphlMxXF74LxO9Nd6cD33PmMHxczyIeGkk Ua2zgag8ccH75xZ9JA3ssx6/WZw+B94KobJg7XV7aB1QuE/FPJ/VQV7UWLsJa8Np6v+y HKjmkzjLXMR1rtrpgEHqY4q/N/0dqH9Q9PNYIqAtQUoyZryEFBv4JJwWn1nn3QA4VeID wW1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=pN50oTVT; 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 83si9817768pge.817.2018.03.06.06.21.36; Tue, 06 Mar 2018 06:21:50 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=pN50oTVT; 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 S1753555AbeCFOUQ (ORCPT + 99 others); Tue, 6 Mar 2018 09:20:16 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:41162 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753075AbeCFOUO (ORCPT ); Tue, 6 Mar 2018 09:20:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6WHs0U0t1JzSW1p0l29MyjEV29dBvELf0h8aMaKg2MM=; b=pN50oTVTlEfHRZEzesdEj2WRr 7H4ZGVZip720KMxKZP7KNh5CWbe/5+UR/vtZuePmH3VCy+mQQdsAv6HjevpecJBOC7BZWjdFgVBY4 +ORLnETDPpFQ/+IBb9s8AoSVrIvGb+KG9ZCF3mac6Jm9tEmO3Vd0vYQLDH01X16VA6SO4=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1etDRs-0007Hx-Vu; Tue, 06 Mar 2018 14:20:13 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1etDRs-00061j-CZ; Tue, 06 Mar 2018 14:20:12 +0000 Date: Tue, 6 Mar 2018 14:20:12 +0000 From: Mark Brown To: Jonas Gorski Cc: Sasha Levin , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH AUTOSEL for 4.9 002/219] spi/bcm63xx: make spi subsystem aware of message size limits Message-ID: <20180306142012.GB13586@sirena.org.uk> References: <20180303222716.26640-1-alexander.levin@microsoft.com> <20180303222716.26640-2-alexander.levin@microsoft.com> <20180305102310.GC8588@sirena.org.uk> <20180305200744.afw64js6wnmyfqrb@sasha-lappy> <20180305203533.GP8588@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: X-Cookie: DYSLEXICS OF THE WORLD, UNTIE! User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 06, 2018 at 02:42:43PM +0100, Jonas Gorski wrote: > On 5 March 2018 at 21:35, Mark Brown wrote: > > It's exposing more capability information but it's in the "how did this > > ever work without the fix" range, and I'd worry that this might cause us > > to do something like start exercising handling code in client drivers > > that had never been tested. Not that I can immediately see any client > > drivers in mainline that actually pay attention... :/ > I would assume that most spi client drivers use short messages, so > they aren't affected unless the max message size is really short. > m25p80 on the other hand will do arbitrarily large transfers/reads, so > there it was supported first. There's a bunch of SPI drivers that do firmware downloads which I'd expect to be affected, the limit the device has is tiny so it's relatively easy to bump into it. It's very rare for devices to be so limited so unfortunately client drivers don't generally check though. --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlqeo5sACgkQJNaLcl1U h9AQlAf+PKFnqNyb0gydb+DCmkATY/te2KH/VI8Vgq9KpYSJpDIlHPvRjq0PC6LZ WFxb2+swqs0nOo6zDvMulFnxGt4oP5DimepjOm8ttZj54Htn8vUE+A/p3u6bD9fm 7u9X/O/RmtWDhwuANqxrjd4WAKSYv291ImqfOqSZ4D17PxuPZz9PMvxKstq/kIyD QhqBxiBey/6wMTLatm4qdmbqoKVn5RdOdWZN7w12w6YBb41H95VL4q/AHFthartp uocMEmMJf5omrqueS5QMzIDiS2haHE0Ldnuf1Q2rLaSM/+rkgICe5Ii7BOAvAH76 ORHfnPgSOlEBM63AyBr+rW65Bz24eg== =i/6N -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--