From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1EBBC07E9D for ; Mon, 26 Sep 2022 15:09:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235866AbiIZPJ5 (ORCPT ); Mon, 26 Sep 2022 11:09:57 -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: Precedence: bulk List-ID: X-Mailing-List: linux-spi@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().