Skip to contentSkip to conversation

MPC8xx support in 2.6 and [PATCH] USB host controller selection...

PATCH David Jander 6 participants 7 messages Oct 27, 2005 – Oct 28, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

I am trying to figure out if kernel-2.6.x is already a (stable) option for MPC8xx processors. Any hints? experience?
I just rsynced DENX's git tree (cg-clone will crash on a 404 error). Problems I have found until now:

- Processor identification is still shady. Thanks to Marcello's patch yesterday, it now boots up without problems, but this definitely needs to be done. Who is working on this part?

- USB Kconfig file for 2.6 kernel is broken. It is not correct to assume that you either have a PCI interface or a processor with internal HCI. Proof: We have a board based on MPC852T (no internal UHCI) which can plug into an (optional) daughter board with a ISP1160 on it. See attached patch.

Maybe the patch should be sent elsewere since it has not much to do with PPC, so can someone please tell me where?

Greetings,

Signature · 1 line
David Jander
usb/Kconfig renamed from usb/Kconfig.old +0 -28
@@ -4,37 +4,9 @@
 
 menu "USB support"
 
-# Host-side USB depends on having a host controller
-# NOTE:  dummy_hcd is always an option, but it's ignored here ...
-# NOTE:  SL-811 option should be board-specific ...
-config USB_ARCH_HAS_HCD
-	boolean
-	default y if USB_ARCH_HAS_OHCI
-	default y if ARM				# SL-811
-	default PCI
-
-# many non-PCI SOC chips embed OHCI
-config USB_ARCH_HAS_OHCI
-	boolean
-	# ARM:
-	default y if SA1111
-	default y if ARCH_OMAP
-	default y if ARCH_LH7A404
-	default y if ARCH_S3C2410
-	default y if PXA27x
-	# PPC:
-	default y if STB03xxx
-	default y if PPC_MPC52xx
-	default y if 440EP
-	# MIPS:
-	default y if SOC_AU1X00
-	# more:
-	default PCI
-
 # ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.
 config USB
 	tristate "Support for Host-side USB"
-	depends on USB_ARCH_HAS_HCD
 	---help---
 	  Universal Serial Bus (USB) is a specification for a serial bus
 	  subsystem which offers higher speeds and more features than the
#1 lore raw
Quoted 3 lines · David Jander

Hi all,

I am trying to figure out if kernel-2.6.x is already a (stable) option for MPC8xx processors. Any hints? experience?

What option do you mean? The last kernel supports a number of 8xx, and I have MPC885ADS and MPC866ADS run it without major problems.

Quoted 6 lines

I just rsynced DENX's git tree (cg-clone will crash on a 404 error). Problems I have found until now:

- Processor identification is still shady. Thanks to Marcello's patch
yesterday, it now boots up without problems, but this definitely needs to be done. Who is working on this part?

The fix is in the mm tree. And it has been submitted here as well btw.

Quoted 4 lines

- USB Kconfig file for 2.6 kernel is broken. It is not correct to assume that
you either have a PCI interface or a processor with internal HCI. Proof: We have a board based on MPC852T (no internal UHCI) which can plug into an (optional) daughter board with a ISP1160 on it. See attached patch.

Maybe the patch should be sent elsewere since it has not much to do with PPC, so can someone please tell me where?

I guess [email protected] is the correct place to issue this.

Quoted 55 lines

Greetings,

------------------------------------------------------------------------

usb/Kconfig renamed from usb/Kconfig.old +0 -29
@@ -4,37 +4,9 @@
 
 menu "USB support"
 
-# Host-side USB depends on having a host controller
-# NOTE:  dummy_hcd is always an option, but it's ignored here ...
-# NOTE:  SL-811 option should be board-specific ...
-config USB_ARCH_HAS_HCD
-	boolean
-	default y if USB_ARCH_HAS_OHCI
-	default y if ARM				# SL-811
-	default PCI
-
-# many non-PCI SOC chips embed OHCI
-config USB_ARCH_HAS_OHCI
-	boolean
-	# ARM:
-	default y if SA1111
-	default y if ARCH_OMAP
-	default y if ARCH_LH7A404
-	default y if ARCH_S3C2410
-	default y if PXA27x
-	# PPC:
-	default y if STB03xxx
-	default y if PPC_MPC52xx
-	default y if 440EP
-	# MIPS:
-	default y if SOC_AU1X00
-	# more:
-	default PCI
-
 # ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.
 config USB
 	tristate "Support for Host-side USB"
