Skip to contentSkip to conversation

drivers: ntb: Kconfig: pedantic cleanups

PATCH In review Enrico Weigelt, metux IT consult 3 participants 5 messages Mar 6, 2019 – Mar 28, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: ntb: Kconfig: pedantic cleanups

---
 drivers/ntb/Kconfig          | 20 ++++++++++----------
 drivers/ntb/hw/amd/Kconfig   |  4 ++--
 drivers/ntb/hw/idt/Kconfig   | 41 ++++++++++++++++++++---------------------
 drivers/ntb/hw/intel/Kconfig |  4 ++--
 drivers/ntb/hw/mscc/Kconfig  |  8 ++++----
 drivers/ntb/test/Kconfig     | 26 +++++++++++++-------------
 6 files changed, 51 insertions(+), 52 deletions(-)
drivers/ntb/Kconfig +10 -10
index 95944e5..5ce3fdd 100644
@@ -2,13 +2,13 @@ menuconfig NTB
 	tristate "Non-Transparent Bridge support"
 	depends on PCI
 	help
-	 The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
-	 connecting 2 systems.  When configured, writes to the device's PCI
-	 mapped memory will be mirrored to a buffer on the remote system.  The
-	 ntb Linux driver uses this point-to-point communication as a method to
-	 transfer data from one system to the other.
+	  The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
+	  connecting 2 systems.  When configured, writes to the device's PCI
+	  mapped memory will be mirrored to a buffer on the remote system.  The
+	  ntb Linux driver uses this point-to-point communication as a method to
+	  transfer data from one system to the other.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 if NTB
 
@@ -19,10 +19,10 @@ source "drivers/ntb/test/Kconfig"
 config NTB_TRANSPORT
 	tristate "NTB Transport Client"
 	help
-	 This is a transport driver that enables connected systems to exchange
-	 messages over the ntb hardware.  The transport exposes a queue pair api
-	 to client drivers.
+	  This is a transport driver that enables connected systems to exchange
+	  messages over the ntb hardware.  The transport exposes a queue pair api
+	  to client drivers.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 endif # NTB
drivers/ntb/hw/amd/Kconfig +2 -2
index cfe903c..9a90f17 100644
@@ -2,6 +2,6 @@ config NTB_AMD
 	tristate "AMD Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports AMD NTB on capable Zeppelin hardware.
+	  This driver supports AMD NTB on capable Zeppelin hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/idt/Kconfig +20 -21

48 lines not on this page · raw message

drivers/ntb/hw/intel/Kconfig +2 -2
index 91f995e..c166d50 100644
@@ -2,6 +2,6 @@ config NTB_INTEL
 	tristate "Intel Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports Intel NTB on capable Xeon and Atom hardware.
+	  This driver supports Intel NTB on capable Xeon and Atom hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/mscc/Kconfig +4 -4
index 013ed67..74ec015 100644
@@ -2,8 +2,8 @@ config NTB_SWITCHTEC
 	tristate "MicroSemi Switchtec Non-Transparent Bridge Support"
 	select PCI_SW_SWITCHTEC
 	help
-	 Enables NTB support for Switchtec PCI switches. This also
-	 selects the Switchtec management driver as they share the same
-	 hardware interface.
+	  Enables NTB support for Switchtec PCI switches. This also
+	  selects the Switchtec management driver as they share the same
+	  hardware interface.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/test/Kconfig +13 -13
index a5d0eda..416ab56 100644
@@ -1,27 +1,27 @@
 config NTB_PINGPONG
 	tristate "NTB Ping Pong Test Client"
 	help
-	 This is a simple ping pong driver that exercises the scratchpads and
-	 doorbells of the ntb hardware.  This driver may be used to test that
-	 your ntb hardware and drivers are functioning at a basic level.
+	  This is a simple ping pong driver that exercises the scratchpads and
+	  doorbells of the ntb hardware.  This driver may be used to test that
+	  your ntb hardware and drivers are functioning at a basic level.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_TOOL
 	tristate "NTB Debugging Tool Test Client"
 	help
-	 This is a simple debugging driver that enables the doorbell and
-	 scratchpad registers to be read and written from the debugfs.  This
-	 enables more complicated debugging to be scripted from user space.
-	 This driver may be used to test that your ntb hardware and drivers are
-	 functioning at a basic level.
+	  This is a simple debugging driver that enables the doorbell and
+	  scratchpad registers to be read and written from the debugfs.  This
+	  enables more complicated debugging to be scripted from user space.
+	  This driver may be used to test that your ntb hardware and drivers are
+	  functioning at a basic level.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_PERF
 	tristate "NTB RAW Perf Measuring Tool"
 	help
