Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796534642; b=eYECgx9f7fPVnq0mGnzxcdyd2VEFeXPXq6m/6mn72a2GbHY1eehzu2px4pDFnGYUIDak cwZ82wLqRyT1u624Soh+PnEa75ghGwB0MP969l9dsSd6FF3343R9cRJhrHi67C0hy4j73 Z0PjWVByPU1Kavm474n5RgqGguWCcefzgDZuI43/SFKKv0HePnmJFFMf2+B1zyKDeMLNT D45kpfla0M88Ooqystv8ZHQGvNlGvEvRbNoYm3soVcedQ1S683IBs/aycAtAKvlzzr2Pn QCJk/sj7UhjmO/44ztK41cQzyQtqS5SCj0DnJFHQj2d8gpXV4w5v0M5It6fNPd53tRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796534642; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=UHcHahtHt9O8JFr6eTpHlvNxIAKq8l5++1X9PcYBN9I=; b=uNeeaQOvxwb2sG1Jydm3C7j61kAExLfcRnbqoKBMuB5bEsJW9DWRiBpZtOSS2dOeFg1X NyZaSaS1TTmMXt87b9GHwBJpuoswTk0jUFP3bghvus4GkfhGdTT+bir9uIFeFXvMH2d1o oXsjmjQZcmRypucPbTXXltyUNUjosoLvdzNYHNlJZwV3HsfZth94Vectg/glOI4jYSEo2 fibP5tKgJlOAovrXvYH+FIEZsV2POmPLbnNjjfuUmrRIMbRbU96iOuefiWcg4PYvi+DLG 9DDdokTlDgmbE9XN7A1A/xxg7d8N6/JF15MaBxnZlp7ZCJZ0cKJvZR82qwgnBKshVdg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qarBQT+Y; arc=none smtp.remote-ip=209.85.214.175 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF57D606A31F for ; Sun, 6 Dec 2026 05:24:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CF57D606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qarBQT+Y Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2f04b676219so14928755ad.0 for ; Sat, 05 Dec 2026 21:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796534641; x=1797139441; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=UHcHahtHt9O8JFr6eTpHlvNxIAKq8l5++1X9PcYBN9I=; b=qarBQT+YVqgZY5WUvlQSv3UOuIzRrtDH7zZNfkG7AcDZkFpwLbysy5dTcoogTAMNZX dVSNGAkmhaN1HwHGkn8RKsHTX+MC1OfcysLPaZ8AJmgAB3IiAenzegAycTkQzlrSMznE RjQ23ri4sP6mJP9NDuQk8HBIDrM0DqwtcpDb+cgxw4isMBjF+4/MXpMY7qF6SL/sQPEV qF/UD3aMK26m/DRcFGixqEzrhXMWjkrxvS6fnHg13nTJ/jAo3rxUz1TRRFsWOmtthXDH JgGV4GctwcA9+zXgacfJZsDHtSqrUFQ7yBsZ6PyupfHqsdBDBafGXabpLhkgOnO1yz8z e4UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796534641; x=1797139441; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=UHcHahtHt9O8JFr6eTpHlvNxIAKq8l5++1X9PcYBN9I=; b=Uv0aNqwROQD7XSC1f2KekE78viUMgyowndJU1u0VKFXaKim2SFEx7o/45P9CVXgxpj tiBFDvNqEZwFcmE/q8NQXOno50DjXISEAUkRcxSkulFwjA1z/OxrvSOi1oiZihw6CrrF W/z6LjgXqJeK7sD8R07OL/ipe5rN4lF4LaOEv4G8XbUfh8D+HgvZiV/nG59cdH3G2gF2 p5Y/h4Bqdr1uah0LJNtm0XhsdPzQQyr45czEG47yjqFXY/Z63p1it7iXA7bKAYQ3wncq 4GaM/ZznUcgs67oSLHiNRhdjSpMHdBskxD13ww74qa01QeOF/E5mANabpQJ0FAqFavc5 jUdA== X-Forwarded-Encrypted: i=1; AL+hErF/AJo0zklWBGv9oyDoAtoonVzJW1/+DKf4Re7JvkjWQWgsQADnI7uGuecj0bhs4BuN+qNYp5Yy2EI3rzs=@vger.kernel.org X-Gm-Message-State: AB4q+uFWPskoNK/lBnpFkoWyhsH22e6Cm3zYP+HV70cwKbDvWgff2ocN +98lpWuWm6YiJ/sK/5s3ZmNgIqX4zjUEdOfB+c0ZhI0UCBDLdJqQA2gr X-Gm-Gg: AZFdTZd0942EoE0+BnbfN8YgxmmMeCVOz4VjZYcCVlV72rxUelBMy0xg15sml3BYe09 YcQY48ei28yD9Ji9AbRTWEOFdzSGXog/QRw5ANscISBCftvsfF+ILVWdAsrVv1NmMWmPRqlLq8y Ui0p3UX64bdU4DZ3aO6JozbCBw0C93Zp+qSnYUAk2GUrOkgLx8sT4Zc0wVjfsC46pkuNXzI1TLV aBhRC930I7CyJfllipHqUd+J/RGtHr80GaYgUtWnVbyjkonWRodLwKH5btCGFfAxX6SjQeZ6Jxe 3WM1GjYPEgrL7GS54MKFd4WJ8HWWJD03y7J53QdNX4x7HXP90DS40qpUGRchFvoycy5RAslCH2W NcIrSN6VRHeAniUMlEXyxovz9YDkOmr/PIOs3o2yy78pmBrGpIcgNKrXo8GrL+x3Pda3l/ZAnFG qveHqF+2ZAJki5FnA6ysosmotNJTrc4y9vhuPwWXw1pvV1QD8B8MXJs2r4q05lKzX9SAWof60pM 5+oJxQkw2DtYTuVccQJHDgZSq7GGTdf8/FK4qr9Snu3RNk9Fv8Z2siZhsdeqOZPQanr77WPx2mb fdXnRrnQUhn+c5Q+UwuIiBvU/38yswhtDG0a0/nedH5A02i2rJbD22iI7cCloGWSNNS1ml4iXus SuGxyn6OzWx3o7DvCzrswF+R8hBJfRJPojy4LDsAlwrEt2vK9L6BhI49ULD6XMOUWa4Sr+ZsBcT Zd X-Received: by 2002:a17:902:e891:b0:2e8:6ae2:75db with SMTP id d9443c01a7336-2f1ba196706mr62029625ad.41.1796534641175; Sat, 05 Dec 2026 21:24:01 -0800 (PST) Received: from NB150512.ADVANTECH.CORP (2001-b011-6c00-3d99-5949-ff2c-3381-93b7.dynamic-ip6.hinet.net. [2001:b011:6c00:3d99:5949:ff2c:3381:93b7]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b7941759sm33497645ad.51.2026.12.05.21.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 21:24:00 -0800 (PST) From: Hsieh Hung-En To: neil.armstrong@linaro.org, jesszhan0024@gmail.com, dianders@chromium.org, akoskovich@pm.me, luca.weiss@fairphone.com Cc: dmitry.baryshkov@oss.qualcomm.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Hsieh Hung-En Subject: [PATCH v2 0/3] drm/panel: Convert nt37705 and rm69220 prepare() to _multi() Date: Sun, 6 Dec 2026 13:23:52 +0800 Message-ID: <20261206052355.259501-1-hungen3108@gmail.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Both the Novatek NT37705 and Raydium RM69220 panel drivers already use the mipi_dsi_*_multi() helpers in their *_on() and *_off() routines, but still use the non-_multi DSC helpers in prepare(). This series fixes a prepare() error cleanup bug in NT37705 and finishes converting the remaining prepare() DSC setup sequence in both drivers: - Patch 1 fixes nt37705_prepare() so that failures in mipi_dsi_picture_parameter_set() or mipi_dsi_compression_mode() assert reset_gpio and disable the regulators instead of leaking their enable counts. - Patch 2 converts the DSC setup sequence in nt37705_prepare() to mipi_dsi_picture_parameter_set_multi(), mipi_dsi_compression_mode_multi(), and mipi_dsi_msleep(). - Patch 3 applies the same conversion to raydium_rm69220_prepare(). The existing *_on() helpers already use their own mipi_dsi_multi_context and are left untouched to keep the diffs minimal. Compile-tested on arm64 with W=1, building each patch individually; not tested on hardware. Changes in v2: - Patch 1: Collect Reviewed-by from Neil Armstrong. - Patches 2-3: Return early when dsi_ctx.accum_err is clear and fall through to the err label on failure, as suggested by Neil Armstrong. - Link to v1: https://lore.kernel.org/r/20261203051011.447841-1-hungen3108@gmail.com Hsieh Hung-En (3): drm/panel: novatek-nt37705: Fix prepare error cleanup drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare() drm/panel: raydium-rm69220: Use mipi_dsi_*_multi() in prepare() drivers/gpu/drm/panel/panel-novatek-nt37705.c | 28 ++++++++----------- drivers/gpu/drm/panel/panel-raydium-rm69220.c | 21 +++++--------- 2 files changed, 19 insertions(+), 30 deletions(-) base-commit: d7248c50b2b09f2680071b0b6d02ce9c2a569f5f -- 2.43.0