From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad@intel.com> Cc: bhelgaas@google.com, robh+dt@kernel.org, lorenzo.pieralisi@arm.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, mgross@linux.intel.com, lakshmi.bai.raja.subramanian@intel.com Subject: Re: [PATCH v2 2/2] PCI: keembay: Add support for Intel Keem Bay Date: Wed, 25 Nov 2020 14:50:23 +0200 [thread overview] Message-ID: <20201125125023.GS4077@smile.fi.intel.com> (raw) In-Reply-To: <20201125101152.5326-3-wan.ahmad.zainie.wan.mohamad@intel.com> On Wed, Nov 25, 2020 at 06:11:52PM +0800, Wan Ahmad Zainie wrote: > Add driver for Intel Keem Bay SoC PCIe controller. This controller > is based on DesignWare PCIe core. > > In root complex mode, only internal reference clock is possible for > Keem Bay A0. For Keem Bay B0, external reference clock can be used > and will be the default configuration. Currently, keembay_pcie_of_data > structure has one member. It will be expanded later to handle this > difference. > > Endpoint mode link initialization is handled by the boot firmware. ... > + switch (pcie->mode) { > + case DW_PCIE_RC_TYPE: > + if (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_HOST)) > + return -ENODEV; > + > + ret = keembay_pcie_add_pcie_port(pcie, pdev); > + if (ret < 0) > + return ret; > + break; return keembay_pcie_add_pcie_port(pcie, pdev); > + case DW_PCIE_EP_TYPE: > + if (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_EP)) > + return -ENODEV; > + > + pci->ep.ops = &keembay_pcie_ep_ops; > + return dw_pcie_ep_init(&pci->ep); > + default: > + dev_err(dev, "Invalid device type %d\n", pcie->mode); > + return -ENODEV; > + } > + return 0; ...and drop this one. > +} -- With Best Regards, Andy Shevchenko
prev parent reply other threads:[~2020-11-25 12:49 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-25 10:11 [PATCH v2 0/2] " Wan Ahmad Zainie 2020-11-25 10:11 ` [PATCH v2 1/2] dt-bindings: PCI: Add Intel Keem Bay PCIe controller Wan Ahmad Zainie 2020-11-25 10:11 ` [PATCH v2 2/2] PCI: keembay: Add support for Intel Keem Bay Wan Ahmad Zainie 2020-11-25 12:50 ` Andy Shevchenko [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201125125023.GS4077@smile.fi.intel.com \ --to=andriy.shevchenko@linux.intel.com \ --cc=bhelgaas@google.com \ --cc=devicetree@vger.kernel.org \ --cc=lakshmi.bai.raja.subramanian@intel.com \ --cc=linux-pci@vger.kernel.org \ --cc=lorenzo.pieralisi@arm.com \ --cc=mgross@linux.intel.com \ --cc=robh+dt@kernel.org \ --cc=wan.ahmad.zainie.wan.mohamad@intel.com \ --subject='Re: [PATCH v2 2/2] PCI: keembay: Add support for Intel Keem Bay' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).