public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vitaly Bordug <vbordug@ru.mvista.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Kumar Gala <galak@kernel.crashing.org>
Subject: [PATCH] ppc32: Fix incorrect PCI frequency value
Date: Wed, 16 Nov 2005 21:57:06 +0300	[thread overview]
Message-ID: <437B8102.1090900@ru.mvista.com> (raw)

The time to wait after deasserting PCI_RST has been counted with
incorrect value - this patch fixes the issue.

Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

---

  arch/ppc/syslib/m82xx_pci.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

applies-to: f571549f6e990531b853304fe9bf74cb488a02ac
ac9eb05c322380b1d11a0271e1507428b95ab994
diff --git a/arch/ppc/syslib/m82xx_pci.c b/arch/ppc/syslib/m82xx_pci.c
index 1d1c395..20f1fa3 100644
--- a/arch/ppc/syslib/m82xx_pci.c
+++ b/arch/ppc/syslib/m82xx_pci.c
@@ -248,7 +248,8 @@ pq2ads_setup_pci(struct pci_controller *
  	pci_div = ( (sccr & SCCR_PCI_MODCK) ? 2 : 1) *
  			( ( (sccr & SCCR_PCIDF_MSK) >> SCCR_PCIDF_SHIFT) + 1);
  	freq = (uint)((2*binfo->bi_cpmfreq)/(pci_div));
-	time = (int)666666/freq;
+	time = (int)66666666/freq;
+	
  	/* due to PCI Local Bus spec, some devices needs to wait such a long
  	time after RST 	deassertion. More specifically, 0.508s for 66MHz & twice more for 33 */
  	printk("%s: The PCI bus is %d Mhz.\nWaiting %s after deasserting RST...\n",__FILE__,freq,
---
Sincerely,
Vitaly



                 reply	other threads:[~2005-11-16 18:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=437B8102.1090900@ru.mvista.com \
    --to=vbordug@ru.mvista.com \
    --cc=akpm@osdl.org \
    --cc=galak@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox