Received: by 10.223.185.116 with SMTP id b49csp3826766wrg; Tue, 6 Mar 2018 05:44:18 -0800 (PST) X-Google-Smtp-Source: AG47ELty1BKYe295+ueYhjt4SwvQv2gXyYEnch3Ee36VK2iW4K8mc7KhFD9wmxg3ds6shHyU1oNc X-Received: by 10.99.135.65 with SMTP id i62mr15156962pge.331.1520343858153; Tue, 06 Mar 2018 05:44:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520343858; cv=none; d=google.com; s=arc-20160816; b=f4Es2le5R/29Opsij5S60fUcvmzTEax/22Et5KI6wXs7OccUzNi3HmlnW1jan7jDGD WsoVicYblvx+eSUCKRGh9wqslaxMaho9VaHpFCOVX4wWWuzAJoS1flwVHHmsrbMW9tVU vfoKsJzsSV1GSOWOISVouD7UEo5TMlL8nhzLdRJYEkQ2vgPFTEpZzbquiVuoYEFyGawT XZWGr4hBM0RrtCTGtrjOG7/2buhjWf9rnahIMAsZFHA2k2AT09BWHg1sT0d6iTkeW5bJ 177+XjkzYckHsGU1g0mvRTRsf5RjlDJGocJGZamt+nldV6MQyJDlKAj5+6MXQ2rYrfBq thXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=eM8BHotGNza2PPF+scPVaZxypmaxM9rkgAVbapT78xQ=; b=0d86wJSu8EiYEsvwRiXjC2PYHDbzAcZs/uEUzZ77iIFaCTzTrg+zercv212Q2TvWnT GPPx3AJllqAdHzjLK1K+gSEQ0/+Mphz3KutusHiT13xCN07MfzlFT39iYy2gnhy9tOiO aO/JEF2IlxButcBt7a5W771bsFJWKV6toD3OO9k9x2gY0JZdOOWxK3RkuLNkhW3pGHtQ bwyNQhucTYY0w4lEqSDRzP1lPZMFz5w3V32BRO1m1rlNkO6xc7BKywCNxKuV1obmx7nV c1kLjzCnn56+A7ut0bhA/P4TKQSTlxm7iRdXIM4iSQnEUL6aGX7AK+Vt9XfAXuvx72nc gCXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A6iNQIAN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si9803689pgn.429.2018.03.06.05.44.03; Tue, 06 Mar 2018 05:44:18 -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=pass header.i=@gmail.com header.s=20161025 header.b=A6iNQIAN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753553AbeCFNnG (ORCPT + 99 others); Tue, 6 Mar 2018 08:43:06 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:36523 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbeCFNnE (ORCPT ); Tue, 6 Mar 2018 08:43:04 -0500 Received: by mail-ua0-f193.google.com with SMTP id k7so5586893uaa.3; Tue, 06 Mar 2018 05:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eM8BHotGNza2PPF+scPVaZxypmaxM9rkgAVbapT78xQ=; b=A6iNQIANcTSF/dE9201ZTZYQKEj4aBuUC1Lwuohgy9zNcsi/BJOEd/t3VfM6CXF5iR Uh0XTEKfH5shoTMZz5FAArv+gbAARh8IPNq7H3Y+TCVK5lYkqfjpguIQbhxmjm7mV9bI Igjl+PjYcNkRd5Or9yqxdAmfu6kzKLU9o2q5K0n0NP602K8KGfVZ4fY2bkySRyTzm8C8 /oQnnNu3Zm40t2om9dphNScuuNu3pFE+Irl3TSgO4YCEWMrU9nU8LTgufclLZuxM9jXi R2KxnguCjdKvP/fIrmcE6gfngKWo3YdtRQFYsd/jMqekRt/HAkzhsYjB7CY+EMgaQakn ni/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eM8BHotGNza2PPF+scPVaZxypmaxM9rkgAVbapT78xQ=; b=ilzPwHkIECt9F0FjFlhMwGkJ8Y0JcorEUdt4LhIATJGrxzBUKTunHmsCxKoifwKPjt LtxZm4chawv+/AYcdp/xR4vYDoIwxYr6gHV1c1qoDHf+XCkQxL/6vSSw0kDqeiIG9JLl zvU7v3tS0q/B7gtFdu0l+3k7GEDCpNcZBK1/45DnCXE0hYWG+2gjaOQB4VB3L3sCwKe+ fgl18q8qpQQq8wDeivGdPkCR1rDfanxZKlfathpDzEiK9fQbV7u+y9fnB1WUNAMjQYO5 L7FW5c9J1qZoe8AfCJDk0epDoTctOOBBdh5IDXO9ZmP2xSp78TzUf50uey/TJp83ZZp0 dy0A== X-Gm-Message-State: APf1xPDdmwqqeJT1h36QwzKf3VuTivUM9s6NWA/nVftC0g48Wpx0lmtM QV41xXS6fgoWkCUsjWW+y0AWnnfHrUUz0lDi9Ms= X-Received: by 10.176.76.31 with SMTP id l31mr12856643uaf.199.1520343783711; Tue, 06 Mar 2018 05:43:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.81.166 with HTTP; Tue, 6 Mar 2018 05:42:43 -0800 (PST) In-Reply-To: <20180305203533.GP8588@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> From: Jonas Gorski Date: Tue, 6 Mar 2018 14:42:43 +0100 Message-ID: Subject: Re: [PATCH AUTOSEL for 4.9 002/219] spi/bcm63xx: make spi subsystem aware of message size limits To: Mark Brown Cc: Sasha Levin , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5 March 2018 at 21:35, Mark Brown wrote: > On Mon, Mar 05, 2018 at 08:07:46PM +0000, Sasha Levin wrote: >> On Mon, Mar 05, 2018 at 10:23:10AM +0000, Mark Brown wrote: >> >On Sat, Mar 03, 2018 at 10:27:56PM +0000, Sasha Levin wrote: > >> >> The bcm63xx SPI controller does not allow manual control of the CS >> >> lines and will toggle it automatically before and after sending data, >> >> so we are limited to messages that fit in the FIFO buffer. Since the CS >> >> lines aren't available as GPIOs either, we will need to make slave >> >> drivers aware of this limitation so they can handle them accordingly. > >> >This seems really aggressive for stable... > >> Why so? > > 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. m25p80 supports max_transfer_size since 4,9, and max_message_size since 4.11 with commit 9e276de6a367cde07c1a63522152985d4e5cca8b. So that one would need to be backported as well for the max_message_size being actually meaningful. tinydrm-helpers also observes max_transfers_size since 4.11 with commit 9f69eb5c36a644571cca6b2f8dc5f6a7cba04a8b where it was added, but since this is a larger commit and not just a "bugfix" one, this doesn't seem like a candidate for backporting. Regards Jonas