Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1962785rwl; Mon, 26 Dec 2022 07:09:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpCUEC2IDu56YniILMAF+fYoW0Y0iSzAkmGnXYYFRNAV+eeEnGUrqVQybI6pHmho7YUiuN X-Received: by 2002:a17:90b:3c3:b0:225:e9d9:63b2 with SMTP id go3-20020a17090b03c300b00225e9d963b2mr6827280pjb.42.1672067340947; Mon, 26 Dec 2022 07:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672067340; cv=none; d=google.com; s=arc-20160816; b=LObKGfNclo13svAt2SzNxsrIbUd8x6S26J5e+VcwA89dh+QZzwJzWxGgmBmDAANyse mp2F8RQsbU0+Q0sqTY7cBeT3TLtqq4566VXbGxSlg4CNNGhYX5Wj1PpZtKJG1xckZArF i9oiG/XUM1QVWyxwtNDLuZP6OgHGB7ZjZxt3QTT+wtFGo/9PG8DfR1ABC3w5ZqS06U+1 L7XcySvhpelKaNFp1n4bpk0YzOgARsHJHW4G4OWzmk3m+aNqQ4NR2hC2dnkYAO1WB+qd lxjbLDXSgQ3ryEaT1uXxkzArGek/jL3fPUbJQQ3qFFSs9/KJBr1mQSVNN3FpDJnquF0Q o+vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PRsHcDcAhulEDBHu1QmKsTvsX1CbYE23qmR25CBtKJ0=; b=mgjPiyArCn9Gy0+rvyIpD42TtRJK9ng4F/7g1GWRgZkLm426CrNxDa+tna/2az0Jx3 HSLuMmOvEnVXr7dm1ZJRWNecjaI4vx8Hk+ChTns93P5zQr8TZS2DEDT6dH6g2xuHOAkg JeHeNzTXMAPs1OYMBt8JCvM2us1BfH/WhhIuJG64MHKrhKOF3SoUhfrydEzlTq770SVP U4gb2545iZyORMWS9+hDzN4kGYmSIFISVYxFPsaj8s5cZ65ranW75bfiGKtXVBl5D440 8E8vYjbfchmu2d+gNTEiKEyM3o+uknOQHrdXjZ3Mh6jWwk10hcfcaur0fLiQKFnD6pbf 18Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=dEGP2qcL; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r207-20020a632bd8000000b004787df29e4fsi11869404pgr.515.2022.12.26.07.08.52; Mon, 26 Dec 2022 07:09:00 -0800 (PST) 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=fail header.i=@metrotek.ru header.s=mail header.b=dEGP2qcL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbiLZOhR (ORCPT + 66 others); Mon, 26 Dec 2022 09:37:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232047AbiLZO3K (ORCPT ); Mon, 26 Dec 2022 09:29:10 -0500 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F7C464EA; Mon, 26 Dec 2022 06:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding; bh=rxYaNlTu1sVG3D7zPXhKMJeE1kMst4HG0mdqpjHL0Ig=; b=dEGP2qcLdJWfRJWDi6J+pPJjcqcCtx9JKXG1ryTG+VK5FB4/TxbA4l59PK8k+hNJNzYX/Fa1sCCm2 b+Ye1NgLDruzIRcDOOk1O4ky2YSoBn7oduzkfKE1JMyMG0mrC3N59z2IjdYiCOGQpq6P+QewQXa0nP aX5VcR36UB2XkrPcUal2YykMsJrlsS7dv91BjeDN9ydBcfaTVP2hs2qzP9v+7E3QCUd3Q1DdqhmbRi S2Ct4LtNN77FHY7qstHOQPqTOtvrh0B/jJiu1uPTG9gRYQ5iAfVRu+EizkjNY6YUIDYVkBw/OKNsN/ 8eYNu2OeyULQeRqEWs8csNm6A7HgUTw== X-Kerio-Anti-Spam: Build: [Engines: 2.16.5.1460, Stamp: 3], Multi: [Enabled, t: (0.000013,0.009504)], BW: [Enabled, t: (0.000024,0.000002)], RTDA: [Enabled, t: (0.083402), Hit: No, Details: v2.42.0; Id: 15.52k1a7.1gl7d6qee.1g; mclb], total: 0(700) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: X-Footer: bWV0cm90ZWsucnU= Received: from localhost.localdomain ([78.37.162.181]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Mon, 26 Dec 2022 17:25:55 +0300 From: Ivan Bornyakov To: Conor Dooley , Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix Cc: Ivan Bornyakov , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, system@metrotek.ru Subject: [PATCH v2 0/3] Reliability improvements for Microchip MPF FPGA manager Date: Mon, 26 Dec 2022 17:23:23 +0300 Message-Id: <20221226142326.8111-1-i.bornyakov@metrotek.ru> X-Mailer: git-send-email 2.38.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 A couple of reliability improvements for Microchip Polarfire FPGA manager: * move SPI I/O buffers out of stack * rewrite status polling routine in a time measurable way Also improve mpf_ops_write() code readability by separating single data frame writing routine. ChangeLog: v1: [https://lore.kernel.org/linux-fpga/20221223123854.8023-1-i.bornyakov@metrotek.ru/] v2: * split into 3 distinct patches Ivan Bornyakov (3): fpga: microchip-spi: move SPI I/O buffers out of stack fpga: microchip-spi: rewrite status polling in a time measurable way fpga: microchip-spi: separate data frame write routine drivers/fpga/microchip-spi.c | 138 ++++++++++++++++++----------------- 1 file changed, 73 insertions(+), 65 deletions(-) -- 2.38.2