Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp20548rwb; Mon, 26 Sep 2022 08:47:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zHO8M0ARCfuI6MDpoF5CIZoHVMeNNE9VVm0RjTAaj8NvzpP5WGZPr956BQTvCeD4Ws6Nb X-Received: by 2002:a05:6a00:22cb:b0:543:7003:21a1 with SMTP id f11-20020a056a0022cb00b00543700321a1mr24378140pfj.3.1664207242348; Mon, 26 Sep 2022 08:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207242; cv=none; d=google.com; s=arc-20160816; b=Q6r6KUjEDSFQNiEMhlO35cjAmztDgQn1GEVjrlHYs0o1JafGXtvjBHtmZrYfCIxZbZ d0gT5coaYHUdcFvCxPnAq+7IwS4B5zYvYXS/aAVrgff3mlKK0hBdlMDSMPaZNgdlh7Pj sfLyULe1W4zxybFxMypZ3K8iC+D6eVWi4K/7K4+hZ26o0Mi5/kV9zxHir6v4xMaVwEkM OoEqOi8q4jtCfLRgxqDaPrFUlsuc2E/yawZpaaPYsI+jZjKhp8/+WDUZ6NMqhbkhLZEH NYhGPIftHseP1/xrDcb611QZYqe1bXyRGWLja83QT6eqUqVBVcz1B8dDbu0lpRXza1q6 rwtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z+SSPGyOZfEIh3tj+j1JJaoE55e3O7nhgeSNDbNps14=; b=aDInZmdygX+SR3qIixb9B8YeEhyzvaMeUBUNxHmNKCRYMAVE5AWmbottCXtp9uyO9U hYk1TsYFMzBG1jNe6DivtdCt+tX/Asc4aICIQvQdP+RJL1GXQ30CRLp6tiyVMiEBvPZp J++TgXbN3RvkD3oMSK0CIvfRb2lxVqE0yCay1Y1Kdhri8ZhoXKeo1M3ecc/dIEAm1mw4 kPCutD7zCcguyPeNWsa53JAs5Q73r/17Nqz1w5zZqKiFeyasAW4wZ+ej+yTWMXh2ml5m AT8PNmRVlpVOCT5SxU88C1DRE083ToSmyI8agazzJYvJX60q6FAHaqJ1wP+yOepqe93O cZTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=OkdZNGA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a170902e48d00b0017890fb8ce6si10282473ple.53.2022.09.26.08.47.10; Mon, 26 Sep 2022 08:47:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=OkdZNGA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235710AbiIZPJ7 (ORCPT + 99 others); Mon, 26 Sep 2022 11:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235661AbiIZPJY (ORCPT ); Mon, 26 Sep 2022 11:09:24 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 077A752FD2; Mon, 26 Sep 2022 06:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1664199754; x=1695735754; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z+SSPGyOZfEIh3tj+j1JJaoE55e3O7nhgeSNDbNps14=; b=OkdZNGA2/oB1hw2MdbaGHBmbpfLQMfiUyrWEN4GbzXnDCVfbYgghoL6X fN9wpT4eKK3LmY5vOFj+foCdwRkG9EXnNc6aBbP4Zyt47R1bnjP2lVqnV XN1qJpEubpjoVDrQuydluXzANv65pEMwaNQ/E3HT4CHlTmuQhv9ETgtDz QgmU86p8sU9WqXz7mBidoGxAtaNk/FLtNSRxrOCHoLjlwFx07gKfo7zem D8+PQnbxRYTT293XcLU+UGxu5tT3SvpTewy9SGUm+KFtNujDczHAOcpeN Qq9rKFjFDF26iHxmZEdEpDKd1EZP50bSWq5nWxKdKSHKP7N/IeBLEU1fO w==; Date: Mon, 26 Sep 2022 15:42:30 +0200 From: Vincent Whitchurch To: Mark Brown CC: , , , , , , , Subject: Re: [PATCH 4/4] spi: s3c64xx: Fix large transfers with DMA Message-ID: References: <20220916113951.228398-1-vincent.whitchurch@axis.com> <20220916113951.228398-5-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 19, 2022 at 03:38:29PM +0100, Mark Brown wrote: > On Fri, Sep 16, 2022 at 01:39:51PM +0200, Vincent Whitchurch wrote: > > The COUNT_VALUE in the PACKET_CNT register is 16-bit so the maximum > > value is 65535. Asking the driver to transfer a larger size currently > > leads to the DMA transfer timing out. Fix this by splitting the > > transfer as needed. > > The driver should just set max_transfer_size and let the core > handle this. Hmm, AFAICS, the core doesn't actually do anything with max_transfer_size? It's only used from spi-mem and a handful of other clients via spi_max_transfer_size().