All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 00/12] x86: dm: pci: Support pci uart devices with driver model
Date: Thu, 20 Aug 2015 06:40:16 -0700	[thread overview]
Message-ID: <1440078028-29464-1-git-send-email-bmeng.cn@gmail.com> (raw)

This is the 2nd attempt to support pci uart devices with driver model.
The v1 patch series is at [1].

Instead of creating a pci-specific device driver for ns16550 in v1, this
v2 patch supports binding pci devices using device tree.

As previously mentioned in the ML, we should call fsp_notify() immediately
after pci bus enumeration. Unfortunately with driver model, we have to put
this call inside the pci_uclass_post_probe().

With this series, pci uart now works on Intel Crown Bay with driver model.

[1]: http://lists.denx.de/pipermail/u-boot/2015-August/223876.html

Changes in v2:
- Drop the following v1 patches:
  - dm: pci: Only allow serial device to be bound before relocation
  - drivers: serial: Add ns16550 compatible pci uart driver
  - drivers: serial: Remove special handling for pci uart in the ns16550 driver
  - x86: crownbay: Support Topcliff integrated pci uart devices
  - x86: queensbay: Call fsp_init_phase_pci() again
- Add some comments in x86_fsp_init() for malloc() adjustment

Bin Meng (12):
  dm: pci: Support selected device/driver binding before relocation
  x86: fsp: Delay x86_fsp_init() call a little bit
  x86: fsp: Enlarge the size of malloc() pool before relocation
  x86: fsp: Add comments about U-Boot entering start.S twice
  x86: queensbay: Move unprotect_spi_flash() to arch_misc_init()
  x86: baytrail: Remove the fsp_init_phase_pci() call
  x86: fsp: Call fsp_init_phase_pci() in pci_uclass_post_probe()
  dm: pci: Remove the unnecessary pci_bus_find_devfn() in
    pci_bind_bus_devices()
  fdtdec: Fix possible infinite loop in fdtdec_get_pci_vendev()
  dm: pci: Save devfn without bus number in pci_uclass_child_post_bind()
  dm: pci: Really support binding pci device in the device tree
  dm: pci: Document binding of pci device drivers

 arch/x86/Kconfig                   |   9 +-
 arch/x86/cpu/baytrail/valleyview.c |   8 +-
 arch/x86/cpu/queensbay/tnc.c       |   4 +-
 arch/x86/cpu/start.S               |  14 ++-
 arch/x86/lib/fsp/fsp_car.S         |   2 +-
 arch/x86/lib/fsp/fsp_common.c      |  16 ++-
 common/board_f.c                   |   6 +-
 doc/driver-model/pci-info.txt      |  25 ++++-
 drivers/pci/pci-uclass.c           | 204 ++++++++++++++++++++++++++++++-------
 include/pci.h                      |  11 ++
 lib/fdtdec.c                       |   3 +-
 11 files changed, 246 insertions(+), 56 deletions(-)

-- 
1.8.2.1

             reply	other threads:[~2015-08-20 13:40 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20 13:40 Bin Meng [this message]
2015-08-20 13:40 ` [U-Boot] [PATCH v2 01/12] dm: pci: Support selected device/driver binding before relocation Bin Meng
2015-08-22  4:20   ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 02/12] x86: fsp: Delay x86_fsp_init() call a little bit Bin Meng
2015-08-22  4:20   ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 03/12] x86: fsp: Enlarge the size of malloc() pool before relocation Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-22  4:20     ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 04/12] x86: fsp: Add comments about U-Boot entering start.S twice Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-22  4:20     ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 05/12] x86: queensbay: Move unprotect_spi_flash() to arch_misc_init() Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-22  4:20     ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 06/12] x86: baytrail: Remove the fsp_init_phase_pci() call Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-22  4:20     ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 07/12] x86: fsp: Call fsp_init_phase_pci() in pci_uclass_post_probe() Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-22  9:05     ` Bin Meng
2015-08-23 21:21       ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 08/12] dm: pci: Remove the unnecessary pci_bus_find_devfn() in pci_bind_bus_devices() Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 09/12] fdtdec: Fix possible infinite loop in fdtdec_get_pci_vendev() Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-23 21:22     ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 10/12] dm: pci: Save devfn without bus number in pci_uclass_child_post_bind() Bin Meng
2015-08-21 23:27   ` Simon Glass
2015-08-23 21:22     ` Simon Glass
2015-08-20 13:40 ` [U-Boot] [PATCH v2 11/12] dm: pci: Really support binding pci device in the device tree Bin Meng
2015-08-20 13:40 ` [U-Boot] [PATCH v2 12/12] dm: pci: Document binding of pci device drivers Bin Meng

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=1440078028-29464-1-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.