Skip to contentSkip to conversation

staging: imx-drm: remove old FSF address from license text

PATCH In review Philipp Zabel 3 participants 7 messages Nov 4, 2014

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 staging: imx-drm: remove old FSF address from license text

Linux already includes a copy of the GPL, checkpatch compains about the address. Remove it from the license text.

---
 drivers/staging/imx-drm/imx-ldb.c          | 5 -----
 drivers/staging/imx-drm/imx-tve.c          | 5 -----
 drivers/staging/imx-drm/ipuv3-crtc.c       | 5 -----
 drivers/staging/imx-drm/parallel-display.c | 5 -----
 4 files changed, 20 deletions(-)
drivers/staging/imx-drm/imx-ldb.c +0 -5
index 4662e00..4caa8bf 100644
@@ -11,11 +11,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
  */
 
 #include <linux/module.h>
drivers/staging/imx-drm/imx-tve.c +0 -5
index f22b2ac..5c436f7 100644
@@ -11,11 +11,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
  */
 
 #include <linux/clk.h>
drivers/staging/imx-drm/ipuv3-crtc.c +0 -5
index 11e84a2..ebee59c 100644
@@ -11,11 +11,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
  */
 #include <linux/component.h>
 #include <linux/module.h>
drivers/staging/imx-drm/parallel-display.c +0 -5
index 015a454..2bc6d05 100644
@@ -11,11 +11,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
  */
 
 #include <linux/component.h>
Signature · 6 lines
2.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/3 drm: imx: Move imx-drm driver out of staging

The imx-drm driver was put into staging mostly for the following reasons, all of which have been addressed or superseded:
- convert the irq driver to use linear irq domains
- work out the device tree bindings, this lead to the common of_graph bindings being used
- factor out common helper functions, this mostly resulted in the component framework and drm of_graph helpers.

Before adding new fixes, and certainly before adding new features, move it into its proper place below drivers/gpu/drm.

---
Since this patch is generated with --find-renames, it should be applied on top of the staging-next branch of the staging tree, or at least after commit f582d9a8b955 (drivers: staging: imx-drm driver cleanup).

