On Mon, May 10, 2021 at 04:47:36PM +0900, Nobuhiro Iwamatsu wrote: > On Thu, Apr 29, 2021 at 06:10:40PM -0500, Bjorn Helgaas wrote: > > > +#define PCIE_UL_EDMA_INT3 BIT(5) > > > +#define PCIE_UL_S_INT_EVENT_MASK1_ALL (PCIE_UL_CFG_PME_INT | PCIE_UL_CFG_LINK_EQ_REQ_INT | \ > > > + PCIE_UL_EDMA_INT0 | PCIE_UL_EDMA_INT1 | \ > > > + PCIE_UL_EDMA_INT2 | PCIE_UL_EDMA_INT3) > > > + > > > > Please wrap the code here and below so it fits nicely in 80 columns. > > checkpatch.pl allows up to 100 characters, is this a PCI driver rule? The general rule is "match what's around you." So I guess that makes it a drivers/pci/ rule. > > > + pp->irq = platform_get_irq_byname(pdev, "intr"); > > > + if (pp->irq < 0) { > > > + dev_err(dev, "interrupt intr is missing"); > > > > Make your error messages consistently capitalized (or consistently not > > capitalized). > > Sorry, I didn't understand this point correctly. > Does this mean capitalize the first letter of the message? Some of your messages are capitalized and others are not: dev_info(pci->dev, "Link failure\n" dev_err(dev, "Failed to get refclk clock: %ld\n" dev_err(dev, "Failed to get sysclk clock: %ld\n" dev_err(dev, "Failed to get auxclk clock: %ld\n" dev_err(dev, "interrupt intr is missing" dev_dbg(dev, "Applied default link speed\n" dev_dbg(dev, "link speed Gen %d" dev_err(dev, "Failed to initialize host\n" I don't really care whether they're all capitalized or none are capitalized, but they should all be the same. Otherwise it just looks sloppy. Bjorn