Skip to contentSkip to conversation

soc: fsl: Correct MAINTAINERS database (QUICC ENGINE LIBRARY)

PATCH In review Andy Shevchenko 2 participants 12 messages Nov 10, 2021 – Dec 2, 2021

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

PATCH v2 1/3 soc: fsl: Correct MAINTAINERS database (QUICC ENGINE LIBRARY)

MAINTAINERS lacks of proper coverage for FSL headers. Fix it accordingly.

Fixes 7aa1aa6ecec2 ("QE: Move QE from arch/powerpc to drivers/soc")

---
v2: new patch

 MAINTAINERS | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
MAINTAINERS +1 -2
index a64c7bbfd809..a35e4d9e52b8 100644
@@ -7658,8 +7658,7 @@ M:	Qiang Zhao <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/soc/fsl/qe/
-F:	include/soc/fsl/*qe*.h
-F:	include/soc/fsl/*ucc*.h
+F:	include/soc/fsl/qe/
 
 FREESCALE QUICC ENGINE UCC ETHERNET DRIVER
 M:	Li Yang <[email protected]>
Signature · 1 line
2.33.0
#1 lore raw

PATCH v2 2/3 soc: fsl: Correct MAINTAINERS database (SOC)

MAINTAINERS lacks of proper coverage for FSL headers. Fix it accordingly.

Fixes 1b48706f027c ("MAINTAINERS: add entry for Freescale SoC drivers")

---
v2: new patch

 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index a35e4d9e52b8..8748328fdc63 100644
@@ -7689,6 +7689,7 @@ F:	Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml
 F:	Documentation/devicetree/bindings/soc/fsl/
 F:	drivers/soc/fsl/
 F:	include/linux/fsl/
+F:	include/soc/fsl/
 
 FREESCALE SOC FS_ENET DRIVER
 M:	Pantelis Antoniou <[email protected]>
Signature · 1 line
2.33.0
#2 lore raw

PATCH v2 3/3 soc: fsl: Replace kernel.h with the necessary inclusions

In reply to Andy Shevchenko

When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

---
v2: updated Cc list based on previous changes to MAINTAINERS

 include/soc/fsl/dpaa2-fd.h    | 3 ++-
 include/soc/fsl/qe/immap_qe.h | 3 ++-
 include/soc/fsl/qe/qe_tdm.h   | 4 +++-
 include/soc/fsl/qe/ucc_fast.h | 2 +-
 include/soc/fsl/qe/ucc_slow.h | 2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)
include/soc/fsl/dpaa2-fd.h +2 -1
index 90ae8d191f1a..bae490cac0aa 100644
@@ -7,7 +7,8 @@
 #ifndef __FSL_DPAA2_FD_H
 #define __FSL_DPAA2_FD_H
 
-#include <linux/kernel.h>
+#include <linux/byteorder/generic.h>
+#include <linux/types.h>
 
 /**
  * DOC: DPAA2 FD - Frame Descriptor APIs for DPAA2
include/soc/fsl/qe/immap_qe.h +2 -1
index 7614fee532f1..edd601f53f5d 100644
@@ -13,7 +13,8 @@
 #define _ASM_POWERPC_IMMAP_QE_H
 #ifdef __KERNEL__
 
-#include <linux/kernel.h>
+#include <linux/types.h>
+
 #include <asm/io.h>
 
 #define QE_IMMAP_SIZE	(1024 * 1024)	/* 1MB from 1MB+IMMR */
include/soc/fsl/qe/qe_tdm.h +3 -1
index b6febe225071..43ea830cfe1f 100644
@@ -10,8 +10,8 @@
 #ifndef _QE_TDM_H_
 #define _QE_TDM_H_
 
-#include <linux/kernel.h>
 #include <linux/list.h>
+#include <linux/types.h>
 
 #include <soc/fsl/qe/immap_qe.h>
 #include <soc/fsl/qe/qe.h>
@@ -19,6 +19,8 @@
 #include <soc/fsl/qe/ucc.h>
 #include <soc/fsl/qe/ucc_fast.h>
 
+struct device_node;
+
 /* SI RAM entries */
 #define SIR_LAST	0x0001
 #define SIR_BYTE	0x0002
include/soc/fsl/qe/ucc_fast.h +1 -1
index 9696a5b9b5d1..ad60b87a3c69 100644
@@ -10,7 +10,7 @@
 #ifndef __UCC_FAST_H__
 #define __UCC_FAST_H__
 
-#include <linux/kernel.h>
+#include <linux/types.h>
 
 #include <soc/fsl/qe/immap_qe.h>
 #include <soc/fsl/qe/qe.h>
include/soc/fsl/qe/ucc_slow.h +1 -1
index 11a216e4e919..7548ce8a202d 100644
@@ -11,7 +11,7 @@
 #ifndef __UCC_SLOW_H__
 #define __UCC_SLOW_H__
 
-#include <linux/kernel.h>
+#include <linux/types.h>
 
 #include <soc/fsl/qe/immap_qe.h>
 #include <soc/fsl/qe/qe.h>
Signature · 1 line
2.33.0
#3 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 8 lines · Andy Shevchenko

When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

---
v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example.

Signature · 9 lines
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw

RE: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 17 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Monday, November 15, 2021 5:30 AM
To: [email protected]; [email protected]; linux-arm- [email protected]
Cc: Leo Li <[email protected]>; Qiang Zhao <[email protected]>
Subject: Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 5 lines · Andy Shevchenko

When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Quoted 8 lines
Quoted 3 lines

---
v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example.

There seems to be no problem with the patch although I didn't get time to really compile with it applied.

