2010/4/12 Sujith <Sujith.Manoharan@xxxxxxxxxxx>: > tom.leiming@xxxxxxxxx wrote: >> This patch copies skb->data of register out command to kmalloced buffer, >> which is cacheline aligned(dma safe) and passed into usb hcd. Since the >> data in register out command is not very much, we can ignore the >> performance loss caused by the copy. > > Actually, the current code is correct, though a bit sub-optimal. > The inital dev_alloc_skb() in ath9k_wmi_cmd() allocates a headroom > for WMI header + HTC header. The headers are then pushed as the packet > moves down through HTC. Finally, skb->data is passed to submit_urb(). > > To take care of cacheline alignment, you can just replace the dev_alloc_skb() > with alloc_skb(). A patch is welcome. :-) OK, clever idea, I'll submit a new version. -- Lei Ming -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html