---
 .../{staging/imx-drm => drm/imx}/fsl-imx-drm.txt        |  0
 .../bindings/{staging/imx-drm => drm/imx}/hdmi.txt      |  0
 .../bindings/{staging/imx-drm => drm/imx}/ldb.txt       |  0
 drivers/gpu/drm/Kconfig                                 |  2 ++
 drivers/gpu/drm/Makefile                                |  1 +
 drivers/{staging/imx-drm => gpu/drm/imx}/Kconfig        |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/Makefile       |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/imx-drm-core.c |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/imx-drm.h      |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/imx-hdmi.c     |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/imx-hdmi.h     |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/imx-ldb.c      |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/imx-tve.c      |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/ipuv3-crtc.c   |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/ipuv3-plane.c  |  0
 drivers/{staging/imx-drm => gpu/drm/imx}/ipuv3-plane.h  |  0
 .../{staging/imx-drm => gpu/drm/imx}/parallel-display.c |  0
 drivers/staging/Kconfig                                 |  2 --
 drivers/staging/Makefile                                |  1 -
 drivers/staging/imx-drm/TODO                            | 17 -----------------
 20 files changed, 3 insertions(+), 20 deletions(-)
 rename Documentation/devicetree/bindings/{staging/imx-drm => drm/imx}/fsl-imx-drm.txt (100%)
 rename Documentation/devicetree/bindings/{staging/imx-drm => drm/imx}/hdmi.txt (100%)
 rename Documentation/devicetree/bindings/{staging/imx-drm => drm/imx}/ldb.txt (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/Kconfig (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/Makefile (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/imx-drm-core.c (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/imx-drm.h (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/imx-hdmi.c (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/imx-hdmi.h (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/imx-ldb.c (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/imx-tve.c (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/ipuv3-crtc.c (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/ipuv3-plane.c (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/ipuv3-plane.h (100%)
 rename drivers/{staging/imx-drm => gpu/drm/imx}/parallel-display.c (100%)
 delete mode 100644 drivers/staging/imx-drm/TODO
Documentation/devicetree/bindings/drm/imx/fsl-imx-drm.txt renamed from Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt +0 -0
similarity index 100%
rename from Documentation/devicetree/bindings/staging/imx-drm/fsl-imx-drm.txt
rename to Documentation/devicetree/bindings/drm/imx/fsl-imx-drm.txt
Documentation/devicetree/bindings/drm/imx/hdmi.txt renamed from Documentation/devicetree/bindings/staging/imx-drm/hdmi.txt +0 -0
similarity index 100%
rename from Documentation/devicetree/bindings/staging/imx-drm/hdmi.txt
rename to Documentation/devicetree/bindings/drm/imx/hdmi.txt
Documentation/devicetree/bindings/drm/imx/ldb.txt renamed from Documentation/devicetree/bindings/staging/imx-drm/ldb.txt +0 -0
similarity index 100%
rename from Documentation/devicetree/bindings/staging/imx-drm/ldb.txt
rename to Documentation/devicetree/bindings/drm/imx/ldb.txt
drivers/gpu/drm/Kconfig +2 -0
index e3b4b0f..8e2d0c9 100644
@@ -200,3 +200,5 @@ source "drivers/gpu/drm/tegra/Kconfig"
 source "drivers/gpu/drm/panel/Kconfig"
 
 source "drivers/gpu/drm/sti/Kconfig"
+
+source "drivers/gpu/drm/imx/Kconfig"
drivers/gpu/drm/Makefile +1 -0
index 9292a76..3829bb1 100644
@@ -62,6 +62,7 @@ obj-$(CONFIG_DRM_BOCHS) += bochs/
 obj-$(CONFIG_DRM_MSM) += msm/
 obj-$(CONFIG_DRM_TEGRA) += tegra/
 obj-$(CONFIG_DRM_STI) += sti/
+obj-$(CONFIG_DRM_IMX) += imx/
 obj-y			+= i2c/
 obj-y			+= panel/
 obj-y			+= bridge/
drivers/gpu/drm/imx/Kconfig renamed from drivers/staging/imx-drm/Kconfig +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/Kconfig
rename to drivers/gpu/drm/imx/Kconfig
drivers/gpu/drm/imx/Makefile renamed from drivers/staging/imx-drm/Makefile +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/Makefile
rename to drivers/gpu/drm/imx/Makefile
drivers/gpu/drm/imx/imx-drm-core.c renamed from drivers/staging/imx-drm/imx-drm-core.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/imx-drm-core.c
rename to drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/imx-drm.h renamed from drivers/staging/imx-drm/imx-drm.h +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/imx-drm.h
rename to drivers/gpu/drm/imx/imx-drm.h
drivers/gpu/drm/imx/imx-hdmi.c renamed from drivers/staging/imx-drm/imx-hdmi.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/imx-hdmi.c
rename to drivers/gpu/drm/imx/imx-hdmi.c
drivers/gpu/drm/imx/imx-hdmi.h renamed from drivers/staging/imx-drm/imx-hdmi.h +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/imx-hdmi.h
rename to drivers/gpu/drm/imx/imx-hdmi.h
drivers/gpu/drm/imx/imx-ldb.c renamed from drivers/staging/imx-drm/imx-ldb.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/imx-ldb.c
rename to drivers/gpu/drm/imx/imx-ldb.c
drivers/gpu/drm/imx/imx-tve.c renamed from drivers/staging/imx-drm/imx-tve.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/imx-tve.c
rename to drivers/gpu/drm/imx/imx-tve.c
drivers/gpu/drm/imx/ipuv3-crtc.c renamed from drivers/staging/imx-drm/ipuv3-crtc.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/ipuv3-crtc.c
rename to drivers/gpu/drm/imx/ipuv3-crtc.c
drivers/gpu/drm/imx/ipuv3-plane.c renamed from drivers/staging/imx-drm/ipuv3-plane.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/ipuv3-plane.c
rename to drivers/gpu/drm/imx/ipuv3-plane.c
drivers/gpu/drm/imx/ipuv3-plane.h renamed from drivers/staging/imx-drm/ipuv3-plane.h +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/ipuv3-plane.h
rename to drivers/gpu/drm/imx/ipuv3-plane.h
drivers/gpu/drm/imx/parallel-display.c renamed from drivers/staging/imx-drm/parallel-display.c +0 -0
similarity index 100%
rename from drivers/staging/imx-drm/parallel-display.c
rename to drivers/gpu/drm/imx/parallel-display.c
drivers/staging/Kconfig +0 -2
index 3b01fef..815de37 100644
@@ -84,8 +84,6 @@ source "drivers/staging/gdm72xx/Kconfig"
 
 source "drivers/staging/gdm724x/Kconfig"
 
-source "drivers/staging/imx-drm/Kconfig"
-
 source "drivers/staging/fwserial/Kconfig"
 
 source "drivers/staging/goldfish/Kconfig"
drivers/staging/Makefile +0 -1
index 26ecead..33c640b 100644
@@ -35,7 +35,6 @@ obj-$(CONFIG_STAGING_BOARD)	+= board/
 obj-$(CONFIG_USB_WPAN_HCD)	+= ozwpan/
 obj-$(CONFIG_WIMAX_GDM72XX)	+= gdm72xx/
 obj-$(CONFIG_LTE_GDM724X)	+= gdm724x/
-obj-$(CONFIG_DRM_IMX)		+= imx-drm/
 obj-$(CONFIG_FIREWIRE_SERIAL)	+= fwserial/
 obj-$(CONFIG_GOLDFISH)		+= goldfish/
 obj-$(CONFIG_LUSTRE_FS)		+= lustre/
drivers/staging/imx-drm/TODO deleted +0 -17
deleted file mode 100644
index 29636fb..0000000
@@ -1,17 +0,0 @@
-TODO:
-- get DRM Maintainer review for this code
-- decide where to put the base driver. It is not specific to a subsystem
-  and would be used by DRM/KMS and media/V4L2
-
-Missing features (not necessarily for moving out of staging):
-
-- Add support for IC (Image converter)
-- Add support for CSI (CMOS Sensor interface)
-- Add support for VDIC (Video Deinterlacer)
-
-Many work-in-progress patches for the above features exist. Contact
-Sascha Hauer <[email protected]> if you are interested in working
-on a specific feature.
-
-Please send any patches to Greg Kroah-Hartman <[email protected]> and
-Sascha Hauer <[email protected]>
Signature · 6 lines
2.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

Re: [PATCH 2/3] drm: imx: Move imx-drm driver out of staging

Am Dienstag, den 04.11.2014, 11:52 +0100 schrieb Philipp Zabel:

Quoted 8 lines

The imx-drm driver was put into staging mostly for the following reasons, all of which have been addressed or superseded:
- convert the irq driver to use linear irq domains
- work out the device tree bindings, this lead to the common of_graph bindings being used
- factor out common helper functions, this mostly resulted in the component framework and drm of_graph helpers.

Quoted 8 lines

Before adding new fixes, and certainly before adding new features, move it into its proper place below drivers/gpu/drm.

---
Since this patch is generated with --find-renames, it should be applied on top of the staging-next branch of the staging tree, or at least after commit f582d9a8b955 (drivers: staging: imx-drm driver cleanup).

The full commit as also available at:

git://git.pengutronix.de/git/pza/linux.git topic/imx-drm-destaging

regards
Philipp

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Re: [PATCH 2/3] drm: imx: Move imx-drm driver out of staging

In reply to Philipp Zabel

Hi Philipp,

Just a flyby question

Quoted 5 lines · Philipp Zabel

The imx-drm driver was put into staging mostly for the following reasons, all of which have been addressed or superseded:
- convert the irq driver to use linear irq domains
- work out the device tree bindings, this lead to the common of_graph bindings being used

Afaics Steve's patches introduce some non-backward compatible changes to the DT bindings (s/port/crtc/). Shouldn't those be discussed/resolved prior to pushing the driver out of staging ?

Cheers,
Emil

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

Re: [PATCH 2/3] drm: imx: Move imx-drm driver out of staging

Am Dienstag, den 04.11.2014, 16:19 +0000 schrieb Emil Velikov:

Quoted 5 lines

Hi Philipp,

Just a flyby question

On 04/11/14 10:52, Philipp Zabel wrote:

Quoted 8 lines
Quoted 5 lines

The imx-drm driver was put into staging mostly for the following reasons, all of which have been addressed or superseded:
- convert the irq driver to use linear irq domains
- work out the device tree bindings, this lead to the common of_graph bindings being used

Afaics Steve's patches introduce some non-backward compatible changes to the DT bindings (s/port/crtc/). Shouldn't those be discussed/resolved prior to pushing the driver out of staging ?

Those binding changes are backwards. We moved away from mentioning crtcs in the device tree earlier, as those are most definitely not a property of the hardware.
The two output ports of the IPU in the device tree correspond to the physical output signals of the two DIs, not to the crtcs, which are a linux specific abstraction, more closely related to parts of the DP and DC units.

What is exactly represented by each crtc could be changed in the code without affecting the device tree bindings. In hardware, it is possible to link both of the DC/DP output channels to either DI dynamically. The driver could be changed to stop associating each crtc with a fixed DI, and select the appropriate DI automatically for a given crtc <-> encoder pair.

In my opinion the time for non-backward compatible changes has passed anyway. That being said, if a case is to be made for device tree changes, it should be discussed before the move.

regards
Philipp

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

PATCH 3/3 MAINTAINERS: add maintainer for i.MX DRM driver

In reply to Philipp Zabel

Add myself as the maintainer of the i.MX DRM driver.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index df2aecf..ddf191d 100644
@@ -3183,6 +3183,13 @@ F:	drivers/gpu/drm/exynos/
 F:	include/drm/exynos*
 F:	include/uapi/drm/exynos*
 
+DRM DRIVERS FOR FREESCALE IMX
+M:	Philipp Zabel <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/gpu/drm/imx/
+F:	Documentation/devicetree/bindings/drm/imx/
+
 DRM DRIVERS FOR NVIDIA TEGRA
 M:	Thierry Reding <[email protected]>
 M:	Terje Bergström <[email protected]>
Signature · 6 lines
2.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v1 3/3
#6 lore raw

Re: [PATCH 3/3] MAINTAINERS: add maintainer for i.MX DRM driver

Quoted 3 lines · Philipp Zabel

Add myself as the maintainer of the i.MX DRM driver.

Quoted 25 lines
---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -1
index df2aecf..ddf191d 100644
@@ -3183,6 +3183,13 @@ F:       drivers/gpu/drm/exynos/
 F:     include/drm/exynos*
 F:     include/uapi/drm/exynos*
 
+DRM DRIVERS FOR FREESCALE IMX
+M:     Philipp Zabel <[email protected]>
+L:     [email protected]
+S:     Maintained
+F:     drivers/gpu/drm/imx/
+F:     Documentation/devicetree/bindings/drm/imx/
+
 DRM DRIVERS FOR NVIDIA TEGRA
 M:     Thierry Reding <[email protected]>
 M:     Terje Bergström <[email protected]>
--

2.1.1

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel