diff mbox

[U-Boot,01/25] dm: pci: Mark legacy files as such

Message ID 1447732444-30892-2-git-send-email-sjg@chromium.org
State Accepted
Commit 2b81e8a3c86697180aa31193345a98af18a733f2
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Nov. 17, 2015, 3:53 a.m. UTC
We don't want people changing the legacy PCI files while migration is in
progress. Update the file headers to indicate that.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/pci/pci.c          | 5 ++++-
 drivers/pci/pci_auto_old.c | 9 ++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

Comments

Bin Meng Nov. 18, 2015, 4:26 a.m. UTC | #1
On Tue, Nov 17, 2015 at 11:53 AM, Simon Glass <sjg@chromium.org> wrote:
> We don't want people changing the legacy PCI files while migration is in
> progress. Update the file headers to indicate that.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  drivers/pci/pci.c          | 5 ++++-
>  drivers/pci/pci_auto_old.c | 9 ++++++---
>  2 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 645ecd4..4619089 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -9,7 +9,10 @@
>   */
>
>  /*
> - * PCI routines
> + * Old PCI routines
> + *
> + * Do not change this file. Instead, convert your board to use CONFIG_DM_PCI
> + * and change pci-uclass.c.
>   */
>
>  #include <common.h>
> diff --git a/drivers/pci/pci_auto_old.c b/drivers/pci/pci_auto_old.c
> index 932eab8..1ff88b1 100644
> --- a/drivers/pci/pci_auto_old.c
> +++ b/drivers/pci/pci_auto_old.c
> @@ -1,7 +1,5 @@
>  /*
> - * arch/powerpc/kernel/pci_auto.c
> - *
> - * PCI autoconfiguration library
> + * PCI autoconfiguration library (legacy version, do not change)
>   *
>   * Author: Matt Porter <mporter@mvista.com>
>   *
> @@ -14,6 +12,11 @@
>  #include <errno.h>
>  #include <pci.h>
>
> +/*
> + * Do not change this file. Instead, convert your board to use CONFIG_DM_PCI
> + * and change pci_auto.c.
> + */
> +
>  /* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
>  #ifndef CONFIG_SYS_PCI_CACHE_LINE_SIZE
>  #define CONFIG_SYS_PCI_CACHE_LINE_SIZE 8
> --

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox

Patch

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 645ecd4..4619089 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -9,7 +9,10 @@ 
  */
 
 /*
- * PCI routines
+ * Old PCI routines
+ *
+ * Do not change this file. Instead, convert your board to use CONFIG_DM_PCI
+ * and change pci-uclass.c.
  */
 
 #include <common.h>
diff --git a/drivers/pci/pci_auto_old.c b/drivers/pci/pci_auto_old.c
index 932eab8..1ff88b1 100644
--- a/drivers/pci/pci_auto_old.c
+++ b/drivers/pci/pci_auto_old.c
@@ -1,7 +1,5 @@ 
 /*
- * arch/powerpc/kernel/pci_auto.c
- *
- * PCI autoconfiguration library
+ * PCI autoconfiguration library (legacy version, do not change)
  *
  * Author: Matt Porter <mporter@mvista.com>
  *
@@ -14,6 +12,11 @@ 
 #include <errno.h>
 #include <pci.h>
 
+/*
+ * Do not change this file. Instead, convert your board to use CONFIG_DM_PCI
+ * and change pci_auto.c.
+ */
+
 /* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
 #ifndef CONFIG_SYS_PCI_CACHE_LINE_SIZE
 #define CONFIG_SYS_PCI_CACHE_LINE_SIZE	8