linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fsl-dpaa2/eth: Enable multi-arch compile
@ 2018-03-09 18:40 Ioana Radulescu
  2018-03-09 18:40 ` [PATCH v2 1/2] staging: fsl-dpaa2/eth: Use __leXX types where needed Ioana Radulescu
  2018-03-09 18:40 ` [PATCH v2 2/2] staging: fsl-dpaa2/eth: allow the driver to compile multi-arch Ioana Radulescu
  0 siblings, 2 replies; 3+ messages in thread
From: Ioana Radulescu @ 2018-03-09 18:40 UTC (permalink / raw)
  To: gregkh; +Cc: devel, roy.pledge, linux-kernel, laurentiu.tudor

The Ethernet driver can be built on multiple architectures, so
remove the ARCH_LAYERSCAPE dependency from its Kconfig.

This patchset is marked as v2 because it includes the final patch
from this set: https://lkml.org/lkml/2018/2/26/626, preceeded by
a patch fixing a sparse warning when building on x86_64.

Ioana Radulescu (2):
  staging: fsl-dpaa2/eth: Use __leXX types where needed
  staging: fsl-dpaa2/eth: allow the driver to compile multi-arch

 drivers/staging/fsl-dpaa2/Kconfig             | 2 +-
 drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] staging: fsl-dpaa2/eth: Use __leXX types where needed
  2018-03-09 18:40 [PATCH v2 0/2] fsl-dpaa2/eth: Enable multi-arch compile Ioana Radulescu
@ 2018-03-09 18:40 ` Ioana Radulescu
  2018-03-09 18:40 ` [PATCH v2 2/2] staging: fsl-dpaa2/eth: allow the driver to compile multi-arch Ioana Radulescu
  1 sibling, 0 replies; 3+ messages in thread
From: Ioana Radulescu @ 2018-03-09 18:40 UTC (permalink / raw)
  To: gregkh; +Cc: devel, roy.pledge, linux-kernel, laurentiu.tudor

One MC command structure got away with using uXX fields instead
of __leXX. Fix it.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
---
v2: new patch

 drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h b/drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h
index 3120e22..d6f96f302 100644
--- a/drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h
+++ b/drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h
@@ -539,8 +539,8 @@ struct dpni_rsp_get_taildrop {
 };
 
 struct dpni_rsp_get_api_version {
-	u16 major;
-	u16 minor;
+	__le16 major;
+	__le16 minor;
 };
 
 #endif /* _FSL_DPNI_CMD_H */
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] staging: fsl-dpaa2/eth: allow the driver to compile multi-arch
  2018-03-09 18:40 [PATCH v2 0/2] fsl-dpaa2/eth: Enable multi-arch compile Ioana Radulescu
  2018-03-09 18:40 ` [PATCH v2 1/2] staging: fsl-dpaa2/eth: Use __leXX types where needed Ioana Radulescu
@ 2018-03-09 18:40 ` Ioana Radulescu
  1 sibling, 0 replies; 3+ messages in thread
From: Ioana Radulescu @ 2018-03-09 18:40 UTC (permalink / raw)
  To: gregkh; +Cc: devel, roy.pledge, linux-kernel, laurentiu.tudor

Drop dependency on ARCH_LAYERSCAPE (which in turn depends on ARM64),
thus allowing this driver to compile on all architectures supported
by the fsl-mc bus driver.

This was compile tested on:
 - powerpc (corenet_basic_defconfig, ppc64_defconfig)
 - x86 (i386_defconfig, x86_64_defconfig, needs CONFIG_OF)
 - arm64 (defconfig)

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
---
v2: no change

 drivers/staging/fsl-dpaa2/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fsl-dpaa2/Kconfig b/drivers/staging/fsl-dpaa2/Kconfig
index dfff675..730fd6d 100644
--- a/drivers/staging/fsl-dpaa2/Kconfig
+++ b/drivers/staging/fsl-dpaa2/Kconfig
@@ -4,7 +4,7 @@
 
 config FSL_DPAA2
 	bool "Freescale DPAA2 devices"
-	depends on FSL_MC_BUS && ARCH_LAYERSCAPE
+	depends on FSL_MC_BUS
 	---help---
 	  Build drivers for Freescale DataPath Acceleration
 	  Architecture (DPAA2) family of SoCs.
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-09 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 18:40 [PATCH v2 0/2] fsl-dpaa2/eth: Enable multi-arch compile Ioana Radulescu
2018-03-09 18:40 ` [PATCH v2 1/2] staging: fsl-dpaa2/eth: Use __leXX types where needed Ioana Radulescu
2018-03-09 18:40 ` [PATCH v2 2/2] staging: fsl-dpaa2/eth: allow the driver to compile multi-arch Ioana Radulescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).