Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ioc4: CONFIG split

The SGI IOC4 I/O controller chip drivers are currently all configured by
CONFIG_BLK_DEV_SGIIOC4. This is undesirable as not all IOC4 hardware features
are needed by all systems.

This patch adds two configuration variables, CONFIG_SGI_IOC4 for core IOC4
driver support (see patch 1/3 in this series for further explanation) and
CONFIG_SERIAL_SGI_IOC4 to independently enable serial port support.

Signed-off-by: Brent Casavant <bcasavan@sgi.com>
Acked-by: Pat Gefre <pfg@sgi.com>
Acked-by: Jeremy Higdon <jeremy@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Brent Casavant and committed by
Linus Torvalds
e5d310b3 22329b51

+48 -5
+6
arch/ia64/configs/sn2_defconfig
··· 588 588 CONFIG_SERIAL_CORE=y 589 589 CONFIG_SERIAL_CORE_CONSOLE=y 590 590 CONFIG_SERIAL_SGI_L1_CONSOLE=y 591 + CONFIG_SERIAL_SGI_IOC4=y 591 592 CONFIG_UNIX98_PTYS=y 592 593 CONFIG_LEGACY_PTYS=y 593 594 CONFIG_LEGACY_PTY_COUNT=256 ··· 787 786 # CONFIG_INFINIBAND_MTHCA_DEBUG is not set 788 787 CONFIG_INFINIBAND_IPOIB=m 789 788 # CONFIG_INFINIBAND_IPOIB_DEBUG is not set 789 + 790 + # 791 + # SN Devices 792 + # 793 + CONFIG_SGI_IOC4=y 790 794 791 795 # 792 796 # File systems
+6
arch/ia64/defconfig
··· 638 638 CONFIG_SERIAL_CORE=y 639 639 CONFIG_SERIAL_CORE_CONSOLE=y 640 640 CONFIG_SERIAL_SGI_L1_CONSOLE=y 641 + CONFIG_SERIAL_SGI_IOC4=y 641 642 CONFIG_UNIX98_PTYS=y 642 643 CONFIG_LEGACY_PTYS=y 643 644 CONFIG_LEGACY_PTY_COUNT=256 ··· 942 941 # CONFIG_INFINIBAND_MTHCA_DEBUG is not set 943 942 CONFIG_INFINIBAND_IPOIB=m 944 943 # CONFIG_INFINIBAND_IPOIB_DEBUG is not set 944 + 945 + # 946 + # SN Devices 947 + # 948 + CONFIG_SGI_IOC4=y 945 949 946 950 # 947 951 # File systems
+2
drivers/Kconfig
··· 58 58 59 59 source "drivers/infiniband/Kconfig" 60 60 61 + source "drivers/sn/Kconfig" 62 + 61 63 endmenu
+1 -1
drivers/Makefile
··· 61 61 obj-$(CONFIG_CPU_FREQ) += cpufreq/ 62 62 obj-$(CONFIG_MMC) += mmc/ 63 63 obj-$(CONFIG_INFINIBAND) += infiniband/ 64 - obj-$(CONFIG_BLK_DEV_SGIIOC4) += sn/ 64 + obj-$(CONFIG_SGI_IOC4) += sn/ 65 65 obj-y += firmware/ 66 66 obj-$(CONFIG_CRYPTO) += crypto/
+2 -2
drivers/ide/Kconfig
··· 672 672 chipsets. 673 673 674 674 config BLK_DEV_SGIIOC4 675 - tristate "Silicon Graphics IOC4 chipset support" 676 - depends on IA64_SGI_SN2 || IA64_GENERIC 675 + tristate "Silicon Graphics IOC4 chipset ATA/ATAPI support" 676 + depends on (IA64_SGI_SN2 || IA64_GENERIC) && SGI_IOC4 677 677 help 678 678 This driver adds PIO & MultiMode DMA-2 support for the SGI IOC4 679 679 chipset, which has one channel and can support two devices.
+9
drivers/serial/Kconfig
··· 843 843 To compile this driver as a module, choose M here: the 844 844 module will be called jsm. 845 845 846 + config SERIAL_SGI_IOC4 847 + tristate "SGI IOC4 controller serial support" 848 + depends on (IA64_GENERIC || IA64_SGI_SN2) && SGI_IOC4 849 + select SERIAL_CORE 850 + help 851 + If you have an SGI Altix with an IOC4 based Base IO card 852 + and wish to use the serial ports on this card, say Y. 853 + Otherwise, say N. 854 + 846 855 endmenu
+1 -1
drivers/serial/Makefile
··· 51 51 obj-$(CONFIG_SERIAL_JSM) += jsm/ 52 52 obj-$(CONFIG_SERIAL_TXX9) += serial_txx9.o 53 53 obj-$(CONFIG_SERIAL_VR41XX) += vr41xx_siu.o 54 - obj-$(CONFIG_BLK_DEV_SGIIOC4) += ioc4_serial.o 54 + obj-$(CONFIG_SERIAL_SGI_IOC4) += ioc4_serial.o
+20
drivers/sn/Kconfig
··· 1 + # 2 + # Miscellaneous SN-specific devices 3 + # 4 + 5 + menu "SN Devices" 6 + 7 + config SGI_IOC4 8 + tristate "SGI IOC4 Base IO support" 9 + depends on IA64_GENERIC || IA64_SGI_SN2 10 + default m 11 + ---help--- 12 + This option enables basic support for the SGI IOC4-based Base IO 13 + controller card. This option does not enable any specific 14 + functions on such a card, but provides necessary infrastructure 15 + for other drivers to utilize. 16 + 17 + If you have an SGI Altix with an IOC4-based 18 + I/O controller say Y. Otherwise say N. 19 + 20 + endmenu
+1 -1
drivers/sn/Makefile
··· 3 3 # 4 4 # 5 5 6 - obj-$(CONFIG_BLK_DEV_SGIIOC4) += ioc4.o 6 + obj-$(CONFIG_SGI_IOC4) += ioc4.o