]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/usb/host/ehci-hcd.c
USB: EHCI: split ehci_qh into hw and sw parts
authorAlek Du <alek.du@intel.com>
Mon, 13 Jul 2009 23:23:29 +0000 (07:23 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:29 +0000 (06:46 -0700)
commit3807e26d69b9ad3864fe03224ebebc9610d5802e
tree3c85a5cb0686a7e72255c523b963942bbfc60b7f
parent403dbd36739e344d2d25f56ebbe342248487bd48
USB: EHCI: split ehci_qh into hw and sw parts

The ehci_qh structure merged hw and sw together which is not good:
1. More and more items are being added into ehci_qh, the ehci_qh software
   part are unnecessary to be allocated in DMA qh_pool.
2. If HCD has local SRAM, the sw part will consume it too, and it won't
   bring any benefit.
3. For non-cache-coherence system, the entire ehci_qh is uncachable, actually
   we only need the hw part to be uncacheable. Spliting them will let the sw
   part to be cacheable.

Signed-off-by: Alek Du <alek.du@intel.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
CC: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-dbg.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-mem.c
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h