-	 This is a tool to measure raw NTB performance by transferring data
-	 to and from the window without additional software interaction.
+	  This is a tool to measure raw NTB performance by transferring data
+	  to and from the window without additional software interaction.
 
-	 If unsure, say N.
+	  If unsure, say N.
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 drivers: ntb: Kconfig: pedantic cleanups

Formatting of Kconfig files doesn't look so pretty, so just take damp cloth and clean it up.

---
 drivers/ntb/Kconfig          | 20 ++++++++++----------
 drivers/ntb/hw/amd/Kconfig   |  4 ++--
 drivers/ntb/hw/idt/Kconfig   | 41 ++++++++++++++++++++---------------------
 drivers/ntb/hw/intel/Kconfig |  4 ++--
 drivers/ntb/hw/mscc/Kconfig  |  8 ++++----
 drivers/ntb/test/Kconfig     | 26 +++++++++++++-------------
 6 files changed, 51 insertions(+), 52 deletions(-)
drivers/ntb/Kconfig +10 -10
index 95944e5..5ce3fdd 100644
@@ -2,13 +2,13 @@ menuconfig NTB
 	tristate "Non-Transparent Bridge support"
 	depends on PCI
 	help
-	 The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
-	 connecting 2 systems.  When configured, writes to the device's PCI
-	 mapped memory will be mirrored to a buffer on the remote system.  The
-	 ntb Linux driver uses this point-to-point communication as a method to
-	 transfer data from one system to the other.
+	  The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
+	  connecting 2 systems.  When configured, writes to the device's PCI
+	  mapped memory will be mirrored to a buffer on the remote system.  The
+	  ntb Linux driver uses this point-to-point communication as a method to
+	  transfer data from one system to the other.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 if NTB
 
@@ -19,10 +19,10 @@ source "drivers/ntb/test/Kconfig"
 config NTB_TRANSPORT
 	tristate "NTB Transport Client"
 	help
-	 This is a transport driver that enables connected systems to exchange
-	 messages over the ntb hardware.  The transport exposes a queue pair api
-	 to client drivers.
+	  This is a transport driver that enables connected systems to exchange
+	  messages over the ntb hardware.  The transport exposes a queue pair api
+	  to client drivers.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 endif # NTB
drivers/ntb/hw/amd/Kconfig +2 -2
index cfe903c..9a90f17 100644
@@ -2,6 +2,6 @@ config NTB_AMD
 	tristate "AMD Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports AMD NTB on capable Zeppelin hardware.
+	  This driver supports AMD NTB on capable Zeppelin hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/idt/Kconfig +20 -21

48 lines not on this page · raw message

drivers/ntb/hw/intel/Kconfig +2 -2
index 91f995e..c166d50 100644
@@ -2,6 +2,6 @@ config NTB_INTEL
 	tristate "Intel Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports Intel NTB on capable Xeon and Atom hardware.
+	  This driver supports Intel NTB on capable Xeon and Atom hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/mscc/Kconfig +4 -4
index 013ed67..74ec015 100644
@@ -2,8 +2,8 @@ config NTB_SWITCHTEC
 	tristate "MicroSemi Switchtec Non-Transparent Bridge Support"
 	select PCI_SW_SWITCHTEC
 	help
-	 Enables NTB support for Switchtec PCI switches. This also
-	 selects the Switchtec management driver as they share the same
-	 hardware interface.
+	  Enables NTB support for Switchtec PCI switches. This also
+	  selects the Switchtec management driver as they share the same
+	  hardware interface.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/test/Kconfig +13 -13
index a5d0eda..416ab56 100644
@@ -1,27 +1,27 @@
 config NTB_PINGPONG
 	tristate "NTB Ping Pong Test Client"
 	help
-	 This is a simple ping pong driver that exercises the scratchpads and
-	 doorbells of the ntb hardware.  This driver may be used to test that
-	 your ntb hardware and drivers are functioning at a basic level.
+	  This is a simple ping pong driver that exercises the scratchpads and
+	  doorbells of the ntb hardware.  This driver may be used to test that
+	  your ntb hardware and drivers are functioning at a basic level.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_TOOL
 	tristate "NTB Debugging Tool Test Client"
 	help
