[PATCH 00/15] powerpc: kill PPC_OF

2015-01-31 Thread Kevin Hao
Hi, This patch series tries to kill the PPC_OF. Kevin Hao (15): PCI: introduce pci_device_to_OF_node() for !CONFIG_OF sata_svw: remove the dependency on PPC_OF fbdev: aty128fb: replace PPC_OF with PPC fbdev: radeon: replace PPC_OF with PPC fbdev: imsttfb: remove the dependency on

[PATCH 02/15] sata_svw: remove the dependency on PPC_OF

2015-01-31 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao haoke...@gmail.com --- drivers/ata/sata_svw.c | 11

[PATCH 01/15] PCI: introduce pci_device_to_OF_node() for !CONFIG_OF

2015-01-31 Thread Kevin Hao
So we can avoid the ugly #ifdef in some drivers. Signed-off-by: Kevin Hao haoke...@gmail.com --- include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index 8323cbf93913..421eb6a9e600 100644 --- a/include/linux/pci.h +++

[PATCH 07/15] fbdev: riva: remove the dependency on PPC_OF

2015-01-31 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao haoke...@gmail.com ---

[PATCH 08/15] fbdev: remove the unnecessary includes of ppc specific header files

2015-01-31 Thread Kevin Hao
In the current kernel, we don't need to include these arch specific header files for ppc. Signed-off-by: Kevin Hao haoke...@gmail.com --- drivers/video/fbdev/core/fbmon.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/core/fbmon.c

[PATCH 04/15] fbdev: radeon: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC.

[PATCH 03/15] fbdev: aty128fb: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC.

[PATCH 11/15] mmc: kconfig: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC.

[PATCH 09/15] fbdev: kconfig: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC.

[PATCH 10/15] gpio: kconfig: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC.

Re: [PATCH 02/15] sata_svw: remove the dependency on PPC_OF

2015-01-31 Thread Tejun Heo
On Sat, Jan 31, 2015 at 09:47:32PM +0800, Kevin Hao wrote: The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF.

[PATCH 06/15] fbdev: nvidia: remove the dependency on PPC_OF

2015-01-31 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to include the ppc arch specific header files and depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao haoke...@gmail.com ---

[PATCH 05/15] fbdev: imsttfb: remove the dependency on PPC_OF

2015-01-31 Thread Kevin Hao
The OF functionality has moved to a common place and be used by many archs. So we don't need to depend on PPC_OF option any more. This is a preparation for killing PPC_OF. Signed-off-by: Kevin Hao haoke...@gmail.com --- drivers/video/fbdev/imsttfb.c | 4 1 file changed, 4 deletions(-) diff

[PATCH 13/15] tty: kconfig: remove the superfluous dependency on PPC_OF

2015-01-31 Thread Kevin Hao
In the current kernel, the CONFIG_PPC_OF is always 'y' for the ppc arch. So we don't need to check it with other ppc specific options. Signed-off-by: Kevin Hao haoke...@gmail.com --- drivers/tty/serial/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 14/15] usb: kconfig: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC

[PATCH 15/15] powerpc: kill PPC_OF

2015-01-31 Thread Kevin Hao
We have set CONFIG_PPC_OF to always 'y' in commit 0a498d96a332 (powerpc: set CONFIG_PPC_OF=y always for ARCH=powerpc) nine years ago. And the arch/ppc also has gone away for many years. The OF functionality was also moved to a common place and be used by many archs. So it does make no sense to

[PATCH 12/15] mtd: kconfig: replace PPC_OF with PPC

2015-01-31 Thread Kevin Hao
The PPC_OF is a ppc specific option which is used to mean that the firmware device tree access functions are available. Since all the ppc platforms have a device tree, it is aways set to 'y' for ppc. So it makes no sense to keep a such option in the current kernel. Replace it with PPC.

Re: [PATCH] powerpc/mm: bail out early when flushing TLB page

2015-01-31 Thread Benjamin Herrenschmidt
On Fri, 2015-01-30 at 19:08 +0700, Arseny Solokha wrote: MMU_NO_CONTEXT is conditionally defined as 0 or (unsigned int)-1. However, in __flush_tlb_page() a corresponding variable is only tested for open coded 0, which can cause NULL pointer dereference if `mm' argument was legitimately passed

Re: [PATCH 05/15] fbdev: imsttfb: remove the dependency on PPC_OF

2015-01-31 Thread Kevin Hao
On Sun, Feb 01, 2015 at 01:44:33PM +1100, Stephen Rothwell wrote: Hi Kevin, On Sat, 31 Jan 2015 21:47:35 +0800 Kevin Hao haoke...@gmail.com wrote: The OF functionality has moved to a common place and be used by many archs. So we don't need to depend on PPC_OF option any more. This is a

nvram and generic_nvram modules are problematic, was Re: [PATCH] arch: m68k: mac: misc.c: Remove some unused functions

2015-01-31 Thread Finn Thain
On Sun, 4 Jan 2015, Geert Uytterhoeven wrote: On Sun, Jan 4, 2015 at 8:21 AM, Finn Thain fth...@telegraphics.com.au wrote: On Thu, 1 Jan 2015, Rickard Strandqvist wrote: Removes some functions that are not used anywhere: mac_pram_write() mac_pram_read() ... I'd rather not remove all

Re: [PATCH 05/15] fbdev: imsttfb: remove the dependency on PPC_OF

2015-01-31 Thread Stephen Rothwell
Hi Kevin, On Sat, 31 Jan 2015 21:47:35 +0800 Kevin Hao haoke...@gmail.com wrote: The OF functionality has moved to a common place and be used by many archs. So we don't need to depend on PPC_OF option any more. This is a preparation for killing PPC_OF. I suspect that you want to do the