Skip to contentSkip to conversation

PCI: layerscape: Add EP mode support for ls1028a

PATCH Superseded Frank Li 3 participants 7 messages Jan 12, 2023 – Feb 9, 2023

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 PCI: layerscape: Add EP mode support for ls1028a

From: Xiaowei Bao <[email protected]>

Add PCIe EP mode support for ls1028a.

---

Added

All other patches were already accepte by maintainer in
https://lore.kernel.org/lkml/[email protected]/

But missed this one.

Re-post.

 drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/pci-layerscape-ep.c +1 -0
index ad99707b3b99..ed5cfc9408d9 100644
@@ -112,6 +112,7 @@ static const struct ls_pcie_ep_drvdata lx2_ep_drvdata = {
 static const struct of_device_id ls_pcie_ep_of_match[] = {
 	{ .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
 	{ .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
+	{ .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
 	{ .compatible = "fsl,ls2088a-pcie-ep", .data = &ls2_ep_drvdata },
 	{ .compatible = "fsl,lx2160ar2-pcie-ep", .data = &lx2_ep_drvdata },
 	{ },
Signature · 1 line
2.34.1
author maintainer
#1 lore raw
Quoted 6 lines

Subject: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

Caution: EXT Email

Quoted 9 lines

From: Xiaowei Bao <[email protected]>

Add PCIe EP mode support for ls1028a.

[Frank Li] ping

Quoted 40 lines

---

Added

All other patches were already accepte by maintainer in
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.k
ernel.org%2Flkml%2F20211112223457.10599-1- leoyang.li%40nxp.com%2F&data=05%7C01%7Cfrank.li%40nxp.com%7C29d1 5c05d59346e552be08daf4d573e5%7C686ea1d3bc2b4c6fa92cd99c5c301635% 7C0%7C0%7C638091494850726163%7CUnknown%7CTWFpbGZsb3d8eyJWIjo iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C30 00%7C%7C%7C&sdata=0wnHTyuX%2FyLAiioKNvlFbBM83nVyF%2FCdhqsEmV f2sI4%3D&reserved=0

But missed this one.

Re-post.

 drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/pci-layerscape-ep.c +1 -0
index ad99707b3b99..ed5cfc9408d9 100644
@@ -112,6 +112,7 @@ static const struct ls_pcie_ep_drvdata
 lx2_ep_drvdata = {
 static const struct of_device_id ls_pcie_ep_of_match[] = {
        { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
        { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
+       { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
        { .compatible = "fsl,ls2088a-pcie-ep", .data = &ls2_ep_drvdata },
        { .compatible = "fsl,lx2160ar2-pcie-ep", .data = &lx2_ep_drvdata },
        { },

--
2.34.1

#2 lore raw

Re: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

        { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
+       { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
	{ .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },

can it be like this for better readability. ?

Thanks,
Alok

Quoted 56 lines · Frank Li
Quoted 5 lines

Subject: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

Caution: EXT Email

Quoted 9 lines

From: Xiaowei Bao <[email protected]>

Add PCIe EP mode support for ls1028a.

[Frank Li] ping

Quoted 40 lines

---

Added

All other patches were already accepte by maintainer in
https://urldefense.com/v3/__https://eur01.safelinks.protection.outlook.com/?url=https*3A*2F*2Flore.k__;JSUl!!ACWV5N9M2RV99hQ!PIKq0-lb3ccjBcAZNFo48kfWvbGPlh7_Wiws1olaNdTthUzhcGFrpLbw3vOMDaeops5LkajDO_y_vGPyuhE$
ernel.org%2Flkml%2F20211112223457.10599-1- leoyang.li%40nxp.com%2F&data=05%7C01%7Cfrank.li%40nxp.com%7C29d1 5c05d59346e552be08daf4d573e5%7C686ea1d3bc2b4c6fa92cd99c5c301635% 7C0%7C0%7C638091494850726163%7CUnknown%7CTWFpbGZsb3d8eyJWIjo iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C30 00%7C%7C%7C&sdata=0wnHTyuX%2FyLAiioKNvlFbBM83nVyF%2FCdhqsEmV f2sI4%3D&reserved=0

But missed this one.

Re-post.

  drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 +
  1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/pci-layerscape-ep.c +1 -0
index ad99707b3b99..ed5cfc9408d9 100644
@@ -112,6 +112,7 @@ static const struct ls_pcie_ep_drvdata
 lx2_ep_drvdata = {
  static const struct of_device_id ls_pcie_ep_of_match[] = {
         { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
         { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
+       { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
         { .compatible = "fsl,ls2088a-pcie-ep", .data = &ls2_ep_drvdata },
         { .compatible = "fsl,lx2160ar2-pcie-ep", .data = &lx2_ep_drvdata },
         { },

--
2.34.1

author maintainer
#3 lore raw

RE: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

Quoted 10 lines

Subject: Re: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

Caution: EXT Email

         { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
+       { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
        { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },

can it be like this for better readability. ?

It is just chip name and follow name conversion, which already upstreamed and documented. Why do you think it not is good readability?

Frank Li

Quoted 4 lines

Thanks,
Alok

#4 lore raw

Re: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

Quoted 7 lines · Frank Li
Quoted 7 lines

Subject: Re: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

         { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
+       { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
        { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
Quoted 6 lines
Quoted 1 line

can it be like this for better readability. ?

It is just chip name and follow name conversion, which already upstreamed and documented.

Why do you think it not is good readability?

I thought maybe ALOK's point was to sort the list, which does make a lot of sense. But if you want to sort by the .data member, I would think you would make .compatible a secondary sort key, which means ls1028a would come before ls1046a, so you would end up with this instead:

static const struct of_device_id ls_pcie_ep_of_match[] = {
+ { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },

        { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
        { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
        { .compatible = "fsl,ls2088a-pcie-ep", .data = &ls2_ep_drvdata },
        { .compatible = "fsl,lx2160ar2-pcie-ep", .data = &lx2_ep_drvdata },
        { },

};

#5 lore raw

Re: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

yes, it is more about sort the list using .data and .compatible. key

much better if it we keep this as suggested by Frank,

static const struct of_device_id ls_pcie_ep_of_match[] = {
+ { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },

        { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
        { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },

Thanks,

Alok

Quoted 28 lines · Bjorn Helgaas
Quoted 7 lines · Frank Li
Quoted 7 lines

Subject: Re: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

          { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
+       { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },
         { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
Quoted 5 lines
Quoted 1 line

can it be like this for better readability. ?

It is just chip name and follow name conversion, which already upstreamed and documented.

Why do you think it not is good readability?

I thought maybe ALOK's point was to sort the list, which does make a lot of sense. But if you want to sort by the .data member, I would think you would make .compatible a secondary sort key, which means ls1028a would come before ls1046a, so you would end up with this instead:

static const struct of_device_id ls_pcie_ep_of_match[] = {
+ { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },

         { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
         { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },
         { .compatible = "fsl,ls2088a-pcie-ep", .data = &ls2_ep_drvdata },
         { .compatible = "fsl,lx2160ar2-pcie-ep", .data = &lx2_ep_drvdata },
         { },

};

author maintainer
#6 lore raw

RE: [External] : RE: [EXT] [PATCH v2 1/1] PCI: layerscape: Add EP mode support for ls1028a

Quoted 4 lines

Caution: EXT Email

Quoted 8 lines

yes, it is more about sort the list using .data and .compatible. key

much better if it we keep this as suggested by Frank,

static const struct of_device_id ls_pcie_ep_of_match[] = {
+ { .compatible = "fsl,ls1028a-pcie-ep", .data = &ls1_ep_drvdata },

         { .compatible = "fsl,ls1046a-pcie-ep", .data = &ls1_ep_drvdata },
         { .compatible = "fsl,ls1088a-pcie-ep", .data = &ls2_ep_drvdata },

Thanks, v3 sent.
Frank Li

Quoted 6 lines

Thanks,

Alok