-	 This is a simple debugging driver that enables the doorbell and
-	 scratchpad registers to be read and written from the debugfs.  This
-	 enables more complicated debugging to be scripted from user space.
-	 This driver may be used to test that your ntb hardware and drivers are
-	 functioning at a basic level.
+	  This is a simple debugging driver that enables the doorbell and
+	  scratchpad registers to be read and written from the debugfs.  This
+	  enables more complicated debugging to be scripted from user space.
+	  This driver may be used to test that your ntb hardware and drivers are
+	  functioning at a basic level.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_PERF
 	tristate "NTB RAW Perf Measuring Tool"
 	help
-	 This is a tool to measure raw NTB performance by transferring data
-	 to and from the window without additional software interaction.
+	  This is a tool to measure raw NTB performance by transferring data
+	  to and from the window without additional software interaction.
 
-	 If unsure, say N.
+	  If unsure, say N.
Signature · 1 line
1.9.1
#2 lore raw

[+cc Jon, Dave, Allen]

Quoted 2 lines · metux IT consult

Formatting of Kconfig files doesn't look so pretty, so just take damp cloth and clean it up.

Oops, I didn't notice that this was a v2. I first thought this was a 2/2 patch. Sorry for the noise. Most of my comments still apply here, I think.

Quoted 193 lines
---
 drivers/ntb/Kconfig          | 20 ++++++++++----------
 drivers/ntb/hw/amd/Kconfig   |  4 ++--
 drivers/ntb/hw/idt/Kconfig   | 41 ++++++++++++++++++++---------------------
 drivers/ntb/hw/intel/Kconfig |  4 ++--
 drivers/ntb/hw/mscc/Kconfig  |  8 ++++----
 drivers/ntb/test/Kconfig     | 26 +++++++++++++-------------
 6 files changed, 51 insertions(+), 52 deletions(-)
drivers/ntb/Kconfig +10 -10
index 95944e5..5ce3fdd 100644
@@ -2,13 +2,13 @@ menuconfig NTB
 	tristate "Non-Transparent Bridge support"
 	depends on PCI
 	help
-	 The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
-	 connecting 2 systems.  When configured, writes to the device's PCI
-	 mapped memory will be mirrored to a buffer on the remote system.  The
-	 ntb Linux driver uses this point-to-point communication as a method to
-	 transfer data from one system to the other.
+	  The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
+	  connecting 2 systems.  When configured, writes to the device's PCI
+	  mapped memory will be mirrored to a buffer on the remote system.  The
+	  ntb Linux driver uses this point-to-point communication as a method to
+	  transfer data from one system to the other.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 if NTB
 
@@ -19,10 +19,10 @@ source "drivers/ntb/test/Kconfig"
 config NTB_TRANSPORT
 	tristate "NTB Transport Client"
 	help
-	 This is a transport driver that enables connected systems to exchange
-	 messages over the ntb hardware.  The transport exposes a queue pair api
-	 to client drivers.
+	  This is a transport driver that enables connected systems to exchange
+	  messages over the ntb hardware.  The transport exposes a queue pair api
+	  to client drivers.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 endif # NTB
drivers/ntb/hw/amd/Kconfig +2 -2
index cfe903c..9a90f17 100644
@@ -2,6 +2,6 @@ config NTB_AMD
 	tristate "AMD Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports AMD NTB on capable Zeppelin hardware.
+	  This driver supports AMD NTB on capable Zeppelin hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/idt/Kconfig +20 -21
index f8948cf..5d106ac 100644
@@ -3,28 +3,27 @@ config NTB_IDT
 	depends on PCI
 	select HWMON
 	help
-	 This driver supports NTB of cappable IDT PCIe-switches.
+	  This driver supports NTB of cappable IDT PCIe-switches.
 
-	 Some of the pre-initializations must be made before IDT PCIe-switch
-	 exposes it NT-functions correctly. It should be done by either proper
-	 initialisation of EEPROM connected to master smbus of the switch or
-	 by BIOS using slave-SMBus interface changing corresponding registers
-	 value. Evidently it must be done before PCI bus enumeration is
-	 finished in Linux kernel.
+	  Some of the pre-initializations must be made before IDT PCIe-switch
+	  exposes it NT-functions correctly. It should be done by either proper
+	  initialisation of EEPROM connected to master smbus of the switch or
+	  by BIOS using slave-SMBus interface changing corresponding registers
+	  value. Evidently it must be done before PCI bus enumeration is
+	  finished in Linux kernel.
 
