All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Hexagon: Remove useless select of NO_IOPORT_MAP
@ 2014-09-24 19:21 Paul Bolle
  2014-09-25 10:11 ` Paul Bolle
  2014-09-30  1:25 ` rkuo
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Bolle @ 2014-09-24 19:21 UTC (permalink / raw)
  To: Richard Kuo; +Cc: linux-hexagon, linux-kernel

Hexagon's primary Kconfig entry has a select for NO_IOPORT_MAP. But
because hexagon never defines a Kconfig symbol NO_IOPORT_MAP this select
is a nop. It can be removed.

Perhaps hexagon should add its own Kconfig entry for NO_IOPORT_MAP and
have it default to 'y'. But since no one apparently had any problems
with HAS_IOPORT_MAP defaulting to 'y' on hexagon, as it currently does,
that is unlikely.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
Tested by playing with arch/hexagon/configs/comet_defconfig. After "make
oldconfig" the .config contains CONFIG_HAS_IOPORT_MAP=y both before and
after this patch, as is expected.

Actually, the only difference I found in the .config file was that after
this patch the .config file contained
    CONFIG_HEXAGON=y

I have no idea why. Did I botch my test?

 arch/hexagon/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig
index 4dc89d1f9c48..f1817eae107a 100644
--- a/arch/hexagon/Kconfig
+++ b/arch/hexagon/Kconfig
@@ -19,7 +19,6 @@ config HEXAGON
 	select GENERIC_IRQ_SHOW
 	select HAVE_ARCH_KGDB
 	select HAVE_ARCH_TRACEHOOK
-	select NO_IOPORT_MAP
 	select GENERIC_IOMAP
 	select GENERIC_SMP_IDLE_THREAD
 	select STACKTRACE_SUPPORT
-- 
1.9.3


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

* Re: [PATCH] Hexagon: Remove useless select of NO_IOPORT_MAP
  2014-09-24 19:21 [PATCH] Hexagon: Remove useless select of NO_IOPORT_MAP Paul Bolle
@ 2014-09-25 10:11 ` Paul Bolle
  2014-09-30  1:25 ` rkuo
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Bolle @ 2014-09-25 10:11 UTC (permalink / raw)
  To: Richard Kuo; +Cc: linux-hexagon, linux-kernel

On Wed, 2014-09-24 at 21:21 +0200, Paul Bolle wrote:
> Actually, the only difference I found in the .config file was that after
> this patch the .config file contained
>     CONFIG_HEXAGON=y
> 
> I have no idea why. Did I botch my test?

Apparently I did. Retested using next-20140925. There's no difference in
the .config file before and after the patch. That's a good thing! This
select really is useless.


Paul Bolle


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

* Re: [PATCH] Hexagon: Remove useless select of NO_IOPORT_MAP
  2014-09-24 19:21 [PATCH] Hexagon: Remove useless select of NO_IOPORT_MAP Paul Bolle
  2014-09-25 10:11 ` Paul Bolle
@ 2014-09-30  1:25 ` rkuo
  1 sibling, 0 replies; 3+ messages in thread
From: rkuo @ 2014-09-30  1:25 UTC (permalink / raw)
  To: Paul Bolle; +Cc: linux-hexagon, linux-kernel

On Wed, Sep 24, 2014 at 09:21:51PM +0200, Paul Bolle wrote:
> Hexagon's primary Kconfig entry has a select for NO_IOPORT_MAP. But
> because hexagon never defines a Kconfig symbol NO_IOPORT_MAP this select
> is a nop. It can be removed.
> 
> Perhaps hexagon should add its own Kconfig entry for NO_IOPORT_MAP and
> have it default to 'y'. But since no one apparently had any problems
> with HAS_IOPORT_MAP defaulting to 'y' on hexagon, as it currently does,
> that is unlikely.
> 
> Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
> ---
> Tested by playing with arch/hexagon/configs/comet_defconfig. After "make
> oldconfig" the .config contains CONFIG_HAS_IOPORT_MAP=y both before and
> after this patch, as is expected.
> 
> Actually, the only difference I found in the .config file was that after
> this patch the .config file contained
>     CONFIG_HEXAGON=y
> 
> I have no idea why. Did I botch my test?
> 
>  arch/hexagon/Kconfig | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig
> index 4dc89d1f9c48..f1817eae107a 100644
> --- a/arch/hexagon/Kconfig
> +++ b/arch/hexagon/Kconfig
> @@ -19,7 +19,6 @@ config HEXAGON
>  	select GENERIC_IRQ_SHOW
>  	select HAVE_ARCH_KGDB
>  	select HAVE_ARCH_TRACEHOOK
> -	select NO_IOPORT_MAP
>  	select GENERIC_IOMAP
>  	select GENERIC_SMP_IDLE_THREAD
>  	select STACKTRACE_SUPPORT
> -- 
> 1.9.3
> 

There seemed to be a convoluted history behind the ioport options, but yes this
is no longer needed/doesn't actually do anything.  Thanks!

Acked-by: Richard Kuo <rkuo@codeaurora.org>


-- 

Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

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

end of thread, other threads:[~2014-09-30  1:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24 19:21 [PATCH] Hexagon: Remove useless select of NO_IOPORT_MAP Paul Bolle
2014-09-25 10:11 ` Paul Bolle
2014-09-30  1:25 ` rkuo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.