[PATCH] usbnet: smsc95xx: allow to down ethernet link

2018-12-21 Thread Max Uvarov
allow ifconfig ethX to down ethernet link. Ethernet part of chip is switched to power down more and on ifconfig up driver does soft reset and restores it's state. Signed-off-by: Max Uvarov --- drivers/net/usb/smsc95xx.c | 34 +- drivers/net/usb/smsc95xx.h | 5

[PATCH] b: re-queue tx dma request on herror

2016-11-15 Thread Max Uvarov
end of list, destroys current dma transfer and renew transmission. In that case this urb transmitted in next cycle and not failing with error before timeout. Signed-off-by: Max Uvarov <muva...@gmail.com> --- drivers/usb/musb/musb_host.c | 8 1 file changed, 4 insertions(+), 4 deletio

[PATCH] b: re-queue tx dma request on herror

2016-11-15 Thread Max Uvarov
end of list, destroys current dma transfer and renew transmission. In that case this urb transmitted in next cycle and not failing with error before timeout. Signed-off-by: Max Uvarov --- drivers/usb/musb/musb_host.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --g

[PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-04-27 Thread Max Uvarov
original logic for RXCSR_H_ERROR and merge RXCSR_DATAERROR and RXCSR_H_ERROR branches to call same code for setting rx stall with MUSB_RXCSR_H_WZC_BITS. Signed-off-by: Max Uvarov <muva...@gmail.com> --- v2: use bitwise or for error flags before logical and. (Sergei Shtylyov). drivers/usb/m

[PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-04-27 Thread Max Uvarov
original logic for RXCSR_H_ERROR and merge RXCSR_DATAERROR and RXCSR_H_ERROR branches to call same code for setting rx stall with MUSB_RXCSR_H_WZC_BITS. Signed-off-by: Max Uvarov --- v2: use bitwise or for error flags before logical and. (Sergei Shtylyov). drivers/usb/musb/musb_host.c | 12 +-

[PATCH] musb_host: fix lockup on rxcsr_h_error

2016-04-26 Thread Max Uvarov
original logic for RXCSR_H_ERROR and merge RXCSR_DATAERROR and RXCSR_H_ERROR branches to call same code for setting rx stall with MUSB_RXCSR_H_WZC_BITS. Signed-off-by: Max Uvarov <muva...@gmail.com> --- drivers/usb/musb/musb_host.c | 13 ++--- 1 file changed, 6 insertions(+), 7 del

[PATCH] musb_host: fix lockup on rxcsr_h_error

2016-04-26 Thread Max Uvarov
original logic for RXCSR_H_ERROR and merge RXCSR_DATAERROR and RXCSR_H_ERROR branches to call same code for setting rx stall with MUSB_RXCSR_H_WZC_BITS. Signed-off-by: Max Uvarov --- drivers/usb/musb/musb_host.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dr

[PATCH] fdt: fix extend of cmd line

2016-04-13 Thread Max Uvarov
On arm CONFIG_CMDLINE_EXTEND does not append build-in cmdline in kernel to U-boot parameters. Fix it here. Theoretically this patch should repair kdump work where it adds elfcorehdr= and memmap additional parameters to second kernel. Signed-off-by: Max Uvarov <muva...@gmail.com> --- d

[PATCH] fdt: fix extend of cmd line

2016-04-13 Thread Max Uvarov
On arm CONFIG_CMDLINE_EXTEND does not append build-in cmdline in kernel to U-boot parameters. Fix it here. Theoretically this patch should repair kdump work where it adds elfcorehdr= and memmap additional parameters to second kernel. Signed-off-by: Max Uvarov --- drivers/of/fdt.c | 10