Will pick them up later after build test.

Regards,
Leo

#5 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 3 lines · Leo Li
Quoted 3 lines

From: Andy Shevchenko <[email protected]>
Sent: Monday, November 15, 2021 5:30 AM
On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote:

...

Quoted 10 lines
Quoted 6 lines
Quoted 1 line

v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example.

There seems to be no problem with the patch although I didn't get time to really compile with it applied.

Will pick them up later after build test.

Thank you!

Note, it has two fixes against MAINTAINERS which may be sent, I believe, sooner than later to Linus.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#6 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 14 lines · Andy Shevchenko
Quoted 3 lines · Leo Li
Quoted 3 lines

From: Andy Shevchenko <[email protected]>
Sent: Monday, November 15, 2021 5:30 AM
On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote:

...

Quoted 7 lines
Quoted 6 lines
Quoted 1 line

v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example.

Quoted 8 lines
Quoted 3 lines

There seems to be no problem with the patch although I didn't get time to really compile with it applied.

Will pick them up later after build test.

Thank you!

Note, it has two fixes against MAINTAINERS which may be sent, I believe, sooner than later to Linus.

Any new so far?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#7 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 18 lines · Andy Shevchenko
Quoted 16 lines · Andy Shevchenko
Quoted 3 lines · Leo Li
Quoted 3 lines

From: Andy Shevchenko <[email protected]>
Sent: Monday, November 15, 2021 5:30 AM
On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote:

...

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example.

There seems to be no problem with the patch although I didn't get time to really compile with it applied.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Will pick them up later after build test.

Thank you!

Note, it has two fixes against MAINTAINERS which may be sent, I believe, sooner than later to Linus.

Any new so far?

The build test is good. I have applied it for next. Thanks.

Regards,
Leo

#8 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 22 lines · Li Yang
Quoted 20 lines · Andy Shevchenko
Quoted 18 lines · Andy Shevchenko
Quoted 3 lines · Leo Li
Quoted 3 lines

From: Andy Shevchenko <[email protected]>
Sent: Monday, November 15, 2021 5:30 AM
On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote:

...

Quoted 10 lines
Quoted 6 lines
Quoted 1 line

v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example.

There seems to be no problem with the patch although I didn't get time to really compile with it applied.

Will pick them up later after build test.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Thank you!

Note, it has two fixes against MAINTAINERS which may be sent, I believe, sooner than later to Linus.

Any new so far?

The build test is good. I have applied it for next. Thanks.

Thanks, what about MAINTAINERS updates? I don't see them neither in next nor in your tree.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#9 lore raw

RE: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 41 lines

-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Thursday, December 2, 2021 3:33 AM
To: Leo Li <[email protected]>
Cc: [email protected]; [email protected]; linux-arm- [email protected]; Qiang Zhao <[email protected]>
Subject: Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 9 lines · Li Yang
Quoted 7 lines · Andy Shevchenko
Quoted 5 lines · Andy Shevchenko
Quoted 3 lines · Leo Li
Quoted 3 lines

From: Andy Shevchenko <[email protected]>
Sent: Monday, November 15, 2021 5:30 AM On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

...

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

v2: updated Cc list based on previous changes to MAINTAINERS

Any comments on this, please?

I really want to decrease amount of kernel.h usage in the common

headers.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

So others won't copy'n'paste bad example.

There seems to be no problem with the patch although I didn't get

time to really compile with it applied.

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines

Will pick them up later after build test.

Thank you!

Note, it has two fixes against MAINTAINERS which may be sent, I believe, sooner than later to Linus.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any new so far?

The build test is good. I have applied it for next. Thanks.

Thanks, what about MAINTAINERS updates? I don't see them neither in next nor in your tree.

I am ok with these MAINTAINERS updates. I thought you want to send them directly to Linus. I can take them if you like.

Regards,
Leo

#10 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 5 lines · Leo Li
Quoted 5 lines

From: Andy Shevchenko <[email protected]>
Sent: Thursday, December 2, 2021 3:33 AM

Quoted 2 lines · Li Yang

On Tue, Nov 23, 2021 at 10:32 AM Andy Shevchenko
<[email protected]> wrote:

...

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

The build test is good. I have applied it for next. Thanks.

Thanks, what about MAINTAINERS updates? I don't see them neither in next nor in your tree.

I am ok with these MAINTAINERS updates. I thought you want to send them directly to Linus. I can take them if you like.

I was just pointing out that it would be good that you (as a maintainer of SOC FSL) have them applied and pushed for the current cycle, but they are not code fixes anyway, so it's not critical.

TL;DR: Yes, please take them, thanks!

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#11 lore raw

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

Quoted 15 lines · Andy Shevchenko
Quoted 5 lines · Leo Li
Quoted 5 lines

From: Andy Shevchenko <[email protected]>
Sent: Thursday, December 2, 2021 3:33 AM

Quoted 2 lines · Li Yang

On Tue, Nov 23, 2021 at 10:32 AM Andy Shevchenko
<[email protected]> wrote:

...

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

The build test is good. I have applied it for next. Thanks.

Thanks, what about MAINTAINERS updates? I don't see them neither in next nor in your tree.

Quoted 7 lines
Quoted 1 line

I am ok with these MAINTAINERS updates. I thought you want to send them directly to Linus. I can take them if you like.

I was just pointing out that it would be good that you (as a maintainer of SOC FSL) have them applied and pushed for the current cycle, but they are not code fixes anyway, so it's not critical.

TL;DR: Yes, please take them, thanks!

Got it. Both applied for next. Thanks.

Regards,
Leo