-	depends on USB_ARCH_HAS_HCD
 	---help---
 	  Universal Serial Bus (USB) is a specification for a serial bus
 	  subsystem which offers higher speeds and more features than the
 
 
------------------------------------------------------------------------

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Signature · 2 lines
Sincerely,
Vitaly
#2 lore raw
In reply to David Jander
Quoted 4 lines · In message <[email protected]> you wrote:

I am trying to figure out if kernel-2.6.x is already a (stable) option for MPC8xx processors. Any hints? experience?
I just rsynced DENX's git tree (cg-clone will crash on a 404 error).

Make sure to use current versions of git resp. cogito.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Every program has at least one bug and can be shortened by  at  least
one instruction - from which, by induction, one can deduce that every
program can be reduced to one instruction which doesn't work.
#3 lore raw
Quoted 7 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:

I am trying to figure out if kernel-2.6.x is already a (stable) option for MPC8xx processors. Any hints? experience?
I just rsynced DENX's git tree (cg-clone will crash on a 404 error).

Make sure to use current versions of git resp. cogito.

I get the same errors using using the latest versions: git version 0.99.8f and cogito-0.15. FWIW, the u-boot.git came down just fine.

Quoted 1 line

cg-clone http://www.denx.de/git/linux-2.6-denx.git linux-2.6-denx

defaulting to local storage area
10:24:51 URL:http://www.denx.de/git/linux-2.6-denx.git/HEAD [41/41] -> "refs/heads/.origin-fetching" [1]
progress: 1 objects, 264 bytes
walk b2304e619029b177db18dc771f2b9ba8cd273b81
progress: 3 objects, 1180 bytes
walk cb7f6ec5c2d64db78984188461dc29b72e924180
progress: 4 objects, 1424 bytes
error: The requested URL returned error: 404
Getting pack list
error: The requested URL returned error: 404
Getting alternates list
error: Unable to find ca442d313d86dc67e0a2e5d584b465bd382cbf5c under
http://www.denx.de/git/linux-2.6-denx.git/

Cannot obtain needed blob ca442d313d86dc67e0a2e5d584b465bd382cbf5c while processing commit cb7f6ec5c2d64db78984188461dc29b72e924180.
cg-fetch: objects fetch failed
cg-clone: fetch failed

Jeff Angielski
The PTR Group

#4 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 4 lines
Quoted 2 lines

I just rsynced DENX's git tree (cg-clone will crash on a 404 error).

Make sure to use current versions of git resp. cogito.

I get the same errors using using the latest versions: git version 0.99.8f and cogito-0.15. FWIW, the u-boot.git came down just fine.

...

Quoted 4 lines

Cannot obtain needed blob ca442d313d86dc67e0a2e5d584b465bd382cbf5c while processing commit cb7f6ec5c2d64db78984188461dc29b72e924180.
cg-fetch: objects fetch failed
cg-clone: fetch failed

Don't know what that means. Accessing the tree using rsync://... works fine.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
An expert is a person who avoids the small errors while  sweeping  on
to the grand fallacy.
#5 lore raw
In reply to David Jander

Greg, please refer to the end of the message.

Quoted 5 lines · David Jander

Hi all,

I am trying to figure out if kernel-2.6.x is already a (stable) option for MPC8xx processors. Any hints? experience?

We're using v2.6.11 on production (with a custom board). Has survived internal QA procedure, which took a couple of months under various stress tests.

Quoted 6 lines

I just rsynced DENX's git tree (cg-clone will crash on a 404 error). Problems I have found until now:

- Processor identification is still shady. Thanks to Marcello's patch yesterday, it now boots up without problems, but this definitely needs to be done. Who is working on this part?