-	 First of all partitions must be activated and properly assigned to all
-	 the ports with NT-functions intended to be activated (see SWPARTxCTL
-	 and SWPORTxCTL registers). Then all NT-function BARs must be enabled
-	 with chosen valid aperture. For memory windows related BARs the
-	 aperture settings shall determine the maximum size of memory windows
-	 accepted by a BAR. Note that BAR0 must map PCI configuration space
-	 registers.
+	  First of all partitions must be activated and properly assigned to all
+	  the ports with NT-functions intended to be activated (see SWPARTxCTL
+	  and SWPORTxCTL registers). Then all NT-function BARs must be enabled
+	  with chosen valid aperture. For memory windows related BARs the
+	  aperture settings shall determine the maximum size of memory windows
+	  accepted by a BAR. Note that BAR0 must map PCI configuration space
+	  registers.
 
-	 It's worth to note, that since a part of this driver relies on the
-	 BAR settings of peer NT-functions, the BAR setups can't be done over
-	 kernel PCI fixups. That's why the alternative pre-initialization
-	 techniques like BIOS using SMBus interface or EEPROM should be
-	 utilized.
-
-	 If unsure, say N.
+	  It's worth to note, that since a part of this driver relies on the
+	  BAR settings of peer NT-functions, the BAR setups can't be done over
+	  kernel PCI fixups. That's why the alternative pre-initialization
+	  techniques like BIOS using SMBus interface or EEPROM should be
+	  utilized.
 
+	  If unsure, say N.
drivers/ntb/hw/intel/Kconfig +2 -2
index 91f995e..c166d50 100644
@@ -2,6 +2,6 @@ config NTB_INTEL
 	tristate "Intel Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports Intel NTB on capable Xeon and Atom hardware.
+	  This driver supports Intel NTB on capable Xeon and Atom hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/mscc/Kconfig +4 -4
index 013ed67..74ec015 100644
@@ -2,8 +2,8 @@ config NTB_SWITCHTEC
 	tristate "MicroSemi Switchtec Non-Transparent Bridge Support"
 	select PCI_SW_SWITCHTEC
 	help
-	 Enables NTB support for Switchtec PCI switches. This also
-	 selects the Switchtec management driver as they share the same
-	 hardware interface.
+	  Enables NTB support for Switchtec PCI switches. This also
+	  selects the Switchtec management driver as they share the same
+	  hardware interface.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/test/Kconfig +13 -13
index a5d0eda..416ab56 100644
@@ -1,27 +1,27 @@
 config NTB_PINGPONG
 	tristate "NTB Ping Pong Test Client"
 	help
-	 This is a simple ping pong driver that exercises the scratchpads and
-	 doorbells of the ntb hardware.  This driver may be used to test that
-	 your ntb hardware and drivers are functioning at a basic level.
+	  This is a simple ping pong driver that exercises the scratchpads and
+	  doorbells of the ntb hardware.  This driver may be used to test that
+	  your ntb hardware and drivers are functioning at a basic level.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_TOOL
 	tristate "NTB Debugging Tool Test Client"
 	help
-	 This is a simple debugging driver that enables the doorbell and
-	 scratchpad registers to be read and written from the debugfs.  This
-	 enables more complicated debugging to be scripted from user space.
-	 This driver may be used to test that your ntb hardware and drivers are
-	 functioning at a basic level.
+	  This is a simple debugging driver that enables the doorbell and
+	  scratchpad registers to be read and written from the debugfs.  This
+	  enables more complicated debugging to be scripted from user space.
+	  This driver may be used to test that your ntb hardware and drivers are
+	  functioning at a basic level.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_PERF
 	tristate "NTB RAW Perf Measuring Tool"
 	help
-	 This is a tool to measure raw NTB performance by transferring data
-	 to and from the window without additional software interaction.
+	  This is a tool to measure raw NTB performance by transferring data
+	  to and from the window without additional software interaction.
 
-	 If unsure, say N.
+	  If unsure, say N.
Signature · 1 line
1.9.1
maintainer
#3 lore raw
Quoted 10 lines · Bjorn Helgaas

[+cc Jon, Dave, Allen]

Quoted 2 lines · metux IT consult

Formatting of Kconfig files doesn't look so pretty, so just take damp cloth and clean it up.

Oops, I didn't notice that this was a v2. I first thought this was a 2/2 patch. Sorry for the noise. Most of my comments still apply here, I think.

I 100% agree with the comments form Bjorn. Though most of the comments were from previous versions, but if you are going to change it then might as well make it right. :)
Assuming you make the changes, I'll pull it in.

Thanks,
Jon

