linux-stable/drivers/pci
Logan Gunthorpe e499081da1 PCI: Force trailing new line to resource_alignment_param in sysfs
When 'pci=resource_alignment=' is specified on the command line, there is
no trailing new line.  Then, when it's read through the corresponding sysfs
attribute, there will be no newline and a cat command will not show
correctly in a shell. If the parameter is set through sysfs a new line will
be stored and it will 'cat' correctly.

To solve this, append a new line character in the show function if one does
not already exist.

Link: https://lore.kernel.org/r/20190822161013.5481-4-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2019-09-05 16:47:30 -05:00
..
controller PCI: Use devm_add_action_or_reset() 2019-07-24 14:20:31 -05:00
endpoint PCI: endpoint: Clear BAR before freeing its space 2019-06-11 10:57:54 +01:00
hotplug PCI: Mark expected switch fall-through 2019-08-08 15:13:34 -05:00
pcie pci-v5.3-changes 2019-07-15 20:44:49 -07:00
switch New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
access.c
ats.c PCI: Fix typos and whitespace errors 2019-07-09 07:24:53 -05:00
bus.c
ecam.c
host-bridge.c
iov.c PCI/IOV: Remove group write permission from sriov_numvfs, sriov_drivers_autoprobe 2019-09-05 13:26:23 -05:00
irq.c
Kconfig
Makefile
mmap.c PCI: Fix typos and whitespace errors 2019-07-09 07:24:53 -05:00
msi.c New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
of.c PCI: OF: Initialize dev->fwnode appropriately 2019-06-06 17:32:13 -04:00
p2pdma.c pci-v5.3-changes 2019-07-15 20:44:49 -07:00
pci-acpi.c PCI: PM/ACPI: Refresh all stale power state data in pci_pm_complete() 2019-06-27 12:33:26 +02:00
pci-bridge-emul.c PCI: Use static const struct, not const static struct 2019-09-05 13:26:46 -05:00
pci-bridge-emul.h
pci-driver.c pci-v5.3-changes 2019-07-15 20:44:49 -07:00
pci-label.c
pci-mid.c
pci-pf-stub.c PCI: Fix typos and whitespace errors 2019-07-09 07:24:53 -05:00
pci-stub.c
pci-sysfs.c PCI/IOV: Move sysfs SR-IOV functions to iov.c 2019-08-20 14:05:05 -05:00
pci.c PCI: Force trailing new line to resource_alignment_param in sysfs 2019-09-05 16:47:30 -05:00
pci.h PCI/IOV: Move sysfs SR-IOV functions to iov.c 2019-08-20 14:05:05 -05:00
probe.c pci-v5.3-changes 2019-07-15 20:44:49 -07:00
proc.c PCI: Use seq_puts() instead of seq_printf() in show_device() 2019-07-02 18:38:51 -05:00
quirks.c PCI: Enable NVIDIA HDA controllers 2019-07-11 11:13:26 -05:00
remove.c
rom.c
search.c bus_find_device: Unify the match callback with class_find_device 2019-06-24 05:22:31 +02:00
setup-bus.c PCI: Skip resource distribution when no hotplug bridges 2019-07-02 13:56:54 -05:00
setup-irq.c
setup-res.c
slot.c PCI: Decode PCIe 32 GT/s link speed 2019-06-13 16:49:45 -05:00
syscall.c
vc.c
vpd.c
xen-pcifront.c Merge branch 'pci/printk' 2019-05-13 18:34:46 -05:00