Skip to contentSkip to conversation

bcma: Add dependency on OF_ADDRESS

PATCH Superseded Guenter Roeck 7 participants 20 messages Oct 9, 2014 – Oct 27, 2014 Broadcom specific amba driver (bcma)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcma: Add dependency on OF_ADDRESS

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")
Cc Hauke Mehrtens <[email protected]>
Cc Arnd Bergmann <[email protected]>
---
 drivers/bcma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/Kconfig +1 -1
index 0ee48be..ca4b420 100644
@@ -1,6 +1,6 @@
 config BCMA_POSSIBLE
 	bool
-	depends on HAS_IOMEM && HAS_DMA
+	depends on HAS_IOMEM && HAS_DMA && OF_ADDRESS
 	default y
 
 menu "Broadcom specific AMBA"
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Won't this make bcma im-POSSIBLE on MIPS? And maybe x86(_64), or at least add an unneeded dependency? I think we should somehow limit this to BCM5301X arch.

#2 lore raw
Quoted 9 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Won't this make bcma im-POSSIBLE on MIPS? And maybe x86(_64), or at least add an unneeded dependency? I think we should somehow limit this to BCM5301X arch.

sparc, not mips.

Something like "depends on !OF || OF_ADDRESS" would limit the impact to sparc, and only if OF is configured as well. I'll update accordingly and resubmit. Everything else would have to be done in the driver itself, which I rather not touch myself.

Guenter

#3 lore raw
In reply to Rafał Miłecki
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

btw. the OF_ADDRESS dependency was introduced by commit "bcma: get IRQ numbers from dt".

Regards,
Arend

Quoted 8 lines

Won't this make bcma im-POSSIBLE on MIPS? And maybe x86(_64), or at least add an unneeded dependency? I think we should somehow limit this to BCM5301X arch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw
Quoted 9 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

Regards,
Arend

Quoted 21 lines

btw. the OF_ADDRESS dependency was introduced by commit "bcma: get IRQ numbers from dt".

Regards,
Arend

Quoted 9 lines

Won't this make bcma im-POSSIBLE on MIPS? And maybe x86(_64), or at least add an unneeded dependency? I think we should somehow limit this to BCM5301X arch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#16 lore raw
In reply to Arend van Spriel
Quoted 10 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

You tell me. From drivers/of/Kconfig:

config OF_ADDRESS
def_bool y
depends on !SPARC
select OF_ADDRESS_PCI if PCI

Presumably there is a reason to disable OF_ADDRESS for sparc.

Quoted 3 lines

btw. the OF_ADDRESS dependency was introduced by commit "bcma: get IRQ numbers from dt".

Ah, sorry. Ok, I'll send v3 after taking a break (and waiting for additional comments).

Guenter

#19 lore raw
In reply to Arend van Spriel
Quoted 7 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Quoted 5 lines

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

btw. the OF_ADDRESS dependency was introduced by commit "bcma: get IRQ numbers from dt".

Looking into the code again: Really ? git blame tells me otherwise. Also, I don't see the commit you refer to in the upstream kernel. Maybe I am missing something.

Guenter

#5 lore raw
In reply to Arend van Spriel
Quoted 8 lines · Arend van Spriel
Quoted 7 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Quoted 5 lines
Quoted 2 lines

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

I have no idea. All I know is that the driver doesn't build anymore with OF enabled and OF_ADDRESS disabled.

Guenter

#6 lore raw
Quoted 9 lines · Guenter Roeck
Quoted 8 lines · Arend van Spriel
Quoted 7 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

I have no idea. All I know is that the driver doesn't build anymore with OF enabled and OF_ADDRESS disabled.

Device tree support in bcma is only needed on some SoC, when this is used on a PCIe card it is not needed.

I would just deactivate the parts that are using device tree in bcma when it is not available. I will send a patch after having something to eat.

Is there a better method which is compatible with SPARC than using of_translate_address() to get the reg address and also take the ranges attribute of the bus into account?

Hauke

#7 lore raw
Quoted 15 lines · Hauke Mehrtens
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Arend van Spriel
Quoted 9 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

Quoted 9 lines
Quoted 2 lines

I have no idea. All I know is that the driver doesn't build anymore with OF enabled and OF_ADDRESS disabled.

Device tree support in bcma is only needed on some SoC, when this is used on a PCIe card it is not needed.

I would just deactivate the parts that are using device tree in bcma when it is not available. I will send a patch after having something to eat.

Devicetree dependency is already covered with #ifdef CONFIG_OF. Problem is that it really needs #ifdef CONFIG_OF_ADDRESS. Though even that might be better than my patch, since it would at least build the driver on sparc as it used to do.

Quoted 4 lines

Is there a better method which is compatible with SPARC than using of_translate_address() to get the reg address and also take the ranges attribute of the bus into account?

