From mboxrd@z Thu Jan 1 00:00:00 1970 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 33E4D3911CE for ; Fri, 12 Jun 2026 17:17:36 +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=1781284656; cv=none; b=UGfFSWZ8e8otc9ogKD7JOL8Oi+fUwnWwRzz7dKS56uX4R7r8SPQ0oDYEnaU1pOWGrAoTrvEbEvWWtqQvP+XzCMBfH0zsXlgqHolA2SgZ4TNe0I5dSxrYuZK+XgA/gwBFJ5EbwF5Na2CPO0HXxrGOwSxwOWzjqSUE9jv/BDErVuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781284656; c=relaxed/simple; bh=ASg6th/Ywmh/h86ebbxcUhuLfc87yXzCgfN5EC0OsO8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=nxqM1zY3xkSYsZxCeqmEVYGpTVTU+ukB0LnXHbGLaMyp356mzY+J2pge64G3utASo+kR2GrLNBGE5UMUWHPRXveV9LScwz4LW+M+EIoDJGsGsNeKKzSFHouvrx7dZ4HFFIF2OUKbxE3/fU0CEjSY4QHgCLSm0noBNO+8y1hswhY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JFsoQ2pP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JFsoQ2pP" Received: by smtp.kernel.org (Postfix) with ESMTPS id D5B10C2BCC7; Fri, 12 Jun 2026 17:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1781284655; bh=ASg6th/Ywmh/h86ebbxcUhuLfc87yXzCgfN5EC0OsO8=; h=From:Subject:Date:To:Cc:Reply-To:From; b=JFsoQ2pP0uFB/bFTqDn57k1zqF7cf2M3k+YjLhW0QjBZenlUyA7CL3zRwCEONukoQ jp/tpEPq+nXf6b8co/NmAq4KvctppX8ToDVXqIhfBhUPaIMDizJosbcEtYeVqpy2x7 S3shx3snBSAF4lG3dSRNo+IC/b39PzqSKxrQ585/ySB91M0DqwVpXYl6melnfDcS7v lbfNiyenIL+0nAWbjwKDBuJ/Un6CaUtbbDPWg8XkST7evEXA0s3WXpwGwZ18GFpn/Y rVT8o6Pk5Kldlh1eU1flmvmNudBfQmTk0zFceRb+QXdDQkxJ3Qm6h98g8LHWZdspxW xQruwPpt71CPA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA644CD8CA8; Fri, 12 Jun 2026 17:17:35 +0000 (UTC) From: Alberto Ruiz via B4 Relay Subject: [PATCH 0/4] drm/solomon: batch command sequences for SSD130x/132x/133x init Date: Fri, 12 Jun 2026 18:17:15 +0100 Message-Id: <20260612-ssd-batchcmd-v1-0-c61e5f7c24bc@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDM0Mj3eLiFN2kxJLkjOTcFF1j0zTzpESLZMNUiyQloJaCotS0zAqwcdG xEH5xaVJWanIJyAyl2loAltat13AAAAA= X-Change-ID: 20260612-ssd-batchcmd-35f7ba8c1e8b To: Javier Martinez Canillas , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alberto Ruiz X-Mailer: b4 0.15.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1781284654; l=1263; i=aruiz@redhat.com; s=20260612; h=from:subject:message-id; bh=ASg6th/Ywmh/h86ebbxcUhuLfc87yXzCgfN5EC0OsO8=; b=f72LNDqZsghUxEI3JFC8MhurK58aFX+wDsNTgvTFeOgVPaJv/5lNTa6gbaLgCz/o31XMezW2L gNk9qIQ4jeQBsNOPDM3DSURKL0b5zycnjcGNdMdH6b7DuOrfp8qJ1e/ X-Developer-Key: i=aruiz@redhat.com; a=ed25519; pk=d1doFQwve1B/jU9nG5oPl1W5d+t+iFrjkkwk/hD97Ow= X-Endpoint-Received: by B4 Relay for aruiz@redhat.com/20260612 with auth_id=818 X-Original-From: Alberto Ruiz Reply-To: aruiz@redhat.com The ssd130x_init(), ssd132x_init(), and ssd133x_init() functions each issue long chains of individual ssd130x_write_cmd() calls, each followed by its own error check. This is verbose and makes the init sequences harder to read and maintain. This series introduces ssd130x_run_cmd_seq(), which interprets a flat byte array of length-prefixed command entries terminated by a zero byte, and converts the three init functions to use it. The result is a net reduction of ~110 lines, with the hardware programming sequences now expressed as compact, declarative tables rather than imperative call-and-check chains. Signed-off-by: Alberto Ruiz --- Alberto Ruiz (4): drm/solomon: add ssd130x_run_cmd_seq() for batch command execution drm/solomon: use ssd130x_run_cmd_seq() in ssd130x_init() drm/solomon: use ssd130x_run_cmd_seq() in ssd132x_init() drm/solomon: use ssd130x_run_cmd_seq() in ssd133x_init() drivers/gpu/drm/solomon/ssd130x.c | 367 +++++++++++++------------------------- 1 file changed, 128 insertions(+), 239 deletions(-) --- base-commit: 2b414a95b8f7307d42173ba9e580d6d3e2bcbfce change-id: 20260612-ssd-batchcmd-35f7ba8c1e8b Best regards, -- Alberto Ruiz