Quoted 194 lines
Quoted 194 lines
---
 drivers/ntb/Kconfig          | 20 ++++++++++----------
 drivers/ntb/hw/amd/Kconfig   |  4 ++--
 drivers/ntb/hw/idt/Kconfig   | 41 ++++++++++++++++++++---------------------
 drivers/ntb/hw/intel/Kconfig |  4 ++--
 drivers/ntb/hw/mscc/Kconfig  |  8 ++++----
 drivers/ntb/test/Kconfig     | 26 +++++++++++++-------------
 6 files changed, 51 insertions(+), 52 deletions(-)
drivers/ntb/Kconfig +10 -10
index 95944e5..5ce3fdd 100644
@@ -2,13 +2,13 @@ menuconfig NTB
      tristate "Non-Transparent Bridge support"
      depends on PCI
      help
-      The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
-      connecting 2 systems.  When configured, writes to the device's PCI
-      mapped memory will be mirrored to a buffer on the remote system.  The
-      ntb Linux driver uses this point-to-point communication as a method to
-      transfer data from one system to the other.
+       The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
+       connecting 2 systems.  When configured, writes to the device's PCI
+       mapped memory will be mirrored to a buffer on the remote system.  The
+       ntb Linux driver uses this point-to-point communication as a method to
+       transfer data from one system to the other.
 
-      If unsure, say N.
+       If unsure, say N.
 
 if NTB
 
@@ -19,10 +19,10 @@ source "drivers/ntb/test/Kconfig"
 config NTB_TRANSPORT
      tristate "NTB Transport Client"
      help
-      This is a transport driver that enables connected systems to exchange
-      messages over the ntb hardware.  The transport exposes a queue pair api
-      to client drivers.
+       This is a transport driver that enables connected systems to exchange
+       messages over the ntb hardware.  The transport exposes a queue pair api
+       to client drivers.
 
-      If unsure, say N.
+       If unsure, say N.
 
 endif # NTB
drivers/ntb/hw/amd/Kconfig +2 -2
index cfe903c..9a90f17 100644
@@ -2,6 +2,6 @@ config NTB_AMD
      tristate "AMD Non-Transparent Bridge support"
      depends on X86_64
      help
-      This driver supports AMD NTB on capable Zeppelin hardware.
+       This driver supports AMD NTB on capable Zeppelin hardware.
 
-      If unsure, say N.
+       If unsure, say N.
drivers/ntb/hw/idt/Kconfig +20 -21
index f8948cf..5d106ac 100644
@@ -3,28 +3,27 @@ config NTB_IDT
      depends on PCI
      select HWMON
      help
-      This driver supports NTB of cappable IDT PCIe-switches.
+       This driver supports NTB of cappable IDT PCIe-switches.
 
-      Some of the pre-initializations must be made before IDT PCIe-switch
-      exposes it NT-functions correctly. It should be done by either proper
-      initialisation of EEPROM connected to master smbus of the switch or
-      by BIOS using slave-SMBus interface changing corresponding registers
-      value. Evidently it must be done before PCI bus enumeration is
-      finished in Linux kernel.
+       Some of the pre-initializations must be made before IDT PCIe-switch
+       exposes it NT-functions correctly. It should be done by either proper
+       initialisation of EEPROM connected to master smbus of the switch or
+       by BIOS using slave-SMBus interface changing corresponding registers
+       value. Evidently it must be done before PCI bus enumeration is
+       finished in Linux kernel.
 
-      First of all partitions must be activated and properly assigned to all
-      the ports with NT-functions intended to be activated (see SWPARTxCTL
-      and SWPORTxCTL registers). Then all NT-function BARs must be enabled
-      with chosen valid aperture. For memory windows related BARs the
-      aperture settings shall determine the maximum size of memory windows
-      accepted by a BAR. Note that BAR0 must map PCI configuration space
-      registers.
+       First of all partitions must be activated and properly assigned to all
+       the ports with NT-functions intended to be activated (see SWPARTxCTL
+       and SWPORTxCTL registers). Then all NT-function BARs must be enabled
+       with chosen valid aperture. For memory windows related BARs the
+       aperture settings shall determine the maximum size of memory windows
+       accepted by a BAR. Note that BAR0 must map PCI configuration space
+       registers.
 
-      It's worth to note, that since a part of this driver relies on the
-      BAR settings of peer NT-functions, the BAR setups can't be done over
-      kernel PCI fixups. That's why the alternative pre-initialization
-      techniques like BIOS using SMBus interface or EEPROM should be
-      utilized.
-
-      If unsure, say N.
+       It's worth to note, that since a part of this driver relies on the
+       BAR settings of peer NT-functions, the BAR setups can't be done over
+       kernel PCI fixups. That's why the alternative pre-initialization
+       techniques like BIOS using SMBus interface or EEPROM should be
+       utilized.
 
