From patchwork Tue Dec 1 18:56:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7739821 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9DC60BEEE1 for ; Tue, 1 Dec 2015 18:57:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC4B22067A for ; Tue, 1 Dec 2015 18:57:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A7A7720678 for ; Tue, 1 Dec 2015 18:57:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756036AbbLAS5n (ORCPT ); Tue, 1 Dec 2015 13:57:43 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34812 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756740AbbLAS5m (ORCPT ); Tue, 1 Dec 2015 13:57:42 -0500 Received: by wmvv187 with SMTP id v187so221641370wmv.1 for ; Tue, 01 Dec 2015 10:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=hHKE7cgIXh+P9qIqJB6+0InDgJDO8FmlW2Sf5ZU1tS8=; b=a7bKBtVh4goPOxXERm4mAdHFgyeKYVimexivhbKwhEcWmeOhHN+2a+XDOJzZM8AWpi o3MPzq3ujiBBUISDa3QO1Ny4jf2k3g1JpJHComTgj5kfd5LXsh2Jc0e8yxJ9X3jtsNU9 UhfTvyeHf+/+KUBn9bbJqvckpP5+IlnRwHCr7lvw0lqG+tS3A3jTZtnHOZevUPSXRSZv e6LIa9S6cw5cgLqoxerdkRq8EfB3h0or5P22Ae4lYUStuz+m6kQtZloT56G/oU8WBZvs eSzpQbNJqD3FYgNcCjxCGzlAKa2lMtWm7yVSIWV1PpP2q+trxXfBso+QsAt3K+S4Pp38 HvHA== X-Received: by 10.194.204.202 with SMTP id la10mr93151911wjc.81.1448996261599; Tue, 01 Dec 2015 10:57:41 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:949c:d06:4422:d8e5? (p200300625F55BA00949C0D064422D8E5.dip0.t-ipconnect.de. [2003:62:5f55:ba00:949c:d06:4422:d8e5]) by smtp.googlemail.com with ESMTPSA id t64sm27521130wmf.23.2015.12.01.10.57.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Dec 2015 10:57:41 -0800 (PST) To: Mark Brown Cc: "linux-spi@vger.kernel.org" From: Heiner Kallweit Subject: [PATCH 2/2] spi: fsl-espi: make use of max_msg_size in spi_master to handle HW restrictions Message-ID: <565DED63.4000702@gmail.com> Date: Tue, 1 Dec 2015 19:56:35 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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);