Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4065198rdb; Thu, 14 Sep 2023 10:38:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJqN6bSUIyiruyB9FVCZf4CFgKiKiaKP6ExQFROHxRuC9lIAE+E0/9OhT8D96DLlXZHaqX X-Received: by 2002:a17:902:e88f:b0:1c3:8dbe:aecb with SMTP id w15-20020a170902e88f00b001c38dbeaecbmr6875218plg.2.1694713107928; Thu, 14 Sep 2023 10:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694713107; cv=none; d=google.com; s=arc-20160816; b=uW4hm4jrnwSa3JnW+QlBqsHvaj2mBwNv/WiS2NcIh11VRNxfPujkOBsz+MhwFcGtiB ZjYsAwaZm1eILf+XrBdMY92HkCUnYtSwRvN8QL1GGF2vX4TRavrIImFTlN0rzSm72rCi D4oOb8/Cdby3eT+xQwonAg12c8F9Hja/n6JB7EPtUKDdZhE8nVYqwKPDq4QpT4Hw6S6g 1f2dD5OspkiU8yXBdpTCWTg/AzVgfVY2RGzXcZhjYK/xypTidFk33Yn1p+4mRHahKNcI r/wSbY1Vee7r06YsAgePzAlWoPVygLqjhFNbgJYx0OT03bzYeXfAnLnVI3rzCowVrLDh XG6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pWUNKJfCjbydo17ySn1CUzsaBe39GA6RsmRuWtANDEE=; fh=uR1XTi/xEB8qetxJstbDahfWzPPZ+mYcEnjrjJkWp1Q=; b=IQZBkSE+X6Ff4fR9TX8lYeV8uVrIdMtVDJBrwtZV8a3yqO6ks/LpUrhe2YGmYwAepo RQwftW5YBJKsCRrfon8vE6bwX8q3HJuUimWLkR9tDpt+Oy/Ix9BJddErBPhxSKO78P7z uOk9/A++T4W+CFjiCAg09lvGCgTzhnixhMSzCP979BDXuO3GmWnzpeY46RL4Wm8zkRUC sVvRd0gFduQjQYxtoK8FQqpWdIIa002yW4RXgdHf1oxkeHElNPTdPbAWPfI3DqxtCtCw hpj7MILRqBrWFHI6ezWMZ9Fv8EHZucJu8S0A5F2NEPCn6ICtg7SWPkEQhVvLR/+hFzgK qSXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MuCUtXSx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id w17-20020a170902e89100b001c0f0103e99si2191761plg.126.2023.09.14.10.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 10:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MuCUtXSx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0E22D80FD3B4; Thu, 14 Sep 2023 07:16:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239694AbjINOQC (ORCPT + 99 others); Thu, 14 Sep 2023 10:16:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234485AbjINOQB (ORCPT ); Thu, 14 Sep 2023 10:16:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EAB4CE for ; Thu, 14 Sep 2023 07:15:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E374C433C8; Thu, 14 Sep 2023 14:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694700956; bh=Tr9POIMyzq8MFT4KNHcXoqjpxBXXq4yYO2CZwGn8Zxs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MuCUtXSxdJDeapWxnHoHIXYofkS2sntgfGtYF7HTkVf1R8xtryRvqJ7z4+br5bl25 ILZL5GBdBFouJFkZliKI2Cw9BawJpQmsAAC1RtTxlI7Mi3DV7/r61/zrXbZgk05hzH yK9snbWjZXKbX9eVJRLctmKNiXV/uES7LafMh8+BkBwZwyCvT90L9kHHxm8jJU7iGP iHWRCBPwrV5Q+KNIixruklyVM+rN6J86TBPvqylrlCkZxv/FuWu8RMyVobT3u489Pr QvrtXROoxhge+BDQYMbRh3A0+hPVVsSiYm7QwAB89ebpwnNi6Vw4Q9cggSzHFWnnr9 uQHpMpYfrFBjg== Date: Thu, 14 Sep 2023 16:15:53 +0200 From: Maxime Ripard To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Thomas Zimmermann , Geert Uytterhoeven , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org Subject: Re: [PATCH v4] drm/ssd130x: Store the HW buffer in the driver-private CRTC state Message-ID: References: <20230913052938.1114651-1-javierm@redhat.com> <4norb2kxq4uxs3imi3qjxhyxpvnyf5cpl4sg7yyf3ydrykqhfl@cb3w4wstak7r> <871qf028ie.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7ebnueca26qc2exr" Content-Disposition: inline In-Reply-To: <871qf028ie.fsf@minerva.mail-host-address-is-not-set> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 07:16:01 -0700 (PDT) --7ebnueca26qc2exr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2023 at 03:23:53PM +0200, Javier Martinez Canillas wrote: > Maxime Ripard writes: >=20 > Hello Maxime, >=20 > > Hi, > > > > On Wed, Sep 13, 2023 at 07:29:25AM +0200, Javier Martinez Canillas wrot= e: > >> static const struct drm_crtc_helper_funcs ssd130x_crtc_helper_funcs = =3D { > >> .mode_valid =3D ssd130x_crtc_helper_mode_valid, > >> - .atomic_check =3D drm_crtc_helper_atomic_check, > >> + .atomic_check =3D ssd130x_crtc_helper_atomic_check, > >> }; > > > > Sorry I didn't catch that sooner, but there's no reason to call that > > function a helper. > > >=20 > Yeah, agreed that there's no reason but others drivers already add the > _helper prefix for struct drm_*_helper_funcs callbacks, and I did that > in this driver as well to follow (what appears to be?) a convention. =46rom a quick grep, it looks like it's the exception rather than the norm > So I've to that now for the struct drm_crtc_helper_funcs handlers to be > consistent with the rest of the driver, e.g for plane: >=20 > static const struct drm_plane_helper_funcs ssd130x_primary_plane_helper_f= uncs =3D { > DRM_GEM_SHADOW_PLANE_HELPER_FUNCS, > .atomic_check =3D ssd130x_primary_plane_helper_atomic_check, > .atomic_update =3D ssd130x_primary_plane_helper_atomic_update, > .atomic_disable =3D ssd130x_primary_plane_helper_atomic_disable, > }; >=20 > static const struct drm_plane_funcs ssd130x_primary_plane_funcs =3D { > .update_plane =3D drm_atomic_helper_update_plane, > .disable_plane =3D drm_atomic_helper_disable_plane, > .reset =3D ssd130x_primary_plane_reset, > .atomic_duplicate_state =3D ssd130x_primary_plane_duplicate_state, > .atomic_destroy_state =3D ssd130x_primary_plane_destroy_state, > .destroy =3D drm_plane_cleanup, > }; Ack. I still believe we should be removing the helper part, those are not helpers. But it's not a big deal anyway. Maxime --7ebnueca26qc2exr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZQMVmQAKCRDj7w1vZxhR xWt/AP9ypE2JEYjaqM6zQFFWyW3ASQAg1IdDEF3Je2tF6IrUpgEAyCxcJ9mOiMU4 FcvhNGGQLD2XERp/mbMIjh00Hv/y9w0= =aNXF -----END PGP SIGNATURE----- --7ebnueca26qc2exr--