No idea, sorry. Can you by any chance use pcie device information instead of depending on devicetree data ?

Guenter

#11 lore raw

PATCH 1/1 bcma: fix build when CONFIG_OF_ADDRESS is not set

In reply to Hauke Mehrtens

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")
---
 drivers/bcma/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/main.c +1 -1
index d1656c2..1000955 100644
@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
 	return false;
 }
 
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
 static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
 						     struct bcma_device *core)
 {
Signature · 1 line
1.9.1
author Reviewed-by on v1 1/1
#12 lore raw

Re: [PATCH] bcma: fix build when CONFIG_OF_ADDRESS is not set

Quoted 11 lines · Hauke Mehrtens

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")

Much better than my patch.

Also compile tested to make sure it fixes the build problem.

Guenter

Quoted 20 lines
---
 drivers/bcma/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/main.c +1 -1
index d1656c2..1000955 100644
@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
 	return false;
 }
 
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
 static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
 						     struct bcma_device *core)
 {
Signature · 1 line
1.9.1
#8 lore raw
In reply to Guenter Roeck
Quoted 30 lines · Guenter Roeck
Quoted 15 lines · Hauke Mehrtens
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Arend van Spriel
Quoted 9 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

Quoted 9 lines
Quoted 2 lines

I have no idea. All I know is that the driver doesn't build anymore with OF enabled and OF_ADDRESS disabled.

Device tree support in bcma is only needed on some SoC, when this is used on a PCIe card it is not needed.

I would just deactivate the parts that are using device tree in bcma when it is not available. I will send a patch after having something to eat.

Devicetree dependency is already covered with #ifdef CONFIG_OF. Problem is that it really needs #ifdef CONFIG_OF_ADDRESS. Though even that might be better than my patch, since it would at least build the driver on sparc as it used to do.

Quoted 6 lines
Quoted 4 lines

Is there a better method which is compatible with SPARC than using of_translate_address() to get the reg address and also take the ranges attribute of the bus into account?

No idea, sorry. Can you by any chance use pcie device information instead of depending on devicetree data ?

Device tree is not used for PCIe devices in bcma. We only use it when bcma is used for the system bus on some Broadcom SoCs, currently there is no plan to use device tree for PCIe devices in bcma. I think bcma is only used on wifi cards connected via PCIe on Sparc systems.

Hauke

#9 lore raw
Quoted 35 lines · Hauke Mehrtens
Quoted 34 lines · Guenter Roeck
Quoted 15 lines · Hauke Mehrtens
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Arend van Spriel
Quoted 9 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

Quoted 9 lines
Quoted 2 lines

I have no idea. All I know is that the driver doesn't build anymore with OF enabled and OF_ADDRESS disabled.

Device tree support in bcma is only needed on some SoC, when this is used on a PCIe card it is not needed.

I would just deactivate the parts that are using device tree in bcma when it is not available. I will send a patch after having something to eat.

Devicetree dependency is already covered with #ifdef CONFIG_OF. Problem is that it really needs #ifdef CONFIG_OF_ADDRESS. Though even that might be better than my patch, since it would at least build the driver on sparc as it used to do.

Quoted 4 lines

Is there a better method which is compatible with SPARC than using of_translate_address() to get the reg address and also take the ranges attribute of the bus into account?

Quoted 8 lines
Quoted 2 lines

No idea, sorry. Can you by any chance use pcie device information instead of depending on devicetree data ?

Device tree is not used for PCIe devices in bcma. We only use it when bcma is used for the system bus on some Broadcom SoCs, currently there is no plan to use device tree for PCIe devices in bcma. I think bcma is only used on wifi cards connected via PCIe on Sparc systems.

Ok. Well, with your patch the code is as good or as bad as it was prior to adding devicetree support to the driver, so hopefully should work.

Guenter

#17 lore raw
In reply to Guenter Roeck

Hi,

Quoted 12 lines · Guenter Roeck
Quoted 10 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Quoted 8 lines

You tell me. From drivers/of/Kconfig:

config OF_ADDRESS
def_bool y
depends on !SPARC
select OF_ADDRESS_PCI if PCI

Presumably there is a reason to disable OF_ADDRESS for sparc.

Why not ask the sparclinux list? (CC'd)

Thanks,

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
#18 lore raw

From: Julian Calaby <[email protected]>
Date: Fri, 10 Oct 2014 11:24:53 +1100

Quoted 17 lines

Hi,

Quoted 14 lines · Guenter Roeck
Quoted 10 lines · Arend van Spriel
Quoted 5 lines · Rafa©© Mi©©ecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

You tell me. From drivers/of/Kconfig:

Quoted 8 lines
Quoted 6 lines

config OF_ADDRESS
def_bool y
depends on !SPARC
select OF_ADDRESS_PCI if PCI

Presumably there is a reason to disable OF_ADDRESS for sparc.

Why not ask the sparclinux list? (CC'd)

On sparc, at boot time we precompute all of the addresses provided in the OF device tree.

So we need none of this OF_ADDRESS infrastructure.

Frankly, I've always believed that this is how address computation should be done on OF platforms, and it simplifies drivers massively. You really only need to implement 2 or 3 bus translators to make it work. Others have disagreed with me.

#10 lore raw
In reply to Hauke Mehrtens
Quoted 35 lines · Hauke Mehrtens
Quoted 34 lines · Guenter Roeck
Quoted 15 lines · Hauke Mehrtens
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Arend van Spriel
Quoted 9 lines · Arend van Spriel
Quoted 5 lines · Rafał Miłecki
Quoted 4 lines · Guenter Roeck

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

Does this mean on sparc (using allmodconfig) you will get CONFIG_OF and !CONFIG_OF_ADDRESS? Does that makes sense?

Is CONFIG_OF is used on sparc to access OpenBoot information?

Quoted 9 lines
Quoted 2 lines

I have no idea. All I know is that the driver doesn't build anymore with OF enabled and OF_ADDRESS disabled.

Device tree support in bcma is only needed on some SoC, when this is used on a PCIe card it is not needed.

I would just deactivate the parts that are using device tree in bcma when it is not available. I will send a patch after having something to eat.

Devicetree dependency is already covered with #ifdef CONFIG_OF. Problem is that it really needs #ifdef CONFIG_OF_ADDRESS. Though even that might be better than my patch, since it would at least build the driver on sparc as it used to do.

Quoted 4 lines

Is there a better method which is compatible with SPARC than using of_translate_address() to get the reg address and also take the ranges attribute of the bus into account?

Quoted 7 lines
Quoted 2 lines

No idea, sorry. Can you by any chance use pcie device information instead of depending on devicetree data ?

Device tree is not used for PCIe devices in bcma. We only use it when bcma is used for the system bus on some Broadcom SoCs, currently there is no plan to use device tree for PCIe devices in bcma. I think bcma is only used on wifi cards connected via PCIe on Sparc systems.

When we mainlined I verified the brcmsmac was working on a sparc system. However, at that time we were not using BCMA. I do not recall whether or not we tested on sparc with BCMA support. I might give it a spin again.

Regards,
Arend

#13 lore raw

Re: [PATCH] bcma: fix build when CONFIG_OF_ADDRESS is not set

In reply to Hauke Mehrtens
Quoted 11 lines · Hauke Mehrtens

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")

The upstream kernel still does not include this patch, and the sparc64 build is still broken.

Is this patch on its way upstream ?

Guenter

Quoted 27 lines
---
 drivers/bcma/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/main.c +1 -1
index d1656c2..1000955 100644
@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
 	return false;
 }
 
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
 static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
 						     struct bcma_device *core)
 {
Signature · 7 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
#14 lore raw

Re: [PATCH] bcma: fix build when CONFIG_OF_ADDRESS is not set

Yes, I have it queued. Things have been delayed due to my recent travels, etc.

Quoted 48 lines · Guenter Roeck
Quoted 11 lines · Hauke Mehrtens

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")

The upstream kernel still does not include this patch, and the sparc64 build is still broken.

Is this patch on its way upstream ?

Guenter

Quoted 27 lines
---
 drivers/bcma/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/main.c +1 -1
index d1656c2..1000955 100644
@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
 	return false;
 }
 
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
 static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
 						     struct bcma_device *core)
 {
Signature · 7 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#15 lore raw

Re: [PATCH] bcma: fix build when CONFIG_OF_ADDRESS is not set

Quoted 3 lines · John W. Linville

Yes, I have it queued. Things have been delayed due to my recent travels, etc.

Thanks!

Guenter

Quoted 53 lines · Guenter Roeck
Quoted 48 lines · Hauke Mehrtens
Quoted 11 lines

Commit 2101e533f41a ("bcma: register bcma as device tree driver") introduces a hard dependency on OF_ADDRESS into the bcma driver. OF_ADDRESS is specifically disabled for the sparc architecture. This results in the following error when building sparc64:allmodconfig.

drivers/bcma/main.c: In function 'bcma_of_find_child_device':
drivers/bcma/main.c:150:3: error: implicit declaration of function 'of_translate_address'

Fixes 2101e533f41a ("bcma: register bcma as device tree driver")

The upstream kernel still does not include this patch, and the sparc64 build is still broken.

Is this patch on its way upstream ?

Guenter

Quoted 27 lines
---
 drivers/bcma/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bcma/main.c +1 -1
index d1656c2..1000955 100644
@@ -132,7 +132,7 @@ static bool bcma_is_core_needed_early(u16 core_id)
 	return false;
 }
 
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
 static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
 						     struct bcma_device *core)
 {
Signature · 7 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.