+       If unsure, say N.
drivers/ntb/hw/intel/Kconfig +2 -2
index 91f995e..c166d50 100644
@@ -2,6 +2,6 @@ config NTB_INTEL
      tristate "Intel Non-Transparent Bridge support"
      depends on X86_64
      help
-      This driver supports Intel NTB on capable Xeon and Atom hardware.
+       This driver supports Intel NTB on capable Xeon and Atom hardware.
 
-      If unsure, say N.
+       If unsure, say N.
drivers/ntb/hw/mscc/Kconfig +4 -4
index 013ed67..74ec015 100644
@@ -2,8 +2,8 @@ config NTB_SWITCHTEC
      tristate "MicroSemi Switchtec Non-Transparent Bridge Support"
      select PCI_SW_SWITCHTEC
      help
-      Enables NTB support for Switchtec PCI switches. This also
-      selects the Switchtec management driver as they share the same
-      hardware interface.
+       Enables NTB support for Switchtec PCI switches. This also
+       selects the Switchtec management driver as they share the same
+       hardware interface.
 
-      If unsure, say N.
+       If unsure, say N.
drivers/ntb/test/Kconfig +13 -14
index a5d0eda..416ab56 100644
@@ -1,27 +1,27 @@
 config NTB_PINGPONG
      tristate "NTB Ping Pong Test Client"
      help
-      This is a simple ping pong driver that exercises the scratchpads and
-      doorbells of the ntb hardware.  This driver may be used to test that
-      your ntb hardware and drivers are functioning at a basic level.
+       This is a simple ping pong driver that exercises the scratchpads and
+       doorbells of the ntb hardware.  This driver may be used to test that
+       your ntb hardware and drivers are functioning at a basic level.
 
-      If unsure, say N.
+       If unsure, say N.
 
 config NTB_TOOL
      tristate "NTB Debugging Tool Test Client"
      help
-      This is a simple debugging driver that enables the doorbell and
-      scratchpad registers to be read and written from the debugfs.  This
-      enables more complicated debugging to be scripted from user space.
-      This driver may be used to test that your ntb hardware and drivers are
-      functioning at a basic level.
+       This is a simple debugging driver that enables the doorbell and
+       scratchpad registers to be read and written from the debugfs.  This
+       enables more complicated debugging to be scripted from user space.
+       This driver may be used to test that your ntb hardware and drivers are
+       functioning at a basic level.
 
-      If unsure, say N.
+       If unsure, say N.
 
 config NTB_PERF
      tristate "NTB RAW Perf Measuring Tool"
      help
-      This is a tool to measure raw NTB performance by transferring data
-      to and from the window without additional software interaction.
+       This is a tool to measure raw NTB performance by transferring data
+       to and from the window without additional software interaction.
 
-      If unsure, say N.
+       If unsure, say N.
--

1.9.1

#4 lore raw
In reply to Enrico Weigelt, metux IT consult

[+cc Jon, Dave, Allen (NTB core maintainers)]

Hi Enrico,

I added the NTB maintainers, who will deal with these, but since you're fixing pedantic issues, I'll give you some pedantic comments :)

The first is that you might put something here in the commit log, eg, "fix Kconfig help text indentation" or whatever you're doing.

Quoted 15 lines · metux IT consult
---
 drivers/ntb/Kconfig          | 20 ++++++++++----------
 drivers/ntb/hw/amd/Kconfig   |  4 ++--
 drivers/ntb/hw/idt/Kconfig   | 41 ++++++++++++++++++++---------------------
 drivers/ntb/hw/intel/Kconfig |  4 ++--
 drivers/ntb/hw/mscc/Kconfig  |  8 ++++----
 drivers/ntb/test/Kconfig     | 26 +++++++++++++-------------
 6 files changed, 51 insertions(+), 52 deletions(-)
drivers/ntb/Kconfig +0 -0
index 95944e5..5ce3fdd 100644

drivers/ntb/Kconfig menuconfig NTB · line 5

Quoted 9 lines
drivers/ntb/Kconfig +1 -5
@@ -2,13 +2,13 @@ menuconfig NTB
 	tristate "Non-Transparent Bridge support"
 	depends on PCI
 	help
-	 The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus
-	 connecting 2 systems.  When configured, writes to the device's PCI
-	 mapped memory will be mirrored to a buffer on the remote system.  The
-	 ntb Linux driver uses this point-to-point communication as a method to
-	 transfer data from one system to the other.
+	  The PCI-E Non-transparent bridge hardware is a point-to-point PCI-E bus

