> "Max" == Max Filippov writes:
> This fixes the following warning:
> BUG: sleeping function called from invalid context at mm/slub.c:940
> in_atomic(): 1, irqs_disabled(): 1, pid: 17, name: khubd
> CPU: 0 PID: 17 Comm: khubd Not tainted 3.12.0-4-g938dd60-dirty #1
>__might
> "Max" == Max Filippov writes:
> According to CY7C67300 specification HPI read and write cycle duration
> Tcyc must be at least 6T long, where T is 1/48MHz, which is 125ns.
> Without this delay fast host processor cannot write to chip registers.
> Add proper ndelay to hpi_{read,write}_re
Hi Alan,
Many thanks for your response!
On 2013-12-25 02:49, Alan Stern wrote:
>
> This was a long and rather rambling message.
Sorry about that, it was my attempt at being detailed :)
> The main points I
> gathered from it were:
>
> You are using a very old kernel version. You re
Hello,
there are two fixes for the CY7C67x00 host controller:
one fixes memory allocation with non-atomic flags in the atomic context,
the other adds proper delays to the register access methods which makes
possible to use the chip with fast host CPU.
Changes v1 -> v2:
- add HPI_T_CYC_NS macro wi
This fixes the following warning:
BUG: sleeping function called from invalid context at mm/slub.c:940
in_atomic(): 1, irqs_disabled(): 1, pid: 17, name: khubd
CPU: 0 PID: 17 Comm: khubd Not tainted 3.12.0-4-g938dd60-dirty #1
__might_sleep+0xbe/0xc0
kmem_cache_alloc_trace+0x36/0x17
According to CY7C67300 specification HPI read and write cycle duration
Tcyc must be at least 6T long, where T is 1/48MHz, which is 125ns.
Without this delay fast host processor cannot write to chip registers.
Add proper ndelay to hpi_{read,write}_reg.
Signed-off-by: Max Filippov
Acked-by: Peter K
On Tue, 24 Dec 2013, Alan Stern wrote:
> > This is my analysis, how do you think?
>
> There is another reason why usb_hub_to_struct_hub() could return NULL:
> if usb_get_intfdata(hdev->actconfig->interface[0]) is NULL. This could
> happen if recursively_mark_NOTATTACHED() is called _while_
>
Hey Alan,
On Mo, 2013-12-23 at 15:38 -0500, Alan Stern wrote:
> On Mon, 23 Dec 2013, Matthias [ISO-8859-1] Blsing wrote:
> > Looking at the strace alone, I see, that the USBDEVFS_SETCONFIGURATION
> > ioctl calls take excessive time.
> >
>
> You're right; those calls took an excessively long time
> On Tue, 24 Dec 2013, Alan Stern wrote:
> I think this will fix it. Take a close look and do some careful testing.
>
> Alan Stern
>
> Index: usb-3.13/drivers/usb/core/hub.c
> ==
> =
> --- usb-3.13.orig/drivers/usb/core/hub.c
> +++
On Wed, 25 Dec 2013, Matthias [ISO-8859-1] Bl�sing wrote:
> The slow down can be tracked to:
>
> usb_enable_interface(dev, intf, true);
>
> I springled comments like this:
>
>
> dev_info(&dev->dev, "T1\n");
> /* re-init hc/hcd interface/endpoint state */
> for (i = 0; i < con
10 matches
Mail list logo