Vitaly, can you please push your patch upstream now that v2.6.14 is out?

Quoted 4 lines

- USB Kconfig file for 2.6 kernel is broken. It is not correct to assume that you either have a PCI interface or a processor with internal HCI. Proof: We have a board based on MPC852T (no internal UHCI) which can plug into an (optional) daughter board with a ISP1160 on it. See attached patch.

Is it driven by the UHCI driver?

Quoted 1 line

From http://www.semiconductors.philips.com/cgi-bin/pldb/pip/isp1160.html

The ISP1160 is an embedded Universal Serial Bus (USB) Host Controller (HC) that complies with Universal Serial Bus Specification Rev. 2.0, supporting data transfer at full-speed (12 Mbit/s) and low-speed (1.5 Mbit/s).

Quoted 2 lines

Maybe the patch should be sent elsewere since it has not much to do with PPC, so can someone please tell me where?

I guess that you should have something like

config USB_ARCH_HAS_HCD
default y if USB_ARCH_HAS_OHCI
default y if USB_ARCH_HAS_UHCI

config USB_ARCH_UHCI
default y if 8xx

Greg?

Quoted 45 lines

Greetings,

Signature · 1 line
David Jander
usb/Kconfig renamed from usb/Kconfig.old +0 -28
@@ -4,37 +4,9 @@
 
 menu "USB support"
 
-# Host-side USB depends on having a host controller
-# NOTE:  dummy_hcd is always an option, but it's ignored here ...
-# NOTE:  SL-811 option should be board-specific ...
-config USB_ARCH_HAS_HCD
-	boolean
-	default y if USB_ARCH_HAS_OHCI
-	default y if ARM				# SL-811
-	default PCI
-
-# many non-PCI SOC chips embed OHCI
-config USB_ARCH_HAS_OHCI
-	boolean
-	# ARM:
-	default y if SA1111
-	default y if ARCH_OMAP
-	default y if ARCH_LH7A404
-	default y if ARCH_S3C2410
-	default y if PXA27x
-	# PPC:
-	default y if STB03xxx
-	default y if PPC_MPC52xx
-	default y if 440EP
-	# MIPS:
-	default y if SOC_AU1X00
-	# more:
-	default PCI
-
 # ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.
 config USB
 	tristate "Support for Host-side USB"
-	depends on USB_ARCH_HAS_HCD
 	---help---
 	  Universal Serial Bus (USB) is a specification for a serial bus
 	  subsystem which offers higher speeds and more features than the
#6 lore raw
Quoted 5 lines · Marcelo Tosatti

Greg, please refer to the end of the message.

Quoted 4 lines

- USB Kconfig file for 2.6 kernel is broken. It is not correct to assume that you either have a PCI interface or a processor with internal HCI. Proof: We have a board based on MPC852T (no internal UHCI) which can plug into an (optional) daughter board with a ISP1160 on it. See attached patch.

Then please send the proper patch to the linux-usb-devel mailing list.

Quoted 1 line

Is it driven by the UHCI driver?

It shouldn't be :)

Quoted 6 lines
Quoted 1 line

From http://www.semiconductors.philips.com/cgi-bin/pldb/pip/isp1160.html

The ISP1160 is an embedded Universal Serial Bus (USB) Host Controller (HC) that complies with Universal Serial Bus Specification Rev. 2.0, supporting data transfer at full-speed (12 Mbit/s) and low-speed (1.5 Mbit/s).

We already have a driver for this device in the kernel tree, right?

Quoted 5 lines
Quoted 2 lines

Maybe the patch should be sent elsewere since it has not much to do with PPC, so can someone please tell me where?

I guess that you should have something like

Quoted 8 lines

config USB_ARCH_HAS_HCD
default y if USB_ARCH_HAS_OHCI
default y if USB_ARCH_HAS_UHCI

config USB_ARCH_UHCI
default y if 8xx

Greg?

I don't understand what you are trying to fix up here. What is wrong with the current checks? If your arch/board has support for the 1160 and we have the Kconfig set wrong for that, we can easily change it.

thanks,

greg k-h