public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 05/11] drm/sun4i: abstract a engine type
Date: Mon, 24 Apr 2017 11:05:00 +0200	[thread overview]
Message-ID: <20170424090500.i3k6u7pcahc7m3hv@lukather> (raw)
In-Reply-To: <20170423103754.50012-6-icenowy@aosc.io>

Hi,

Thanks a lot for that work.

On Sun, Apr 23, 2017 at 06:37:48PM +0800, Icenowy Zheng wrote:
> As we are going to add support for the Allwinner DE2 engine in sun4i-drm
> driver, we will finally have two types of display engines -- the DE1
> backend and the DE2 mixer. They both do some display blending and feed
> graphics data to TCON, so I choose to call them both "engine" here.
> 
> Abstract the engine type to a new struct with an ops struct, which contains
> functions that should be called outside the engine-specified code (in
> TCON, CRTC or TV Encoder code).
> 
> A dedicated Kconfig option is also added to control whether
> sun4i-backend-specified code (sun4i_backend.c and sun4i_layer.c) should
> be built. As we removed the codes in CRTC code that directly call the
> layer code, we can now extract the layer part and combine it with the
> backend part into a new module, sun4i-backend.ko.

While the code itself is good now, the patch mixes a few things that
would be better to be split in separate patches. I think it would be
better if you had patches organized like this:
  - Abstract the engine type by create the sunxi_engine structure and
    fixing all the callers.
  - Move the layers and backend files in the same module, and remove
    the now useless EXPORT_SYMBOLS.
  - Create a Kconfig option.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170424/d1d15dd2/attachment-0001.sig>

  reply	other threads:[~2017-04-24  9:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23 10:37 [PATCH v5 00/11] Initial Allwinner Display Engine 2.0 Support Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 01/11] dt-bindings: add binding for the Allwinner DE2 CCU Icenowy Zheng
2017-04-28 17:52   ` Rob Herring
2017-04-23 10:37 ` [PATCH v5 02/11] clk: sunxi-ng: add support for " Icenowy Zheng
2017-04-24  8:51   ` Maxime Ripard
2017-04-24 10:26     ` [linux-sunxi] " icenowy at aosc.io
2017-04-27  7:12       ` Maxime Ripard
2017-04-23 10:37 ` [PATCH v5 03/11] dt-bindings: add bindings for DE2 on V3s SoC Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 04/11] drm/sun4i: return only planes for layers created Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 05/11] drm/sun4i: abstract a engine type Icenowy Zheng
2017-04-24  9:05   ` Maxime Ripard [this message]
2017-04-23 10:37 ` [PATCH v5 06/11] drm/sun4i: add support for Allwinner DE2 mixers Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 07/11] drm/sun4i: Add compatible string for V3s display engine Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 08/11] drm/sun4i: tcon: add support for V3s TCON Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 09/11] ARM: dts: sun8i: add DE2 nodes for V3s SoC Icenowy Zheng
2017-04-24  9:06   ` Maxime Ripard
2017-04-23 10:37 ` [PATCH v5 10/11] ARM: dts: sun8i: add pinmux for LCD pins of " Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 11/11] [DO NOT MERGE] ARM: dts: sun8i: enable LCD panel of Lichee Pi Zero Icenowy Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170424090500.i3k6u7pcahc7m3hv@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox