Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp705345lqp; Wed, 12 Jun 2024 13:48:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYHtamy0V163czdq4ixbLYTGWRt2nmuBzMg8euZGtJpFAMYc+jZeyWIpa+TDb0aP5uAybgf+Mf3mNCX89qNcBmvER+yvb8HrBBkZI0+Q== X-Google-Smtp-Source: AGHT+IFsMOFfdnRg+20H5gifpxr9UV7fIUNgOiPSb7nqMhgDIoauEM1cQfX+gO/yCmZlA47lZgNH X-Received: by 2002:a05:6a20:2449:b0:1b5:581e:a065 with SMTP id adf61e73a8af0-1b8a9c761f4mr3736821637.39.1718225309235; Wed, 12 Jun 2024 13:48:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718225309; cv=pass; d=google.com; s=arc-20160816; b=rW24CUyk39ghVqFPHRVaImkFr4pLZYynHm3mf/NBflscH9Z5V249abJpBpPF8uCOZU wcUGOa+NGrHN44hObY37jhWl0tIzdu3g7bM1r+54Nm62lqHkLmFKCIfDzoQZ/jWCHIOu EUi7h6/bmy7Su/4aTpwGOwwTT610vHZ5kXET3sxV+CviROiaG5gtitJdvz1OKpq+hpU5 jBCHXMauzNY5E8pyleFiVYAKdC6P5hMhi2LOUUXSqNf0aJW0NnX94uizPdLXfPB5j6L1 MEXO9WD/VttVpgPbZKrlRZ5UXID7HhmAM/L4794K8vpm3A3/knhHr1mGkNPwP6BoIqx4 CrHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mTCszA7BRf+4zTXj8w8sjK9nPr2dT2774L0hmv8q4A8=; fh=8IDNI5DjJNxR12zonzTBnFyNWxqJ/cmZxctBlUJnE0g=; b=kAIlpjRbC7jkG+tljx4U0HbAYOLlMdjUd+6J2m9Qay38KahVDl1EQEMf8rp9uxEM6D k9uLAKNI3J/nEe0nfNcagOyzhvDmKScU6+P7zTwdv03KUfL2cjdGv+ZvYyGfOCdweoaE O6qG01fzx/lSZ3fVRaK2Kh8YzMSC+4Ecm7ZoiVYetTPshoAtR2gZb34kpB82ufsneGSL Gu4akk0XPiYMEq85m3iOXGgLcOHgdrNJFAmc5Cwk4ek61FVux73Jz1UHTigr0LnK4pI1 yTMB6kuuTELdssT9IHqOLHy39m+TrT82iQhYohhT0ELUlXq7+/dZd6pgx93HdM8vRr/O L2vQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UgrkWcnv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70434a5671csi7209155b3a.400.2024.06.12.13.48.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 13:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UgrkWcnv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D94B32844D5 for ; Wed, 12 Jun 2024 20:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8C5384FDF; Wed, 12 Jun 2024 20:48:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UgrkWcnv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D93B843144; Wed, 12 Jun 2024 20:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718225301; cv=none; b=TOqs6bUEfETx+8wVTv8QscxFkNEA82Ft74MGJJFzd0P0F5EZizhRqNEi3vB0oZCbje5bV0opedYItRGGRKw+OpoAVQ4UDq49L2cQoC2+s0i9djNUlLaxoIv2XpoDIjIIShs+jQr2t3lossyU9jKF1NkdaImfSqKLr5If/fAPfjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718225301; c=relaxed/simple; bh=MfGZFVPsFpf3+XCOO+MmYqSxn4sBXKGuxmCFvCgEDG0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cnLCAuYMSI6dKwKzBQTbHkqvQGF/yu6SxFkhFRwxKojg2jDB1Fq+L82Sb+cS69Wy6XBEIrqcpOAauFdEYbyhEMha2IAPtg5sExf7lJzajGeBACemBU7f5S11VmKTl+El4E+34h/r5k/iqvOsRmJPPRaP7yM4Fzihy12e7esKBEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UgrkWcnv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3126C116B1; Wed, 12 Jun 2024 20:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718225300; bh=MfGZFVPsFpf3+XCOO+MmYqSxn4sBXKGuxmCFvCgEDG0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UgrkWcnvbcG+QCx5ZOYMW8duHqfdUz0RMpJBQxsDa3J/CS1kht88B60gsxIsW3A3k KnKojcgQJMQLWvYpbWqsNcB/2ka8srXcU1BLFjr09Nryldm3DjaupHRjCqZVNyIHpE +5GZyxy114uCqtB20n0g8S+RjZ0cZWzg9/YS60GaaDp5++zq5hCQUyKCveUWOEV9z8 5OyWEQMvUHS9Q2LjOU8M3PZZbUR8xk4m3L++O8kNBUodevnuI4JLumx2y+jjfDJlbS XowRSqyOqDISCAQuWAdxBCSyZ2O0Lfx/ujN6Q0bWQegM8QzewB9TenZTRFMF2+iV5i v6uNYH53jOokw== Date: Wed, 12 Jun 2024 21:48:16 +0100 From: Conor Dooley To: Mark Brown Cc: linux-mmc@vger.kernel.org, Conor Dooley , Ulf Hansson , cyril.jean@microchip.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-spi@vger.kernel.org Subject: Re: [RFC v1 2/3] spi: microchip-core-qspi: Add regular transfers Message-ID: <20240612-spending-stalling-62070dbbcf3d@spud> References: <20240612-brigade-shell-1f626e7e592f@spud> <20240612-uphold-dinner-a47b4c44be18@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="biSQJgC0nBJ0ng09" Content-Disposition: inline In-Reply-To: --biSQJgC0nBJ0ng09 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2024 at 05:40:39PM +0100, Mark Brown wrote: > On Wed, Jun 12, 2024 at 04:48:32PM +0100, Conor Dooley wrote: >=20 > > + //TODO: questionable robustness if both cs_change and cs_off toggle > > + list_for_each_entry(t, &m->transfers, transfer_list) { > > + //cs_change being set means we need to re-enable >=20 > Is it not possible to implement prepare_message() and transfer_one() > rather than open coding all this? If I can, I will. I already found one issue with the cs toggling in the code Cyril gave me and I need to figure out why there's a udelay(750) required later on in the function anyway! --biSQJgC0nBJ0ng09 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmoJkAAKCRB4tDGHoIJi 0oIOAQCI5MxS5rORWIKfQ0df26eMH0LZJpvdduLKgF9ND2AMjwEAjwqa72ze/NHD y6U4StWSZ8PThzRWia2S0or0/neQvA4= =JRBj -----END PGP SIGNATURE----- --biSQJgC0nBJ0ng09--