The usual spelling is "PCIe" instead of "PCI-E".

s/Non-transparent bridge/non-transparent bridge/

A "point-to-point PCIe bus" is usually called a "PCIe Link".

drivers/ntb/Kconfig menuconfig NTB · line 8

Quoted 3 lines
drivers/ntb/Kconfig +3 -0
+	  connecting 2 systems.  When configured, writes to the device's PCI
+	  mapped memory will be mirrored to a buffer on the remote system.  The
+	  ntb Linux driver uses this point-to-point communication as a method to

s/ntb Linux driver/Linux ntb driver/

Quoted 8 lines
drivers/ntb/Kconfig +2 -1
+	  transfer data from one system to the other.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 if NTB
 

drivers/ntb/Kconfig source "drivers/ntb/test/Kconfig" · line 23

Quoted 8 lines
drivers/ntb/Kconfig +2 -3
@@ -19,10 +19,10 @@ source "drivers/ntb/test/Kconfig"
 config NTB_TRANSPORT
 	tristate "NTB Transport Client"
 	help
-	 This is a transport driver that enables connected systems to exchange
-	 messages over the ntb hardware.  The transport exposes a queue pair api
-	 to client drivers.
+	  This is a transport driver that enables connected systems to exchange
+	  messages over the ntb hardware.  The transport exposes a queue pair api

s/ntb hardware/NTB hardware/

