Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4124402rdb; Thu, 14 Sep 2023 12:29:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcU4u+JsIFEVWhdNYT8q5PpJn5XaTr1/lquwMRm8OgGgrbMAg6JSiYVm6bdjXEQbfnWlLz X-Received: by 2002:a17:90a:51c4:b0:26d:40ec:3cf3 with SMTP id u62-20020a17090a51c400b0026d40ec3cf3mr5847557pjh.0.1694719786248; Thu, 14 Sep 2023 12:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694719786; cv=none; d=google.com; s=arc-20160816; b=qXmivuS0wuReLn+dB1wQA3dZQJogINJrV5sX4B+qE0wqO5uG5koyuzAigxK5pbuF7L 1KJXRYlWW/isyPu4TU97frs7yMACx9+PXoDQLugkMFa2AtGQw4DTwd80mItAnDQNrF+X qQ4cBVEoo1Ps1e1l7Zrdn/yqArj0ByXzUu4uJRkus0bRfRP0IrDsyK3Z2NvKOmCHF/A3 scT5TjElX3h5GpfhVDDAbqWSqHLaXeaQ2qpMeeH7MHYoYw2sN6l1hcrNlKPxa+lmv0P/ /wiyPlLRIXJKRsNMFgGayqTBWTky41K31XAo5kF10vVMRjgn9m6Ge+u7Lv/vvOxSmbwm 6CCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=uFwzQssh5fc2VAqJw0Fiz1bE1/NvSD7FuRwvnyf3cNo=; fh=Wzp+/0wgFgiy4e797E4K4ir2vrQogI1CyS+DIuk6awg=; b=S8w068b5kgK5/GUVzXiaRnO82BdbIpKcsufHWPD4QN6ytgeORUgSs6YBXZNcR0zUiZ UGzWdZUsYWUkqniXp1bXap04ktLQMBM2oh7JJemMq4KHJRJM6/xhLDYsQytgPyGH/+XF Af5GPwLMMcqDhB3RJd6ABaoCq44FMY26RbpBFbCyQX9S1mISo4smBFOJkcOEzMVGc7u8 kamkMe1M9Xh4/qAq5FcVBqI5U01fN82clQ1In0Cd3ctR9ydHogUG9CxzSexX3QQtZgYA QQboJIgVukYtqr9QBbOI1eeJJGpbaZMJyqaT78Uz/6u9lznUL+lUYrBP248QPIXVj46f zJcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WBGJdSG9; 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=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bg11-20020a17090b0d8b00b0026841a42bffsi2127822pjb.139.2023.09.14.12.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 12:29:46 -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=@redhat.com header.s=mimecast20190719 header.b=WBGJdSG9; 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=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B0165845559A; Thu, 14 Sep 2023 06:24:55 -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 S238946AbjINNYx (ORCPT + 99 others); Thu, 14 Sep 2023 09:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238941AbjINNYw (ORCPT ); Thu, 14 Sep 2023 09:24:52 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDEF91FDC for ; Thu, 14 Sep 2023 06:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694697839; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uFwzQssh5fc2VAqJw0Fiz1bE1/NvSD7FuRwvnyf3cNo=; b=WBGJdSG9IBoVaLH1aXGQVnoF0TTLYqKy8KX4HcRY81hVMyYRIYzKD/GoUWPHjJJ24MoY/a TD1eOilvxC39rgSAME9nFGzvJGZAiVLMUFoMNJrQZVfqfV89OjiQPBZWW8o/8PZRhKITgi 80dfqxDH9W65CYJ/pie5Tiozody+5b0= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-383-eM4KZqX0Ni-Toq0wOTEORw-1; Thu, 14 Sep 2023 09:23:56 -0400 X-MC-Unique: eM4KZqX0Ni-Toq0wOTEORw-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-31c5c762f97so667088f8f.1 for ; Thu, 14 Sep 2023 06:23:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694697834; x=1695302634; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uFwzQssh5fc2VAqJw0Fiz1bE1/NvSD7FuRwvnyf3cNo=; b=PAK51e0Wc75QbWsL3b9AHy2BdhzJvo/TThh8Zx7JLogcei+yjL9qxQhKdyBFk3ie3P pL9WGzJYNe07wOF5GwcFB849CTk1aR9Xx3TzBP0QJJ6QkCremiXarpE2Nvq0Peklomy8 S4O649NB67trePYrsM055m3J2dRdYIf85dvylokZZ+RtS9Ep2TZTQZS48thnHAuAHFqB eDAo/voFDWgILPS/N5sgJ1VJIQjr0puwu3GZT/U25gMR/qh9Cu3l0GRMzPey6KCPzuSC dN77U4YM0WZUc6HVMVGhYzsR+H4bALMZYDf/+6woCnOrRItili/TR0vVnwhX+mVs/d9N JfNQ== X-Gm-Message-State: AOJu0YyBp5SIJTTk6pRl+JmBRZyiefaw5YxrfxfDHLHf97qMiEzQTnJ0 g8tcyGeEJHosY1WhnFdRnsujaeTDgVH1AyFvmIAyHuu41NwEAGLyPTve2DkL785UGpv4b6HxFgY WywWwAaS9oMi32otZFYr6/HcT X-Received: by 2002:adf:a45c:0:b0:31f:d52a:82b4 with SMTP id e28-20020adfa45c000000b0031fd52a82b4mr1962680wra.57.1694697834743; Thu, 14 Sep 2023 06:23:54 -0700 (PDT) X-Received: by 2002:adf:a45c:0:b0:31f:d52a:82b4 with SMTP id e28-20020adfa45c000000b0031fd52a82b4mr1962661wra.57.1694697834368; Thu, 14 Sep 2023 06:23:54 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id w16-20020adfec50000000b0031ad5470f89sm1755283wrn.18.2023.09.14.06.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:23:54 -0700 (PDT) From: Javier Martinez Canillas To: Maxime Ripard 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 In-Reply-To: <4norb2kxq4uxs3imi3qjxhyxpvnyf5cpl4sg7yyf3ydrykqhfl@cb3w4wstak7r> References: <20230913052938.1114651-1-javierm@redhat.com> <4norb2kxq4uxs3imi3qjxhyxpvnyf5cpl4sg7yyf3ydrykqhfl@cb3w4wstak7r> Date: Thu, 14 Sep 2023 15:23:53 +0200 Message-ID: <871qf028ie.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain 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 06:24:55 -0700 (PDT) Maxime Ripard writes: Hello Maxime, > Hi, > > On Wed, Sep 13, 2023 at 07:29:25AM +0200, Javier Martinez Canillas wrote: >> static const struct drm_crtc_helper_funcs ssd130x_crtc_helper_funcs = { >> .mode_valid = ssd130x_crtc_helper_mode_valid, >> - .atomic_check = drm_crtc_helper_atomic_check, >> + .atomic_check = ssd130x_crtc_helper_atomic_check, >> }; > > Sorry I didn't catch that sooner, but there's no reason to call that > function a helper. > 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. 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: static const struct drm_plane_helper_funcs ssd130x_primary_plane_helper_funcs = { DRM_GEM_SHADOW_PLANE_HELPER_FUNCS, .atomic_check = ssd130x_primary_plane_helper_atomic_check, .atomic_update = ssd130x_primary_plane_helper_atomic_update, .atomic_disable = ssd130x_primary_plane_helper_atomic_disable, }; static const struct drm_plane_funcs ssd130x_primary_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, .reset = ssd130x_primary_plane_reset, .atomic_duplicate_state = ssd130x_primary_plane_duplicate_state, .atomic_destroy_state = ssd130x_primary_plane_destroy_state, .destroy = drm_plane_cleanup, }; > With that fixed (and feel free to fix while applying) > > Acked-by: Maxime Ripard > > Maxime -- Best regards, Javier Martinez Canillas Core Platforms Red Hat