From patchwork Mon Nov 30 20:25:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7729391 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 3BBD4BEEE1 for ; Mon, 30 Nov 2015 20:26:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7BB3F20574 for ; Mon, 30 Nov 2015 20:26:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A718C205B1 for ; Mon, 30 Nov 2015 20:26:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752619AbbK3U0G (ORCPT ); Mon, 30 Nov 2015 15:26:06 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37131 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752459AbbK3U0F (ORCPT ); Mon, 30 Nov 2015 15:26:05 -0500 Received: by wmww144 with SMTP id w144so153801813wmw.0 for ; Mon, 30 Nov 2015 12:26:04 -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=NDKXGkt0WUhrsO+MdQSWLhX4K/0HhBsGBwlJGhXgM+D+wYCPZryK32Fut7oK0arfmb 3DkYCRE+Q0YTdEnhnt26sbUjjDMWcFR9gDihoI6+lO+TJ8QWlm4i24s1G2xbf1LjbAoE OYwZXtl4vQhRn4VUoSh66KmkFNqGIOWiQ2vaexylGUDzDLR+shwm4sLE9GX7h7eHNmjy VEFdydC/HLRGpDoTuwohcWmFnTDotu5zavAVA1trlNt9eM4Pt4UvQDAQUEINhGzF0QkN vypUT+Qk3TQ/uCHEvjk68DRdBPpLmdVvMUWtfA1AH2Q8B5Ql568OV6N+SWb0QmTFZ7iH dOsA== X-Received: by 10.195.13.201 with SMTP id fa9mr32220824wjd.68.1448915164514; Mon, 30 Nov 2015 12:26:04 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:f031:46ac:9345:ebe8? (p200300625F55BA00F03146AC9345EBE8.dip0.t-ipconnect.de. [2003:62:5f55:ba00:f031:46ac:9345:ebe8]) by smtp.googlemail.com with ESMTPSA id h5sm20631050wjz.21.2015.11.30.12.26.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Nov 2015 12:26:03 -0800 (PST) From: Heiner Kallweit Subject: [PATCH resubmit 2/2] 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: <565CB0C0.9060104@gmail.com> Date: Mon, 30 Nov 2015 21:25:36 +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=-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);