(I think it makes sense to use "ntb" when referring to the driver, since that's its name, but when referring to the hardware, "NTB" is being used as an acronym and probably should be capitalized.)

Quoted 28 lines
drivers/ntb/Kconfig +2 -1
+	  to client drivers.
 
-	 If unsure, say N.
+	  If unsure, say N.
 
 endif # NTB
drivers/ntb/hw/amd/Kconfig +2 -2
index cfe903c..9a90f17 100644
@@ -2,6 +2,6 @@ config NTB_AMD
 	tristate "AMD Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports AMD NTB on capable Zeppelin hardware.
+	  This driver supports AMD NTB on capable Zeppelin hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/idt/Kconfig +0 -1
index f8948cf..5d106ac 100644
@@ -3,28 +3,27 @@ config NTB_IDT
 	depends on PCI
 	select HWMON
 	help
-	 This driver supports NTB of cappable IDT PCIe-switches.

drivers/ntb/hw/idt/Kconfig config NTB_IDT · line 9

Quoted 10 lines
drivers/ntb/hw/idt/Kconfig +3 -6
+	  This driver supports NTB of cappable IDT PCIe-switches.
 
-	 Some of the pre-initializations must be made before IDT PCIe-switch
-	 exposes it NT-functions correctly. It should be done by either proper
-	 initialisation of EEPROM connected to master smbus of the switch or
-	 by BIOS using slave-SMBus interface changing corresponding registers
-	 value. Evidently it must be done before PCI bus enumeration is
-	 finished in Linux kernel.
+	  Some of the pre-initializations must be made before IDT PCIe-switch
+	  exposes it NT-functions correctly. It should be done by either proper

s/it/its/

s/correctly//
s/proper//

I always think "correct" and "proper" are sort of useless in comments. Who wants to write incorrect or improper code? Besides, they don't convey any specific information.

drivers/ntb/hw/idt/Kconfig config NTB_IDT · line 11

Quoted 2 lines
drivers/ntb/hw/idt/Kconfig +2 -0
+	  initialisation of EEPROM connected to master smbus of the switch or
+	  by BIOS using slave-SMBus interface changing corresponding registers

Capitalize "smbus/SMBus" consistently. I think "SMBus" is typical.

drivers/ntb/hw/idt/Kconfig config NTB_IDT · line 15

Quoted 11 lines
drivers/ntb/hw/idt/Kconfig +3 -7
+	  value. Evidently it must be done before PCI bus enumeration is
+	  finished in Linux kernel.
 
-	 First of all partitions must be activated and properly assigned to all
-	 the ports with NT-functions intended to be activated (see SWPARTxCTL
-	 and SWPORTxCTL registers). Then all NT-function BARs must be enabled
-	 with chosen valid aperture. For memory windows related BARs the
-	 aperture settings shall determine the maximum size of memory windows
-	 accepted by a BAR. Note that BAR0 must map PCI configuration space
-	 registers.
+	  First of all partitions must be activated and properly assigned to all

s/properly// again :)

Quoted 5 lines
drivers/ntb/hw/idt/Kconfig +5 -0
+	  the ports with NT-functions intended to be activated (see SWPARTxCTL
+	  and SWPORTxCTL registers). Then all NT-function BARs must be enabled
+	  with chosen valid aperture. For memory windows related BARs the
+	  aperture settings shall determine the maximum size of memory windows
+	  accepted by a BAR. Note that BAR0 must map PCI configuration space

drivers/ntb/hw/idt/Kconfig config NTB_IDT · line 23

Quoted 10 lines
drivers/ntb/hw/idt/Kconfig +2 -7
+	  registers.
 
-	 It's worth to note, that since a part of this driver relies on the
-	 BAR settings of peer NT-functions, the BAR setups can't be done over
-	 kernel PCI fixups. That's why the alternative pre-initialization
-	 techniques like BIOS using SMBus interface or EEPROM should be
-	 utilized.
-
-	 If unsure, say N.
+	  It's worth to note, that since a part of this driver relies on the

s/note,/note/

Quoted 41 lines
drivers/ntb/hw/idt/Kconfig +5 -0
+	  BAR settings of peer NT-functions, the BAR setups can't be done over
+	  kernel PCI fixups. That's why the alternative pre-initialization
+	  techniques like BIOS using SMBus interface or EEPROM should be
+	  utilized.
 
+	  If unsure, say N.
drivers/ntb/hw/intel/Kconfig +2 -2
index 91f995e..c166d50 100644
@@ -2,6 +2,6 @@ config NTB_INTEL
 	tristate "Intel Non-Transparent Bridge support"
 	depends on X86_64
 	help
-	 This driver supports Intel NTB on capable Xeon and Atom hardware.
+	  This driver supports Intel NTB on capable Xeon and Atom hardware.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/hw/mscc/Kconfig +4 -4
index 013ed67..74ec015 100644
@@ -2,8 +2,8 @@ config NTB_SWITCHTEC
 	tristate "MicroSemi Switchtec Non-Transparent Bridge Support"
 	select PCI_SW_SWITCHTEC
 	help
-	 Enables NTB support for Switchtec PCI switches. This also
-	 selects the Switchtec management driver as they share the same
-	 hardware interface.
+	  Enables NTB support for Switchtec PCI switches. This also
+	  selects the Switchtec management driver as they share the same
+	  hardware interface.
 
-	 If unsure, say N.
+	  If unsure, say N.
drivers/ntb/test/Kconfig +0 -0
index a5d0eda..416ab56 100644

drivers/ntb/test/Kconfig line 6

Quoted 9 lines
drivers/ntb/test/Kconfig +3 -3
@@ -1,27 +1,27 @@
 config NTB_PINGPONG
 	tristate "NTB Ping Pong Test Client"
 	help
-	 This is a simple ping pong driver that exercises the scratchpads and
-	 doorbells of the ntb hardware.  This driver may be used to test that
-	 your ntb hardware and drivers are functioning at a basic level.
+	  This is a simple ping pong driver that exercises the scratchpads and
+	  doorbells of the ntb hardware.  This driver may be used to test that
+	  your ntb hardware and drivers are functioning at a basic level.

s/ntb/NTB/ (twice)

Quoted 6 lines
drivers/ntb/test/Kconfig +1 -1
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_TOOL
 	tristate "NTB Debugging Tool Test Client"
 	help

drivers/ntb/test/Kconfig line 17

Quoted 10 lines
drivers/ntb/test/Kconfig +5 -5
-	 This is a simple debugging driver that enables the doorbell and
-	 scratchpad registers to be read and written from the debugfs.  This
-	 enables more complicated debugging to be scripted from user space.
-	 This driver may be used to test that your ntb hardware and drivers are
-	 functioning at a basic level.
+	  This is a simple debugging driver that enables the doorbell and
+	  scratchpad registers to be read and written from the debugfs.  This
+	  enables more complicated debugging to be scripted from user space.
+	  This driver may be used to test that your ntb hardware and drivers are
+	  functioning at a basic level.

s/ntb/NTB/

Quoted 16 lines
drivers/ntb/test/Kconfig +4 -4
-	 If unsure, say N.
+	  If unsure, say N.
 
 config NTB_PERF
 	tristate "NTB RAW Perf Measuring Tool"
 	help
-	 This is a tool to measure raw NTB performance by transferring data
-	 to and from the window without additional software interaction.
+	  This is a tool to measure raw NTB performance by transferring data
+	  to and from the window without additional software interaction.
 
-	 If unsure, say N.
+	  If unsure, say N.
Signature · 1 line
1.9.1