Message ID | B0A28CDC26EEC74CBBA518A6F0B2DE9E66ECD04F@HI2EXCH01.adit-jv.com |
---|---|
State | Not Applicable |
Headers | show |
On Thu, Sep 29, 2016 at 01:19:30PM +0000, Kraemer, Matthias (Ferchau; ADITG/SW1) wrote: > Hello Mika, > > In line 1239 you specify "struct pci_bus *bus = dev->bus;" > }, @@ -1122,6 +1131,36 @@ static int lpc_ich_init_spi(struct pci_dev *dev) > } > break; > > + case INTEL_SPI_BXT: { > + unsigned int p2sb = PCI_DEVFN(13, 0); > + unsigned int spi = PCI_DEVFN(13, 2); > + struct pci_bus *bus = dev->bus; > > but in line 1262 you are using dev->bus again. > + > + pci_bus_write_config_byte(dev->bus, p2sb, 0xe1, 0x1); Good point. It is a typo, although works. > Sure this is not a runtime issue, but it would be nice to keep the > coding-style consistent. We could just use dev->bus for BXT SOCs, > like the remaining parts of this driver do. Or "bus". But yeah I agree it should be consistent. Since it looks like this driver is not going to make it for v4.9, I'll fix this up and resend the whole thing once v4.9-rc1 is released.
On Thu, 29 Sep 2016, Kraemer, Matthias (Ferchau; ADITG/SW1) wrote: > Hello Mika, > > In line 1239 you specify "struct pci_bus *bus = dev->bus;" > }, @@ -1122,6 +1131,36 @@ static int lpc_ich_init_spi(struct pci_dev *dev) > } > break; > > + case INTEL_SPI_BXT: { > + unsigned int p2sb = PCI_DEVFN(13, 0); > + unsigned int spi = PCI_DEVFN(13, 2); > + struct pci_bus *bus = dev->bus; > > but in line 1262 you are using dev->bus again. > + > + pci_bus_write_config_byte(dev->bus, p2sb, 0xe1, 0x1); > > Sure this is not a runtime issue, but it would be nice to keep the coding-style consistent. > We could just use dev->bus for BXT SOCs, like the remaining parts of this driver do. > > Kind regards > Matthias Kraemer Please reply in-line. It is considered bad etiquette to top-post like this. > -----Original Message----- > From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Mika Westerberg > Sent: Montag, 15. August 2016 09:11 > To: linux-mtd@lists.infradead.org > Cc: Brian Norris; David Woodhouse; Lee Jones; Peter Tyser; key.seong.lim@intel.com; Mika Westerberg; linux-kernel@vger.kernel.org > Subject: [PATCH v3 3/3] mfd: lpc_ich: Add support for Intel Apollo Lake SoC Please fix your mailer. This is crud and should not be quoted.
diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c index 56a0e98a5f89..b1013b3f4dee 100644 --- a/drivers/mfd/lpc_ich.c +++ b/drivers/mfd/lpc_ich.c @@ -56,6 +56,7 @@ * document number TBD : Wildcat Point-LP * document number TBD : 9 Series * document number TBD : Lewisburg + * document number TBD : Apollo Lake SoC */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt @@ -92,6 +93,8 @@