* [U-Boot] [Patch] ./drivers/pci/pci.c
@ 2010-03-09 12:22 FUJITA Kazutoshi
2010-03-09 13:27 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: FUJITA Kazutoshi @ 2010-03-09 12:22 UTC (permalink / raw)
To: u-boot
hi,
it might be a small bug.
regards,
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index d6d2d6e..cd64a87 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -388,7 +388,7 @@ int pci_hose_config_device(struct pci_controller *hose,
pci_hose_write_config_dword (hose, dev, PCI_COMMAND, 0);
- for (bar = PCI_BASE_ADDRESS_0; bar < PCI_BASE_ADDRESS_5; bar += 4) {
+ for (bar = PCI_BASE_ADDRESS_0; bar <= PCI_BASE_ADDRESS_5; bar += 4) {
pci_hose_write_config_dword (hose, dev, bar, 0xffffffff);
pci_hose_read_config_dword (hose, dev, bar, &bar_response);
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [Patch] ./drivers/pci/pci.c
2010-03-09 12:22 [U-Boot] [Patch] ./drivers/pci/pci.c FUJITA Kazutoshi
@ 2010-03-09 13:27 ` Wolfgang Denk
2010-03-09 14:28 ` FUJITA Kazutoshi
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2010-03-09 13:27 UTC (permalink / raw)
To: u-boot
Dear FUJITA Kazutoshi,
In message <20100309.212207.190166056.fujita@soum.co.jp> you wrote:
> hi,
>
> it might be a small bug.
>
>
> regards,
Please provide a useful commit message, and add your Signed-off-by:
line.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The good Christian should beware of mathematicians and all those who
make empty prophecies. The danger already exists that mathematicians
have made a covenant with the devil to darken the spirit and confine
man in the bonds of Hell." - Saint Augustine
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [Patch] ./drivers/pci/pci.c
2010-03-09 13:27 ` Wolfgang Denk
@ 2010-03-09 14:28 ` FUJITA Kazutoshi
2010-03-09 17:48 ` Stefan Roese
2010-03-21 16:58 ` Wolfgang Denk
0 siblings, 2 replies; 5+ messages in thread
From: FUJITA Kazutoshi @ 2010-03-09 14:28 UTC (permalink / raw)
To: u-boot
From: Wolfgang Denk <wd@denx.de>
Subject: Re: [U-Boot] [Patch] ./drivers/pci/pci.c
Date: Tue, 09 Mar 2010 14:27:25 +0100
> Please provide a useful commit message, and add your Signed-off-by:
> line.
sorry, how about this?
regards,
this patch fixes to deal with PCI_BASE_ADDRESS_5 which was forgotten
in pci_hose_config_device()
Signed-off-by: FUJITA Kazutoshi <fujita@soum.co.jp>
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index d6d2d6e..cd64a87 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -388,7 +388,7 @@ int pci_hose_config_device(struct pci_controller *hose,
pci_hose_write_config_dword (hose, dev, PCI_COMMAND, 0);
- for (bar = PCI_BASE_ADDRESS_0; bar < PCI_BASE_ADDRESS_5; bar += 4) {
+ for (bar = PCI_BASE_ADDRESS_0; bar <= PCI_BASE_ADDRESS_5; bar += 4) {
pci_hose_write_config_dword (hose, dev, bar, 0xffffffff);
pci_hose_read_config_dword (hose, dev, bar, &bar_response);
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [Patch] ./drivers/pci/pci.c
2010-03-09 14:28 ` FUJITA Kazutoshi
@ 2010-03-09 17:48 ` Stefan Roese
2010-03-21 16:58 ` Wolfgang Denk
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Roese @ 2010-03-09 17:48 UTC (permalink / raw)
To: u-boot
On Tuesday 09 March 2010 15:28:41 FUJITA Kazutoshi wrote:
> From: Wolfgang Denk <wd@denx.de>
> Subject: Re: [U-Boot] [Patch] ./drivers/pci/pci.c
> Date: Tue, 09 Mar 2010 14:27:25 +0100
>
> > Please provide a useful commit message, and add your Signed-off-by:
> > line.
>
> sorry, how about this?
>
> regards,
>
>
> this patch fixes to deal with PCI_BASE_ADDRESS_5 which was forgotten
> in pci_hose_config_device()
>
> Signed-off-by: FUJITA Kazutoshi <fujita@soum.co.jp>
Looks good, so:
Acked-by: Stefan Roese <sr@denx.de>
Thanks.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [Patch] ./drivers/pci/pci.c
2010-03-09 14:28 ` FUJITA Kazutoshi
2010-03-09 17:48 ` Stefan Roese
@ 2010-03-21 16:58 ` Wolfgang Denk
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2010-03-21 16:58 UTC (permalink / raw)
To: u-boot
Dear FUJITA Kazutoshi,
In message <20100309.232841.106130457.fujita@soum.co.jp> you wrote:
>
> Subject: Re: [U-Boot] [Patch] ./drivers/pci/pci.c
> Date: Tue, 09 Mar 2010 14:27:25 +0100
>
> > Please provide a useful commit message, and add your Signed-off-by:
> > line.
>
> sorry, how about this?
>
> regards,
That's actually still nort usable.
First, the Subject line would result in a commit message tile of
"./drivers/pci/pci.c" - do you think this is a meaningful description
of what this patch is doing?
Second, all the above text would become part of the commit message -
this makes no sense either.
Please use git-format-patch to format the patches, add commets _below_
the "---" line, and use git-send-email to submit the patches.
> this patch fixes to deal with PCI_BASE_ADDRESS_5 which was forgotten
> in pci_hose_config_device()
>
> Signed-off-by: FUJITA Kazutoshi <fujita@soum.co.jp>
>
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index d6d2d6e..cd64a87 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -388,7 +388,7 @@ int pci_hose_config_device(struct pci_controller *hose,
I edited the commit message for you, and applied the patch now.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"You're just jealous." "What, of an overgrown puppy with a single-
figure IQ?" - Terry Pratchett, _Moving Pictures_
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-21 16:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-09 12:22 [U-Boot] [Patch] ./drivers/pci/pci.c FUJITA Kazutoshi
2010-03-09 13:27 ` Wolfgang Denk
2010-03-09 14:28 ` FUJITA Kazutoshi
2010-03-09 17:48 ` Stefan Roese
2010-03-21 16:58 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox