From patchwork Sat Nov 21 23:11:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7675041 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BC2119F65E for ; Sat, 21 Nov 2015 23:12:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09CA5206B8 for ; Sat, 21 Nov 2015 23:12:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18FF3206BE for ; Sat, 21 Nov 2015 23:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759544AbbKUXMu (ORCPT ); Sat, 21 Nov 2015 18:12:50 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:33302 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754781AbbKUXMu (ORCPT ); Sat, 21 Nov 2015 18:12:50 -0500 Received: by wmec201 with SMTP id c201so115968139wme.0 for ; Sat, 21 Nov 2015 15:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=hHKE7cgIXh+P9qIqJB6+0InDgJDO8FmlW2Sf5ZU1tS8=; b=XxO40yYZ1gXC6P1e6tYTNzFQuU6VckyS+sM65YoIJakZ6egaG+CQ3SQQNbiNJnOsFw 5eFB435YSKadO9vecSx8vilcQqelw0+qwmcHbXKF5CQiL7ukX249yqvH0Y8pHUWLvmtA BGk9BsBsJvurg0RC2gVlhb8p9NTax6Opnp8jfX7aQ3VU0/awZ69k483B8cwV0Hj+uD2l +6K9LP1wI3W+LyjXrktvaKcnffUFQdiLOPuZDkGRft5fudTkRbBafVdueS3Iw+SvqIn7 2r8OcZXxdzNIWnXhMG2ghSTy3RXj1WkWr7MC+U3ca7KtyX6h1uo4IQAjmWFv7lzpYaFc afKQ== X-Received: by 10.194.23.33 with SMTP id j1mr22228780wjf.4.1448147569078; Sat, 21 Nov 2015 15:12:49 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:681b:1517:83c2:9e4a? (p200300625F55BA00681B151783C29E4A.dip0.t-ipconnect.de. [2003:62:5f55:ba00:681b:1517:83c2:9e4a]) by smtp.googlemail.com with ESMTPSA id cv3sm6119079wjc.20.2015.11.21.15.12.48 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Nov 2015 15:12:48 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 3/3] spi: fsl-espi: make use of max_msg_size in spi_master to handle HW restrictions To: Mark Brown , Brian Norris References: <564CEB61.2000601@gmail.com> <20151118215755.GL31303@sirena.org.uk> <564D0098.4030107@gmail.com> <20151119114057.GN31303@sirena.org.uk> <20151119171538.GO31303@sirena.org.uk> <9CDADBED-FD18-4635-82A9-5AB14C9ABCAE@sperl.org> <20151120120502.GT31303@sirena.org.uk> <08871ECD-52DF-4CBF-AF3D-4C3A442C008A@sperl.org> <20151121134946.GI26072@sirena.org.uk> <56507B3B.4080608@gmail.com> Cc: Michal Suchanek , Martin Sperl , MTD Maling List , "linux-spi@vger.kernel.org" Message-ID: <5650FA06.40607@gmail.com> Date: Sun, 22 Nov 2015 00:11:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Propagate the 64K message size limitation allowing client drivers to deal properly with this limitation. Signed-off-by: Heiner Kallweit --- drivers/spi/spi-fsl-espi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index c27124a..773bbab 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -670,6 +670,7 @@ static struct spi_master * fsl_espi_probe(struct device *dev, master->cleanup = fsl_espi_cleanup; master->transfer_one_message = fsl_espi_do_one_msg; master->auto_runtime_pm = true; + master->max_msg_size = SPCOM_TRANLEN_MAX; mpc8xxx_spi = spi_master_get_devdata(master);