[PATCH] RFC: include/usb/ch9.h: pad usb_endpoint_descriptor with 1 byte

2015-08-20 Thread Peter Mamonov
This patch fixes Ooops, address error on load or ifetch!, caused by usb command on MIPS architecture. To reproduce the problem follow the following steps: 1. Build barebox for MIPS target with -O0 optimization flag: diff --git a/Makefile b/Makefile index 5a7fd5f..da9a8be 100644 --- a/Makefile

[BUG] ata: disk_ata_drive: SSD drive doesn't pass check for ata id validity

2015-10-29 Thread Peter Mamonov
Hi! Barebox refuses to deal with OCZ-VERTEX4 ssd sata drive, because: ata1: ata id invalid This error is triggered by the following piece of code : static int ata_id_is_valid(const uint16_t *id) { if ((id[ATA_ID_FIELD_VALID] & 1) == 0) { pr_debug("Drive's ID

[PATCH] common: filetype: do not redetect MBR-type devices as a FAT-type

2015-11-09 Thread Peter Mamonov
/fat However, the desired behaviour can be reached with a: mount /dev/disk0 /fat || mount /dev/disk0.0 /fat || echo "Mounting failed" Signed-off-by: Peter Mamonov <pmamo...@gmail.com> Acked-by: Sascha Hauer <s.ha...@pengutronix.de> --- common/filetype.c | 30 ---

mips: detect and report secondary cache configuration

2015-11-02 Thread Peter Mamonov
These two patches implement secondary cache detection and report its configuration via cpuinfo command. Peter Mamonov (2): [PATCH 1/2] mips: c-r4k: detect secondary cache [PATCH 2/2] mips: cpuinfo: report secondary cache configuration

[PATCH 1/2] mips: c-r4k: detect secondary cache

2015-11-02 Thread Peter Mamonov
--- arch/mips/lib/c-r4k.c | 31 +++ arch/mips/lib/cpu-probe.c | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/c-r4k.c b/arch/mips/lib/c-r4k.c index 01b8665..0a9dd0e 100644 --- a/arch/mips/lib/c-r4k.c +++

Re: [BUG] ata: disk_ata_drive: SSD drive doesn't pass check for ata id validity

2015-10-30 Thread Peter Mamonov
On Fri, 30 Oct 2015 09:53:50 +0100 Juergen Borleis <j...@pengutronix.de> wrote: > On Friday 30 October 2015 08:31:04 Sascha Hauer wrote: > > On Thu, Oct 29, 2015 at 04:04:09PM +0300, Peter Mamonov wrote: > > > Hi! > > > > > > Barebox refuses to dea

[PATCH] ata: disk_ata_drive: remove obsolete check for ID validity

2015-10-30 Thread Peter Mamonov
Acked-by: Juergen Borleis <j...@pengutronix.de> Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/ata/disk_ata_drive.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/ata/disk_ata_drive.c b/drivers/ata/disk_ata_drive.c index ee1709e..d3

[PATCH resend 2/2] mips: cpuinfo: report secondary cache configuration

2015-11-02 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- arch/mips/lib/cpuinfo.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/mips/lib/cpuinfo.c b/arch/mips/lib/cpuinfo.c index 1b17169..fb02a4d 100644 --- a/arch/mips/lib/cpuinfo.c +++ b/arch/mips/lib/cpu

[PATCH resend 1/2] mips: c-r4k: detect secondary cache

2015-11-02 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- arch/mips/lib/c-r4k.c | 31 +++ arch/mips/lib/cpu-probe.c | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/c-r4k.c b/arch/mips/lib/c-r4k.c index 01b8665..0a9dd0e

[PATCH resend 0/2] mips: c-r4k: detect secondary cache

2015-11-02 Thread Peter Mamonov
These two patches implement secondary cache detection and report its configuration via cpuinfo command. Peter Mamonov (2): [PATCH resend 1/2] mips: c-r4k: detect secondary cache [PATCH resend 2/2] mips: cpuinfo: report secondary cache

[PATCH 2/2] mips: cpuinfo: report secondary cache configuration

2015-11-02 Thread Peter Mamonov
--- arch/mips/lib/cpuinfo.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/mips/lib/cpuinfo.c b/arch/mips/lib/cpuinfo.c index 1b17169..fb02a4d 100644 --- a/arch/mips/lib/cpuinfo.c +++ b/arch/mips/lib/cpuinfo.c @@ -28,7 +28,7 @@ static char *way_string[] = {

Re: [PATCH 0/2] usb: core: return -EAGAIN on usb_* functions reentrance

2015-10-15 Thread Peter Mamonov
On Wed, 14 Oct 2015 16:09:08 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > Hi Peter, > > On Wed, Oct 14, 2015 at 01:15:47PM +0300, Peter Mamonov wrote: > > The second patch of this patch set adds reentrance detection to > > the the following functions: usb_subm

[PATCH 2/2] usb: core: return -EAGAIN on usb_* functions reentrance

2015-10-14 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/core/usb.c | 40 +++- include/usb/usb.h | 1 + 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index a3fb1e8..ce229f2

[PATCH 0/2] usb: core: return -EAGAIN on usb_* functions reentrance

2015-10-14 Thread Peter Mamonov
regular *delay() functions throughout the ehci-hcd.c. The first patch adds check for -EAGAIN return value to the usb keyboard driver. The driver will skip keyboard poll upon getting this error value from either usb_submit_int_msg() or usb_get_report() functions. Peter Mamonov (2): input

[PATCH 1/2] input: usb_kbd: skip poll on -EAGAIN error

2015-10-14 Thread Peter Mamonov
Skip poll if either usb_submit_int_msg() or usb_get_report() returned -EAGAIN. Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/usb_kbd.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/input/usb_kbd.c b/drivers/input/usb_kbd.c index 8

Re: [RFC] common: filetype: is_fat_or_mbr() considered harmful

2015-10-12 Thread Peter Mamonov
On Fri, 9 Oct 2015 18:11:44 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Fri, Oct 09, 2015 at 03:40:37PM +0300, Peter Mamonov wrote: > > On Fri, 9 Oct 2015 10:06:24 +0200 > > Sascha Hauer <s.ha...@pengutronix.de> wrote: > > > > > Hi Peter,

[PATCH v1] fixup! detect_fs: use device instead of file

2015-10-12 Thread Peter Mamonov
--- fs/fs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index c041e41..c2a20e1 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1201,10 +1201,14 @@ EXPORT_SYMBOL(register_fs_driver); static const char *detect_fs(const char *filename) { - enum

Re: [PATCH 4/5] usb: ehci-hcd: use mdelay_non_inerruptible()

2015-10-12 Thread Peter Mamonov
On Mon, 12 Oct 2015 09:00:21 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Wed, Oct 07, 2015 at 07:52:21PM +0300, Peter Mamonov wrote: > > On Wed, 7 Oct 2015 17:40:24 +0200 > > > > Non-interruptible delays are needed here to prevent ehci_* > > > >

Re: [PATCH 4/5] usb: ehci-hcd: use mdelay_non_inerruptible()

2015-10-07 Thread Peter Mamonov
On Wed, 7 Oct 2015 15:47:03 +0200 Jean-Christophe PLAGNIOL-VILLARD <plagn...@jcrosoft.com> wrote: > On 18:58 Tue 22 Sep , Peter Mamonov wrote: > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > --- > > drivers/usb/host/ehci-hcd.c | 6 +++--- > &

[PATCH] fixup! detect_fs: use device instead of file

2015-10-07 Thread Peter Mamonov
--- fs/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index c041e41..6283cea 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1201,7 +1201,7 @@ EXPORT_SYMBOL(register_fs_driver); static const char *detect_fs(const char *filename) { - enum filetype type

[RFC] common: filetype: is_fat_or_mbr() considered harmful

2015-10-07 Thread Peter Mamonov
Deleted pieces of code detect MBR-containig device as a FAT-type device, if it's first partition contains a FAT filesystem. So, one can mount the first partition of a hard drive containing FAT FS using the following command: barebox: mount /dev/ata0.0 /mnt/0 as well as this one:

Re: [PATCH 4/5] usb: ehci-hcd: use mdelay_non_inerruptible()

2015-10-07 Thread Peter Mamonov
On Wed, 7 Oct 2015 17:40:24 +0200 Jean-Christophe PLAGNIOL-VILLARD <plagn...@jcrosoft.com> wrote: > On 17:40 Wed 07 Oct , Peter Mamonov wrote: > > On Wed, 7 Oct 2015 15:47:03 +0200 > > Jean-Christophe PLAGNIOL-VILLARD <plagn...@jcrosoft.com> wrote: > > >

Re: [PATCH 4/5] usb: ehci-hcd: use mdelay_non_inerruptible()

2015-10-13 Thread Peter Mamonov
On Mon, 12 Oct 2015 15:44:01 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Mon, Oct 12, 2015 at 02:43:25PM +0300, Peter Mamonov wrote: > > On Mon, 12 Oct 2015 09:00:21 +0200 > > Sascha Hauer <s.ha...@pengutronix.de> wrote: > > > > > On We

[PATCH v1 resend] fixup! detect_fs: use device instead of file

2015-10-13 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- fs/fs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index c041e41..c2a20e1 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1201,10 +1201,14 @@ EXPORT_SYMBOL(register_fs_driver); static cons

Re: [PATCH] fixup! detect_fs: use device instead of file

2015-10-09 Thread Peter Mamonov
On Fri, 9 Oct 2015 08:31:49 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Wed, Oct 07, 2015 at 06:52:57PM +0300, Peter Mamonov wrote: > > --- > > fs/fs.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/fs/fs.c b/fs

Re: [RFC] common: filetype: is_fat_or_mbr() considered harmful

2015-10-09 Thread Peter Mamonov
On Fri, 9 Oct 2015 10:06:24 +0200 Sascha Hauer <s.ha...@pengutronix.de> wrote: > Hi Peter, > > On Wed, Oct 07, 2015 at 09:03:56PM +0300, Peter Mamonov wrote: > > Deleted pieces of code detect MBR-containig device as a FAT-type > > device, if it's first partition co

[RFC] usb: ehci-hcd: add OF bindings

2015-08-27 Thread Peter Mamonov
Signed-off-by: Peter Mamonov pmamo...@gmail.com --- drivers/usb/host/ehci-hcd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 1146b71..ef555eb 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci

Re: [RFC] usb: ehci-hcd: add OF bindings

2015-08-28 Thread Peter Mamonov
Signed-off-by: Peter Mamonov pmamo...@gmail.com --- drivers/usb/host/ehci-hcd.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 1146b71..1077ac4 100644 --- a/drivers/usb/host/ehci-hcd.c

Re: [PATCH] RFC: include/usb/ch9.h: pad usb_endpoint_descriptor with 1 byte

2015-08-26 Thread Peter Mamonov
On Mon, 24 Aug 2015 17:10:55 +0200 Lucas Stach l.st...@pengutronix.de wrote: Am Montag, den 24.08.2015, 17:35 +0300 schrieb Antony Pavlov: On Mon, 24 Aug 2015 10:49:10 +0200 Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Aug 20, 2015 at 06:22:18PM +0300, Peter Mamonov wrote

[PATCH] usb: ehci-hcd: initialize ehci-qh_list[] with zeros

2015-08-25 Thread Peter Mamonov
= cpu_to_hc32(QT_TOKEN_STATUS(QT_TOKEN_STATUS_HALTED)); ... } Signed-off-by: Peter Mamonov pmamo...@gmail.com --- drivers/usb/host/ehci-hcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index a9039c6..58c22db

[PATCH] ata: intf_platform_ide: add OF bindings

2015-09-03 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/ata/intf_platform_ide.c | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 0d392d8..f20e0e0

Re: [PATCH] ata: intf_platform_ide: add OF bindings

2015-09-03 Thread Peter Mamonov
On Thu, 3 Sep 2015 17:24:55 +0300 Antony Pavlov <antonynpav...@gmail.com> wrote: > On Thu, 3 Sep 2015 16:38:46 +0300 > Peter Mamonov <pmamo...@gmail.com> wrote: > > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > --- &g

Re: [PATCH] ata: intf_platform_ide: add OF bindings

2015-09-04 Thread Peter Mamonov
Hi, Sascha! On Thu, 3 Sep 2015 20:16:36 +0200 Sascha Hauer wrote: > On Thu, Sep 03, 2015 at 07:31:55PM +0300, Antony Pavlov wrote: > > On Thu, 03 Sep 2015 17:46:32 +0200 > > Lucas Stach wrote: > > > > > Hi Peter. > > > > > > Sorry, but this

Re: [PATCH] ata: intf_platform_ide: add OF bindings

2015-09-04 Thread Peter Mamonov
However, drivers/ata/pata_of_platform.c from Linux also lacks any clock/stuff initialization. Regards, Peter > > Regards, > Lucas > > Am Donnerstag, den 03.09.2015, 16:38 +0300 schrieb Peter Mamonov: > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > ---

[PATCH] ata: ide-sff: fix integer overflow in ata_wait_ready()

2015-09-02 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/ata/ide-sff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c index a8f2b26..e32cc3f 100644 --- a/drivers/ata/ide-sff.c +++ b/drivers/ata/ide-sff.c @@ -118,7

[PATCH] ata: intf_platform_ide: add OF bindings

2015-09-03 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/ata/intf_platform_ide.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 0d392d8..ba28f17 100644 --- a/d

[PATCHv2] ata: intf_platform_ide: add OF bindings

2015-09-07 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/ata/intf_platform_ide.c | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 0d392d8..e46c2c8

[PATCHv3] ata: intf_platform_ide: add OF bindings

2015-09-07 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/ata/intf_platform_ide.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 0d392d8..ab633c0

[PATCH] usb: ehci: prevent bad PORTSC register access

2015-08-25 Thread Peter Mamonov
a port error when necessary. It would cause a port scan failure if the ehci_submit_root() always gets terminated by a port error. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Peter Mamonov pmamo...@gmail.com --- drivers/usb/host/ehci-hcd.c | 38

[PATCH] usb: ehci-hcd: use is_timeout_non_interruptible()

2015-09-09 Thread Peter Mamonov
Use is_timeout_non_interruptible() intead of is_timeout() to avoid re-entering ehci-hcd functions from pollers, registered by usb drivers. Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [RFC] WIP: add usb keyboard driver

2015-09-10 Thread Peter Mamonov
f EHCI driver doesn't support interrupt transactions: submit_int_msg() in ehci-hcd.c is a stub. I'll try to implement it. Peter > > I have not much to say, the driver looks ok to me. I'll test it once I > find time. Some smally comments inline. > > On Wed, Sep 09, 2015 at 07:36:52P

[PATCH 2/2] input: port usb keyboard driver from the u-boot

2015-09-16 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/Kconfig | 7 + drivers/input/Makefile | 1 + drivers/input/usb_kbd.c | 417 3 files changed, 425 insertions(+) create mode 100644 drivers/input/usb_kbd.c diff

[PATCH 1/2] usb: ehci-hcd: port periodic transactions implementation from the u-boot

2015-09-16 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 400 +++- drivers/usb/host/ehci.h | 15 +- 2 files changed, 413 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci

[RFC v3 0/2] WIP: add usb keyboard driver

2015-09-16 Thread Peter Mamonov
Peter Mamonov (2): usb: ehci-hcd: port periodic transactions implementation input: port usb keyboard driver from the u-boot ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[RFC v2 3/3] input: port usb keyboard driver from the u-boot

2015-09-11 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/Kconfig | 7 + drivers/input/Makefile | 1 + drivers/input/usb_kbd.c | 379 3 files changed, 387 insertions(+) diff --git a/drivers/input/Kconfig b/drivers/input/K

[RFC v2 0/3] WIP: add usb keyboard driver

2015-09-11 Thread Peter Mamonov
Changes since v1: * port missing submit_int_msg() from u-boot; * switch to polling via interrupt endpoint: now all keyboards work fine! Peter Mamonov (3): usb: ehci-hcd: port periodic transactions implementation from the u-boot WIP: usb: ehci-hcd: use non-interruptible version

[RFC v2 2/3] WIP: usb: ehci-hcd: use non-interruptible version of mdelay()

2015-09-11 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index c9bf703..3d89ec5 100644 --- a/drivers/usb/host/ehci-hcd.c

[RFC v2 1/3] usb: ehci-hcd: port periodic transactions implementation from the u-boot

2015-09-11 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 426 +++- drivers/usb/host/ehci.h | 15 +- 2 files changed, 439 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci

[RFC v4 0/2] WIP: add usb keyboard driver

2015-09-17 Thread Peter Mamonov
Changes since v3: - issue Set_Idle(duration=0) usb request if polling via control EP Peter Mamonov (2): usb: ehci-hcd: port periodic transactions implementation input: port usb keyboard driver from the u-boot ___ barebox mailing

[RFC] WIP: add usb keyboard driver

2015-09-09 Thread Peter Mamonov
The driver doesn't work with some "multimedia" keyboards. This driver contains code ported from u-boot. Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/Kconfig | 7 + drivers/input/Makefile | 1 + drivers/input

[PATCH v7 3/5] usb: ehci-hcd: detect re-entrance

2015-09-24 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 42 ++ 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 72f7414..c5f2dda 100644 --- a/d

[PATCH v7 1/5] common: clock: introduce mdelay_non_interruptible()

2015-09-24 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- common/clock.c | 9 + include/clock.h | 1 + include/common.h | 1 + 3 files changed, 11 insertions(+) diff --git a/common/clock.c b/common/clock.c index 35c9e6c..2c5dd91 100644 --- a/common/clock.c +++ b/common/clock.c @@

[PATCH v7 2/5] usb: ehci-hcd: port periodic transactions implementation from the u-boot

2015-09-24 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> --- drivers/usb/host/ehci-hcd.c | 402 +++- drivers/usb/host/ehci.h | 15 +- 2 files changed, 415 insertions(+), 2 deletions(-) diff --g

[PATCH v7 4/5] usb: ehci-hcd: use mdelay_non_interruptible()

2015-09-24 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index c5f2dda..c47d1de 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drive

[PATCH 3/5] usb: ehci-hcd: detect re-entrance

2015-09-22 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index e6748b0..d6df7b8 100644 --- a/drive

[PATCH v6 0/5] input: add usb keyboard driver

2015-09-22 Thread Peter Mamonov
will wait before replying to the host interrupt packet. We don't want to waste that time, so keep it as small as possible. In particular this resolves the problem of very poor tftp performance, when the usb keyboard is enabled. Peter Mamonov (5): common: clock

[PATCH 4/5] usb: ehci-hcd: use mdelay_non_inerruptible()

2015-09-22 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index d6df7b8..03d6150 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drive

Re: [PATCH 1/5] common: clock: introduce mdelay_non_interruptible()

2015-09-22 Thread Peter Mamonov
On Wed, 23 Sep 2015 00:15:28 +0300 Antony Pavlov <antonynpav...@gmail.com> wrote: > On Tue, 22 Sep 2015 18:58:30 +0300 > Peter Mamonov <pmamo...@gmail.com> wrote: > > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > --- > > common/clo

[PATCH 5/5] input: port usb keyboard driver from the u-boot

2015-09-22 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/Kconfig | 7 + drivers/input/Makefile | 1 + drivers/input/usb_kbd.c | 421 3 files changed, 429 insertions(+) create mode 100644 drivers/input/usb_kbd.c diff

[PATCH v7 5/5] input: port usb keyboard driver from the u-boot

2015-09-24 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> --- drivers/input/Kconfig | 7 + drivers/input/Makefile | 1 + drivers/input/usb_kbd.c | 420 3 files changed, 428 insertion

[PATCH 3/5] common: clock: introduce mdelay_non_interruptible()

2015-09-21 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- common/clock.c | 8 include/clock.h | 1 + include/common.h | 1 + 3 files changed, 10 insertions(+) diff --git a/common/clock.c b/common/clock.c index 35c9e6c..51cf9e4 100644 --- a/common/clock.c +++ b/common/clock.c @@

[PATCH 1/5] usb: ehci-hcd: port periodic transactions implementation from the u-boot

2015-09-21 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 400 +++- drivers/usb/host/ehci.h | 15 +- 2 files changed, 413 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci

[PATCH 4/5] usb: ehci-hcd: use mdelay_non_inerruptible()

2015-09-21 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 133f42e..4a8bb58 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drive

[RFC v5 0/2] WIP: add usb keyboard driver

2015-09-21 Thread Peter Mamonov
Changes since v4: - usb: ehci-hcd: detect submit_*_msg() functions re-entrance - common: clock: introduce non interruptible version of mdelay() function - usb: ehci-hcd: use mdelay_non_inerruptible to avoid re-entrance Peter Mamonov (5): usb: ehci-hcd: port

[PATCH 2/5] usb: ehci-hcd: detect re-entrance

2015-09-21 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 14bb7d9..133f42e 100644 --- a/d

Re: [RFC 3/9] MIPS: add virt_to_phys() and phys_to_virt()

2015-12-08 Thread Peter Mamonov
On Mon, 7 Dec 2015 11:27:44 +0100 Sascha Hauer wrote: > On Sun, Dec 06, 2015 at 05:50:51PM +0300, Antony Pavlov wrote: > > On Fri, 4 Sep 2015 08:20:48 +0200 > > Sascha Hauer wrote: > > > > > On Fri, Aug 28, 2015 at 06:46:14PM +0300, Antony Pavlov

[RFC] device probe order

2015-12-23 Thread Peter Mamonov
Dear All, I've ported an UHCI driver from the u-boot to the barebox (WIP). To interoperate with the EHCI driver, the UHCI driver should be probed ater the EHCI driver. Both drivers are binded via the device tree mechanism. How can i achieve the correct probe order? Regards, Peter

Re: [RFC] device probe order

2015-12-23 Thread Peter Mamonov
On Wed, 23 Dec 2015 17:35:51 +0100 Alexander Aring <alex.ar...@gmail.com> wrote: > On Wed, Dec 23, 2015 at 07:10:58PM +0300, Peter Mamonov wrote: > > Dear All, > > > > I've ported an UHCI driver from the u-boot to the barebox (WIP). To > > interoperate with

Re: [RFC] device probe order

2015-12-24 Thread Peter Mamonov
on", 0); + if (companion && !of_find_device_by_node(companion)) { + dev_err(dev, "PROBE_DEFER\n"); + return -EPROBE_DEFER; + } + } On Thu, 24 Dec 2015 15:35:15 +0100 Alexander Aring <alex.ar...@gmail.com>

Re: [RFC] device probe order

2015-12-24 Thread Peter Mamonov
On Wed, 23 Dec 2015 18:04:43 +0100 Alexander Aring <alex.ar...@gmail.com> wrote: > On Wed, Dec 23, 2015 at 07:56:44PM +0300, Peter Mamonov wrote: > > On Wed, 23 Dec 2015 17:35:51 +0100 > > Alexander Aring <alex.ar...@gmail.com> wrote: > > > > > On We

Re: [RFC] device probe order

2015-12-24 Thread Peter Mamonov
On Wed, 23 Dec 2015 20:46:02 +0100 Sascha Hauer <s.ha...@pengutronix.de> wrote: > Hi Peter, > > On Wed, Dec 23, 2015 at 07:10:58PM +0300, Peter Mamonov wrote: > > Dear All, > > > > I've ported an UHCI driver from the u-boot to the barebox (WIP). To >

Re: [RFC] device probe order

2015-12-24 Thread Peter Mamonov
On Thu, 24 Dec 2015 12:48:37 +0300 Peter Mamonov <pmamo...@gmail.com> wrote: > On Wed, 23 Dec 2015 18:04:43 +0100 > Alexander Aring <alex.ar...@gmail.com> wrote: > > > On Wed, Dec 23, 2015 at 07:56:44PM +0300, Peter Mamonov wrote: > > > On Wed, 23 Dec 2015

Re: [BUG] barebox won't boot from SD card on iMX233-OLinuXino-MAXI

2016-01-11 Thread Peter Mamonov
В Mon, 11 Jan 2016 20:02:11 -0200 Fabio Estevam <feste...@gmail.com> пишет: > On Mon, Jan 11, 2016 at 7:55 PM, Peter Mamonov <pmamo...@gmail.com> wrote: > > At least nothing is printed to the Debug UART. > > > > git-bisect points to the following patch: >

[BUG] barebox won't boot from SD card on iMX233-OLinuXino-MAXI

2016-01-11 Thread Peter Mamonov
At least nothing is printed to the Debug UART. git-bisect points to the following patch: 4d70da6 ARM: MXS: power-init: Add parameters to mx28_power_init() Reverting this patch fixes the issue. Regards, Peter ___ barebox mailing list

Re: [PATCH v2] input: usb keyboard: fix CTRL+C

2016-02-24 Thread Peter Mamonov
On Wed, 24 Feb 2016 17:21:48 +0300 Antony Pavlov <antonynpav...@gmail.com> wrote: > On Wed, 24 Feb 2016 13:48:45 +0300 > Peter Mamonov <pmamo...@gmail.com> wrote: > > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > Signed-off-by: Sam Ravnborg &

[PATCH v3] input: usb keyboard: fix CTRL+ combinations

2016-02-25 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> Signed-off-by: Sam Ravnborg <s...@ravnborg.org> Signed-off-by: Trent Piepho <tpie...@kymetacorp.com> --- drivers/input/input.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/input.c b/dri

Re: [PATCH v2] input: usb keyboard: fix CTRL+C

2016-02-25 Thread Peter Mamonov
On Wed, 24 Feb 2016 19:12:27 +0100 Sascha Hauer <s.ha...@pengutronix.de> wrote: > On Wed, Feb 24, 2016 at 06:07:01PM +0300, Peter Mamonov wrote: > > On Wed, 24 Feb 2016 17:21:48 +0300 > > Antony Pavlov <antonynpav...@gmail.com> wrote: > > > > > On W

[PATCH 2/2] input: usb keyboard: fix CTRL+C

2016-02-20 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/input.c| 4 ++- drivers/input/keymap.c | 82 include/input/keyboard.h | 1 + 3 files changed, 86 insertions(+), 1 deletion(-) diff --git a/drivers/input/input.c b/d

[PATCH 1/2] input: usb keyboard: fix BACKSPACE

2016-02-20 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keymap.c b/drivers/input/keymap.c index a07b3a8..79ca461 100644 --- a/drivers/input/keymap.c +++ b/drivers/input/keymap.c @@

[PATCH] mtd: spi-nor: add support for s25fl208k

2017-01-26 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 45be586..2718213 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-n

Re: [PATCH] ata: new driver to support the internal sata controller on Armada-XP

2017-01-26 Thread Peter Mamonov
Hi Uwe, Our approach for the same problem was to put SATA PHY initialization into the board specific code (I guess in your case it is arch/arm/boards/marvell-armada-xp-gp/board.c) and bind the generic ATA driver (drivers/ata/intf_platform_ide.c) via the device tree. Regards, Peter On Thu,

[PATCH] usb: ehci: pass full speed devices to companion controller

2017-01-26 Thread Peter Mamonov
r to a one to release port ownership to a companion host controller. Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/ehci-hcd.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/

[PATCH] usb: uhci-hcd: fix submit_int_msg() return value

2017-03-22 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/uhci-hcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index 04d167ee3..d32140026 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/d

[PATCH] usb_kbd: release all keys on error / disconnect

2017-03-22 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/input/usb_kbd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/usb_kbd.c b/drivers/input/usb_kbd.c index 2acc95d9f..a2b92c285 100644 --- a/drivers/input/usb_kbd.c +++ b/drivers/input/usb_kbd.c @@

[PATCH] usb: uhci-hcd: fix uhci_alloc_int_td()

2017-03-22 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/usb/host/uhci-hcd.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index 9ad4644e8..04d167ee3 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/d

Re: [PATCH] usb: uhci-hcd: fix uhci_alloc_int_td()

2017-04-05 Thread Peter Mamonov
Hi Sasha, On Fri, Mar 24, 2017 at 07:20:55AM +0100, Sascha Hauer wrote: > Hi Peter, > > On Thu, Mar 23, 2017 at 12:36:15AM +0300, Peter Mamonov wrote: > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > --- > > drivers/usb/host/uhci-hcd.c | 6 +- > &

Re: cp: incorrect behaviour when copying recursively

2017-04-21 Thread Peter Mamonov
Hi Sasha, On Wed, Apr 19, 2017 at 10:07:23AM +0200, Sascha Hauer wrote: > Hi Peter, > > On Fri, Apr 14, 2017 at 01:10:51PM +0300, Peter Mamonov wrote: > > Hi, > > > > The "cp -r " command omits top directory, when the trailing "/" > >

cp: incorrect behaviour when copying recursively

2017-04-14 Thread Peter Mamonov
Hi, The "cp -r " command omits top directory, when the trailing "/" is present in the string. Here is the test case: barebox@barebox sandbox:/test mkdir d1 barebox@barebox sandbox:/test echo -o d1/f1 1 barebox@barebox sandbox:/test mkdir d2

Re: [PATCH] net/phy: marvell: import support for 88E1111 from the Linux

2017-03-13 Thread Peter Mamonov
> J/ > On 18:18 Fri 10 Mar , pmamo...@gmail.com wrote: > > From: Peter Mamonov <pmamo...@gmail.com> > > > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > --- > > drivers/net/phy/marvell.c | 126 > > ++

Re: [PATCH v2 04/13] MIPS: add virt_to_phys() and phys_to_virt()

2017-08-07 Thread Peter Mamonov
Hi Oleksij, On Mon, Aug 07, 2017 at 04:39:18PM +0200, Oleksij Rempel wrote: > From: Antony Pavlov <antonynpav...@gmail.com> > > Signed-off-by: Antony Pavlov <antonynpav...@gmail.com> > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > --- &

Re: [PATCH v2 05/13] net: ath79: add ag71xx Ethernet driver

2017-08-07 Thread Peter Mamonov
On Mon, Aug 07, 2017 at 04:39:19PM +0200, Oleksij Rempel wrote: > From: Yegor Yefremov > > Signed-off-by: Yegor Yefremov > Signed-off-by: Antony Pavlov > --- > Documentation/boards/mips/tplink-mr3020.rst |

Re: command: hashsum: md5sum reports wrong sum for the file named 4k.bin

2017-12-21 Thread Peter Mamonov
On Wed, Dec 20, 2017 at 01:48:14PM +0300, Peter Mamonov wrote: > Hi, > > The md5sum command reports wrong sum for a file named 4k.bin and, I guess, > for > other files named alike. Here are the commands to reproduce the bug: The problem lays in __do_digest() function: -

Re: [PATCH v1 04/10] bootm: add kexec ELF support

2018-05-17 Thread Peter Mamonov
On Thu, May 17, 2018 at 09:01:06AM +0200, Sascha Hauer wrote: > On Thu, May 17, 2018 at 06:52:10AM +0200, Oleksij Rempel wrote: > > Am 16.05.2018 um 23:34 schrieb Peter Mamonov: > > > Hi! > > > > > > On Wed, May 16, 2018 at 06:42:27PM +0200, Oleksij Remp

Re: [RFC PATCH 11/15] resource: fix iomem root resource for 64 bit

2018-05-18 Thread Peter Mamonov
Hi, Andrey, On Thu, May 17, 2018 at 02:50:58PM -0700, Andrey Smirnov wrote: > On Thu, May 17, 2018 at 6:58 AM, Peter Mamonov <pmamo...@gmail.com> wrote: > > Signed-off-by: Peter Mamonov <pmamo...@gmail.com> > > --- > > common/resource.c | 4 > > 1 fil

[RFC PATCH 12/15] FIXME: commands/mem: fix /dev/mem size

2018-05-17 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- commands/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/mem.c b/commands/mem.c index eb91ade05..80cf5c79d 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -96,7 +96,7 @@ static int mem_probe(

[RFC PATCH 13/15] FIXME: fs: fix memory access for 64bit MIPS

2018-05-17 Thread Peter Mamonov
Address 0x is a valid MIPS64 address. Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- fs/fs.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index b66cc9b17..d4965c85e 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -962,8 +962,6 @@ loff_t lseek(int

[RFC PATCH 15/15] i2c/muxes/i2c-mux-pca954x: fix private data retrieval for 64bit mode

2018-05-17 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/i2c/muxes/i2c-mux-pca954x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index 0d5515b71..395254cdc 100644 --- a/drivers/i2c/mux

[RFC PATCH 14/15] mtd: cfi-flash: fix write_buff() for 64BIT

2018-05-17 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- drivers/mtd/nor/cfi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c index 5bdcccae1..01ab1aa27 100644 --- a/drivers/mtd/nor/cfi_flash.c +++ b/drivers/m

[RFC PATCH 05/15] mips: fix dma_sync_* stuff for MIPS64

2018-05-17 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- arch/mips/include/asm/dma-mapping.h | 2 +- arch/mips/include/asm/io.h | 4 ++-- arch/mips/lib/c-r4k.c | 26 +- arch/mips/lib/dma-default.c | 6 -- 4 files changed, 20 inse

[RFC PATCH 09/15] MIPS: import 64-bit address conversion macros

2018-05-17 Thread Peter Mamonov
Signed-off-by: Peter Mamonov <pmamo...@gmail.com> --- arch/mips/include/asm/addrspace.h | 20 1 file changed, 20 insertions(+) diff --git a/arch/mips/include/asm/addrspace.h b/arch/mips/include/asm/addrspace.h index 04d0f95db..688620472 100644 --- a/arch/mips/inclu

  1   2   >