FunctionFS performance on beaglebone black

2018-07-13 Thread Peter Senna Tschudin
I'm reproducing the steps of Alan Ott from his ELC 2014 talk: https://elinux.org/images/6/66/Elc_2014_usb.pdf Alan reports up to 211 Mbit/sec when using 64kB transfers while I can get only around 120 Mbit/sec when using 64kB transfers. My first question is: - is the beaglebone black expected to

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Peter Senna Tschudin
On Wed, Apr 19, 2017 at 01:03:23PM +0300, Sergei Shtylyov wrote: > Hello! > > On 4/19/2017 9:14 AM, Peter Senna Tschudin wrote: > > > We need the SMSC USB3315 clock and regulator to always be initialized. > > We also need the PHY driver to take the PHY out of reset

[RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Peter Senna Tschudin
cide which initialization path to use. CC: Peter Chen <peter.c...@nxp.com> CC: Stephen Boyd <sb...@codeaurora.org> CC: Fabien Lahoudere <fabien.lahoud...@collabora.co.uk> Signed-off-by: Peter Senna Tschudin <peter.se...@collabora.com> --- This is a follow-up of previous discussio

Re: [PATCH v5 04/19] net: e100: Replace PCI pool old API

2017-03-08 Thread Peter Senna Tschudin
igned-off-by: Romain Perier <romain.per...@collabora.com> > > Acked-by: Peter Senna Tschudin <peter.se...@collabora.com> > > Tested-by: Peter Senna Tschudin <peter.se...@collabora.com> > > --- > >  drivers/net/ethernet/intel/e100.c | 12 ++-- > >  

Re: [PATCH v3 12/20] scsi: mpt3sas: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:17PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off

Re: [PATCH v3 13/20] scsi: mvsas: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:18PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off

Re: [PATCH v3 17/20] usb: gadget: pch_udc: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:22PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off

Re: [PATCH v3 11/20] scsi: megaraid: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:16PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off

Re: [PATCH v3 19/20] PCI: Remove PCI pool macro functions

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:24PM +0100, Romain Perier wrote: > Now that all the drivers use dma pool API, we can remove the macro > functions for PCI pool. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off-by: Romain Perier <romain

Re: [PATCH v3 20/20] checkpatch: warn for use of old PCI pool API

2017-02-27 Thread Peter Senna Tschudin
hes did sent some comments for this one, did you address them? Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off-by: Romain Perier <romain.per...@collabora.com> > --- > scripts/checkpatch.pl | 9 - > 1 file changed, 8 insertions(+), 1 d

Re: [PATCH v3 00/20] Replace PCI pool by DMA pool API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:05PM +0100, Romain Perier wrote: > The current PCI pool API are simple macro functions direct expanded to > the appropriated dma pool functions. The prototypes are almost the same > and semantically, they are very similar. I propose to use the DMA pool > API directly

Re: [PATCH v3 18/20] usb: host: Remove remaining pci_pool in comments

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:23PM +0100, Romain Perier wrote: > This replaces remaining occurences of pci_pool by dma_pool, as > this is the new API that could be used for that purpose. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off-by: Romain

Re: [PATCH v3 09/20] scsi: csiostor: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
t; Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off-by: Romain Perier <romain.per...@collabora.com> > --- > drivers/scsi/csiostor/csio_hw.h | 2 +- > drivers/scsi/csiostor/csio_init.c | 11 ++- > drivers/scsi/csiostor/csio_scsi.c | 6 +

Re: [PATCH v3 07/20] wireless: ipw2200: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:12PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off

Re: [PATCH v3 06/20] mlx5: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:11PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Reviewed-by: Peter Senna Tschudin <peter.se...@collabora.com> > Signed-off

Re: [PATCH v3 10/20] scsi: lpfc: Replace PCI pool old API

2017-02-27 Thread Peter Senna Tschudin
On Sun, Feb 26, 2017 at 08:24:15PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. It also updates > some comments, accordingly. > Reviewed-by: Peter Senna Tschud

Re: [PATCH] usb: misc: remove unnecessary code

2017-02-21 Thread Peter Senna Tschudin
-ID: 1230257 Reviewed-by: Peter Senna Tschudin <peter.se...@gmail.com> > Signed-off-by: Gustavo A. R. Silva <garsi...@embeddedor.com> > --- > drivers/usb/misc/lvstest.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/misc/lvst

Re: [RFC v2 11/20] scsi: megaraid: Replace PCI pool old API

2017-02-18 Thread Peter Senna Tschudin
On Sat, Feb 18, 2017 at 09:35:47AM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. Did not apply on linux-next-20170217 > > Signed-off-by: Romain Perier

Re: [RFC v2 00/20] Replace PCI pool by DMA pool API

2017-02-18 Thread Peter Senna Tschudin
On Sat, Feb 18, 2017 at 09:35:36AM +0100, Romain Perier wrote: Tested all patches by compilation and checkpatch. All of them compile fine, but patches 11 and 12 need some fixes. You can resend as PATCH instead of RFC. > The current PCI pool API are simple macro functions direct expanded to > the

Re: [RFC v2 12/20] scsi: mpt3sas: Replace PCI pool old API

2017-02-18 Thread Peter Senna Tschudin
On Sat, Feb 18, 2017 at 09:35:48AM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. Please run checkpatch, fix the style issue and resend. > > Signed-off-by: Romain Perier

Re: [RFC v2 11/20] scsi: megaraid: Replace PCI pool old API

2017-02-18 Thread Peter Senna Tschudin
On Sat, Feb 18, 2017 at 09:35:47AM +0100, Romain Perier wrote: Hi Romain, Checkpatch gives some warnings you can fix related to NULL tests before dma_pool_destroy(), and you changed indentation style in some of your changes. Some times it is important to keep consistency within a file even if

Re: [RFC v2 01/20] block: DAC960: Replace PCI pool old API

2017-02-18 Thread Peter Senna Tschudin
<romain.per...@collabora.com> > Acked-by: Peter Senna Tschudin <peter.se...@collabora.com> > Tested-by: Peter Senna Tschudin <peter.se...@collabora.com> > --- > drivers/block/DAC960.c | 36 ++-- > drivers/block/DAC960.h | 4 ++-- >

Re: [PATCH] usb: class: remove logically dead code

2017-02-15 Thread Peter Senna Tschudin
A. R. Silva <garsi...@embeddedor.com> Reviewed-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/class/cdc-wdm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c > index 0a636

Re: [RFC 11/19] scsi: megaraid: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:49PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- >

Re: [RFC 10/19] scsi: lpfc: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:48PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- > drivers/scsi/lpfc/lpfc.h |

Re: [RFC 14/19] scsi: pmcraid: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:52PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora

Re: [RFC 19/19] checkpatch: warn for use of old PCI pool API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:57PM +0100, Romain Perier wrote: > pci_pool_*() functions should be replaced by the corresponding functions > in the DMA pool API. This adds support to check for use of these pci > functions and display a warning when it is the case. Don't know if relevant, but did

Re: [RFC 00/19] Replace PCI pool by DMA pool API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:38PM +0100, Romain Perier wrote: Hi Romain, Nice set of patches! Thank you. I sent a few comments, but basically you missed to run checkpatch.pl on your patches. Also you can take the chance to fix some white space issues that are on the lines you are changing like

Re: [RFC 05/19] mlx4: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:43PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora.co

Re: [RFC 18/19] PCI: Remove PCI pool macro functions

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:56PM +0100, Romain Perier wrote: > Now that all the drivers use dma pool API, we can remove the macro > functions for PCI pool. Good news: make allyesconfig;make succeed after the changes until this point, but: $ grep -R pci_pool ...

Re: [RFC 04/19] net: e100: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:42PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora.co

Re: [RFC 15/19] usb: gadget: amd5536udc: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:53PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora

Re: [RFC 17/19] usb: gadget: pch_udc: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:55PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- >

Re: [RFC 02/19] dmaengine: pch_dma: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:40PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora

Re: [RFC 16/19] usb: gadget: net2280: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:54PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora

Re: [RFC 12/19] scsi: mpt3sas: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:50PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- >

Re: [RFC 13/19] scsi: mvsas: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:51PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- > drivers/scsi/mvsas/mv_init.c |

Re: [RFC 03/19] IB/mthca: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:41PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora.co

Re: [RFC 01/19] block: DAC960: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
ilation only. Some whitespace errors, but the patch do not add new ones. Acked-by: Peter Senna Tschudin <peter.se...@collabora.com> Tested-by: Peter Senna Tschudin <peter.se...@collabora.com> > --- > drivers/block/DAC960.c | 36 ++-- > drivers/block/DA

Re: [RFC 06/19] mlx5: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:44PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- >

Re: [RFC 07/19] wireless: ipw2200: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:45PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- >

Re: [RFC 09/19] scsi: csiostor: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:47PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > > Signed-off-by: Romain Perier > --- > drivers/scsi/csiostor/csio_hw.h

Re: [RFC 08/19] scsi: be2iscsi: Replace PCI pool old API

2017-02-08 Thread Peter Senna Tschudin
On Wed, Feb 08, 2017 at 05:34:46PM +0100, Romain Perier wrote: > The PCI pool API is deprecated. This commits replaces the PCI pool old > API by the appropriated function with the DMA pool API. > Tested by compilation only. Acked-by: Peter Senna Tschudin <peter.se...@collabora

Re: [PATCH 4/5] usb-misc: sisusbvga: Remove kmalloc logs and fix error path

2016-01-07 Thread Peter Senna Tschudin
On Wed, Jan 06, 2016 at 09:28:41PM +0300, Sergei Shtylyov wrote: > Hello. > > On 1/5/2016 7:54 PM, Peter Senna Tschudin wrote: > > >From: Peter Senna Tschudin <peter.se...@gmail.com> > > > >This patch remove four calls to dev_err() from sisusb_probe() as >

Re: [PATCH 0/5] usb-misc: cleanup sisusbvga

2016-01-06 Thread Peter Senna Tschudin
On Tue, Jan 05, 2016 at 10:53:24AM -0800, Joe Perches wrote: > On Tue, 2016-01-05 at 17:54 +0100, Peter Senna Tschudin wrote: > [] > > Patch 1 is the biggest and fix only whitespace, tab and newline issues. I > > used > > > > $ git diff -w --word-diff=porcel

[PATCH 0/5] usb-misc: cleanup sisusbvga

2016-01-05 Thread Peter Senna Tschudin
pointer. The patch change the problematic error path to cleanup previously allocated resources and abort the probe with -ENOMEM instead of only calling dev_err() and continue with the probe. Patch 5 remove null tests before calls to kfree(). Peter Senna Tschudin (5): usb-misc: sisusbvga: Fix

[PATCH 2/5] usb-misc: sisusbvga: Fix trivial coding style

2016-01-05 Thread Peter Senna Tschudin
From: Peter Senna Tschudin <peter.se...@gmail.com> The file drivers/usb/misc/sisusbvga/sisusb.c contained coding style issues reported by checkpatch. This patch fixes the following errors: - 12 WARNING: braces {} are not necessary for single statement blocks - 4 ERROR: return is not a fu

[PATCH 3/5] usb-misc: sisusbvga: Remove assignments from if tests

2016-01-05 Thread Peter Senna Tschudin
From: Peter Senna Tschudin <peter.se...@gmail.com> The file drivers/usb/misc/sisusbvga/sisusb.c had 6 assignments inside if tests. This patch move the assignement outside the test. Signed-off-by: Peter Senna Tschudin <peter.se...@collabora.com> --- Tested by compilation only. driv

[PATCH 4/5] usb-misc: sisusbvga: Remove kmalloc logs and fix error path

2016-01-05 Thread Peter Senna Tschudin
From: Peter Senna Tschudin <peter.se...@gmail.com> This patch remove four calls to dev_err() from sisusb_probe() as reporting memory allocation failures is redundant: - Remove a call to dev_err() that was reporting unsuccesful call to kzalloc(). - Remove two calls to dev_err() tha

[PATCH 5/5] usb-misc: sisusbvga: Remove null test before kfree()

2016-01-05 Thread Peter Senna Tschudin
From: Peter Senna Tschudin <peter.se...@gmail.com> This patch removes null test before calls to kfree() as kfree() can handle null pointers safely. Signed-off-by: Peter Senna Tschudin <peter.se...@collabora.com> --- Tested by compilation only. drivers/usb/misc/sisusbvga/s

[PATCH 1/5] usb-misc: sisusbvga: Fix coding style: white space

2016-01-05 Thread Peter Senna Tschudin
From: Peter Senna Tschudin <peter.se...@gmail.com> This patch change only spaces, tabs, and newlines. The file drivers/usb/misc/sisusbvga/sisusb.c contained entire statements using 4 spaces for the last level of indetantion, and many other space and tab related issues. This patch

Re: [PATCH 2/9v2] usb: host: ehci.h: remove space before function open parenthesis

2015-12-10 Thread Peter Senna Tschudin
an G. Bem <geys...@gmail.com> > --- As with previous, missing the changelog here, but other than that the patch looks good to me. Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > drivers/usb/host/ehci.h | 22 +++--- > 1 file changed, 11 insertions(+), 11 deletio

Re: [PATCH 4/9v2] usb: host: ehci.h: fix single statement macros

2015-12-10 Thread Peter Senna Tschudin
an G. Bem <geys...@gmail.com> As with previous, missing the changelog, but other than that the patch looks good to me. Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --

Re: [PATCH 3/9v2] usb: host: ehci.h: remove space before open square bracket

2015-12-10 Thread Peter Senna Tschudin
th previous, missing the changelog, but other than that the patch looks good to me. Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci.h | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/drivers/us

Re: [PATCH 5/9v2] usb: host: ehci.h: remove direct use of __attribute__ keyword

2015-12-10 Thread Peter Senna Tschudin
off-by: Geyslan G. Bem <geys...@gmail.com> As with previous, missing the changelog, but other than that the patch looks good to me. Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci.h | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) &g

Re: [PATCH 1/9v2] usb: host: ehci.h: remove space before comma

2015-12-10 Thread Peter Senna Tschudin
fter the ---) what changed from V1. Other than that: Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> Not related to this patch, I did not receive patch 9/9v2. > drivers/usb/host/ehci.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drive

Re: [PATCH 7/9v2] usb: host: ehci.h: remove macros trailing semicolon

2015-12-10 Thread Peter Senna Tschudin
, missing the changelog, but other than that the patch looks good to me. Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host

Re: [PATCH 9/9] usb: host: ehci.h: move constant to right

2015-12-10 Thread Peter Senna Tschudin
ail.com> Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h > index 81e609a..de94555 100644 > --- a/drivers/usb/h

Re: [PATCH 6/9v2] usb: host: ehci.h: use space after comma

2015-12-10 Thread Peter Senna Tschudin
On Wed, Dec 09, 2015 at 07:32:35PM -0300, Geyslan G. Bem wrote: > Put space after comma. > > This patch also changes QH_NEXT macro for better reading. > > Caught by checkpatch: "ERROR: space required after that ','" > > Signed-off-by: Geyslan G. Bem > --- >

Re: [PATCH 8/9v2] usb: host: ehci.h: move pointer operator to name side

2015-12-10 Thread Peter Senna Tschudin
vious, missing the changelog, but other than that the patch looks good to me. Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci.h b/drivers/usb/hos

Re: [PATCH] usb: whci: fhci: remove comparison to bool

2015-12-07 Thread Peter Senna Tschudin
On Wed, Dec 2, 2015 at 10:45 PM, Geyslan G. Bem <geys...@gmail.com> wrote: > Get rid of bool explicit comparisons. > > Caught by Coccinelle. I would mention the path to the .cocci script, but other than that: Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > > Si

Re: [PATCH 3/3] usb: xhci: replace dma_pool_alloc and memset with dma_pool_zalloc

2015-12-07 Thread Peter Senna Tschudin
On Wed, Dec 2, 2015 at 9:43 PM, Geyslan G. Bem <geys...@gmail.com> wrote: > Replace dma_pool_alloc and memset with a single call to dma_pool_zalloc. > > Caught by coccinelle. I would mention which script was used, but other than that: Acked-by: Peter Senna Tschudin <pet

Re: [PATCH] usb: use BUG_ON() instead of BUG()

2015-12-07 Thread Peter Senna Tschudin
On Wed, Dec 2, 2015 at 11:18 PM, Geyslan G. Bem <geys...@gmail.com> wrote: > Replace BUG() with BUG_ON(). > > Caught by coccinelle. I would mention the path to the .cocci script, but other than that: Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > > Signed-o

Re: [PATCH] usb: ehci: ohci: fix bool assignments

2015-12-07 Thread Peter Senna Tschudin
> Signed-off-by: Geyslan G. Bem <geys...@gmail.com> Acked-by: Peter Senna Tschudin <peter.se...@gmail.com> > --- > drivers/usb/host/ehci-hcd.c | 2 +- > drivers/usb/host/ohci-hcd.c | 4 ++-- > drivers/usb/host/u132-hcd.c | 2 +- > 3 files changed, 4 insertions(+),

[PATCH 3/9 V2] usb/host/fotg210: Remove return statement inside if

2015-10-17 Thread Peter Senna Tschudin
This patch make changes to an if else statement which simplifies the code allowing to remove a return. CC: Joe Perches <j...@perches.com> Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- Subject was: [PATCH 3/9] usb/host/fotg210: Remove useless else statement To be ap

[PATCH 3/9] usb/host/fotg210: Remove useless else statement

2015-10-12 Thread Peter Senna Tschudin
This patch remove an else statement after a return to make the code easier to understand. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/fotg210-h

[PATCH 2/9] usb/host/fotg210: remove KERN_WARNING from pr_warn

2015-10-12 Thread Peter Senna Tschudin
This patch remove KERN_WARNING from a call to pr_warn(). Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c

[PATCH 1/9] usb/host/fotg210: Fix coding style issues

2015-10-12 Thread Peter Senna Tschudin
This patch fix coding style issues reported by checkpatch that do not change semantics of the code. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- This patch introduces one checkpatch warning for line over 80 characters, but my personal feeling is that it looks better and

[PATCH 7/9] usb/host/fotg210: convert macro to inline function

2015-10-12 Thread Peter Senna Tschudin
This patch convert the macro speed_char in an inline function. The goal of this patch is to make the code easier to read. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 27 --- 1 file changed, 16 insertions(

[PATCH 4/9] usb/host/fotg210: Remove NULL checks dma_pool_destroy

2015-10-12 Thread Peter Senna Tschudin
This patch remove NULL checks before calls to dma_pool_destroy() as the function now can handle NULL pointers. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/d

[PATCH 0/9] usb/host/fotg210: code style and warning fixes

2015-10-12 Thread Peter Senna Tschudin
This patch series fix warnings reported by checkpatch on the FOTG210 EHCI-like driver. Peter Senna Tschudin (9): usb/host/fotg210: Fix coding style issues usb/host/fotg210: remove KERN_WARNING from pr_warn usb/host/fotg210: Remove useless else statement usb/host/fotg210: Remove NULL

[PATCH 9/9] usb/host/fotg210: Add function scan_frame_queue()

2015-10-12 Thread Peter Senna Tschudin
d scan_frame_queue() containing the last 4 nesting levels, and removes the need of backwards goto, making the code easier to read. After the patch it becomes: scan_iosoc() -> for() -> while() -> scan_frame_queue() Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- dri

[PATCH 8/9] usb/host/fotg210: Add function: output_buf_tds_dir()

2015-10-12 Thread Peter Senna Tschudin
a new function named output_buf_tds_dir(). This change makes the code easier to read and calm down checkpatch. This patch changes it to: fill_periodic_buffer() -> for() -> do -> switch() -> if() -> output_buf_tds_dir() Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.c

[PATCH 6/9] usb/host/fotg210: replace msleep by usleep_range

2015-10-12 Thread Peter Senna Tschudin
msleep under 20ms can result in sleeping up to 20ms, which may not be intended. Replace msleep(5) by usleep_range(5000, 1). The range of 5 ms is to reduce the chances of creating an interrupt while reducing the maximum wait time in 50%. Signed-off-by: Peter Senna Tschudin <peter

[PATCH 5/9] usb/host/fotg210: change kmalloc by kmalloc_array

2015-10-12 Thread Peter Senna Tschudin
This patch replaces: kmalloc(DBG_SCHED_LIMIT * sizeof(*seen), GFP_ATOMIC) by: kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC) as kmalloc_array() should be used for allocating arrays. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd

Re: [PATCH 06/14] RFC: usb/host/fotg210: replace msleep by usleep_range

2015-10-04 Thread Peter Senna Tschudin
On Fri, Oct 2, 2015 at 7:52 PM, Alan Stern <st...@rowland.harvard.edu> wrote: > On Fri, 2 Oct 2015, Felipe Balbi wrote: > >> On Mon, Sep 21, 2015 at 05:01:10PM +0200, Peter Senna Tschudin wrote: >> > msleep under 20ms can result in sleeping up to 20ms, which may no

Re: [PATCH] usb-host: Remove fusbh200 driver

2015-10-03 Thread Peter Senna Tschudin
On Fri, Oct 2, 2015 at 7:39 PM, Felipe Balbi <ba...@ti.com> wrote: > On Fri, Oct 02, 2015 at 01:18:27PM +0200, Peter Senna Tschudin wrote: >> fusbh200 and fotg210 are very similar. The initial idea was to consolidate >> both drivers but I'm afraid fusbh200 is not being u

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-25 Thread Peter Senna Tschudin
On Tue, Sep 15, 2015 at 6:50 PM, Felipe Balbi <ba...@ti.com> wrote: > Hi, > > On Tue, Sep 15, 2015 at 06:41:55PM +0200, Peter Senna Tschudin wrote: >> On Tue, Sep 15, 2015 at 4:33 PM, Felipe Balbi <ba...@ti.com> wrote: >> > On Mon, Sep 14, 2015 at 07:50:02

[PATCH 10/14] RFC: usb/host/fotg210: Add function scan_frame_queue()

2015-09-21 Thread Peter Senna Tschudin
d scan_frame_queue() containing the last 4 nesting levels, and removes the need of backwards goto, making the code easier to read. After the patch it becomes: scan_iosoc() -> for() -> while() -> scan_frame_queue() Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- dri

[PATCH 01/14] RFC: usb/host/fotg210: Fix coding style issues

2015-09-21 Thread Peter Senna Tschudin
This patch fix coding style issues reported by checkpatch that do not change semantics of the code. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 1248 +--- drivers/usb/host/fotg210.h | 36 +- 2

[PATCH 08/14] RFC: usb/host/fotg210: convert macro to inline function

2015-09-21 Thread Peter Senna Tschudin
This patch convert the macro speed_char in an inline function. The goal of this patch is to make the code easier to read. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 27 --- 1 file changed, 16 insertions(

[PATCH 00/14] RFC: Consolidation: FUSB200 and FOTG210

2015-09-21 Thread Peter Senna Tschudin
and 10 that may have impact on performance? Or should I wait until I can get some hw to test? - Do you know easy to find and cheap devices using this two host controllers? - Should I worry about drivers/usb/gadget/udc/fotg210-udc.c? Peter Senna Tschudin (14): usb/host/fotg210: Fix coding

[PATCH 03/14] RFC: usb/host/fotg210: Remove useless else statement

2015-09-21 Thread Peter Senna Tschudin
This patch remove an else statement after a return to make the code easier to understand. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/fotg210-h

[PATCH 02/14] RFC: usb/host/fotg210: remove KERN_WARNING from pr_info

2015-09-21 Thread Peter Senna Tschudin
This patch remove KERN_WARNING from a call to pr_info(). Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c

[PATCH 07/14] RFC: usb/host/fotg210: Remove a macro from snprintf

2015-09-21 Thread Peter Senna Tschudin
This patch removes a macro from a call to snprintf() and moves it's content to just before the call to snprintf() assigning a value to a new variable named tmp. The goal of this patch is to make the code easier to understand. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.

[PATCH 06/14] RFC: usb/host/fotg210: replace msleep by usleep_range

2015-09-21 Thread Peter Senna Tschudin
msleep under 20ms can result in sleeping up to 20ms, which may not be intended. Replace msleep(5) by usleep_range(5000, 6000). Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 04/14] RFC: usb/host/fotg210: Remove NULL checks dma_pool_destroy

2015-09-21 Thread Peter Senna Tschudin
This patch remove NULL checks before calls to dma_pool_destroy() as the function now can handle NULL pointers. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/d

[PATCH 09/14] RFC: usb/host/fotg210: Add function: output_buf_tds_dir()

2015-09-21 Thread Peter Senna Tschudin
to a new inline function named output_buf_tds_dir(). This change makes the code easier to read and calm down checkpatch. This patch changes it to: fill_periodic_buffer() -> for() -> do -> switch() -> if() -> output_buf_tds_dir() Signed-off-by: Peter Senna Tschudin <peter.se...

[PATCH 14/14] RFC: usb/host/faraday-hcd: Import FUSBH200 parameters

2015-09-21 Thread Peter Senna Tschudin
This patch adds FUSBH200 parameters to faraday-hcd.h. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/faraday-hcd.h | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/faraday-h

[PATCH 13/14] RFC: usb/host/faraday-hcd: Move #defines outside struct

2015-09-21 Thread Peter Senna Tschudin
For making the code more readable and to facilitate supporting multiple hardware versions, move #defines to outside the struct declaration. This patch also renames fhcd2xx_regs to fotg210_regs as this struct is specific to fotg210. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.

[PATCH 05/14] RFC: usb/host/fotg210: change kmalloc by kmalloc_array

2015-09-21 Thread Peter Senna Tschudin
This patch change: kmalloc(DBG_SCHED_LIMIT * sizeof(*seen), GFP_ATOMIC) by: kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC) as kmalloc_array() should be used for allocating arrays. Signed-off-by: Peter Senna Tschudin <peter.se...@gmail.com> --- drivers/usb/host/fotg210-hcd

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-15 Thread Peter Senna Tschudin
On Tue, Sep 15, 2015 at 4:33 PM, Felipe Balbi <ba...@ti.com> wrote: > On Mon, Sep 14, 2015 at 07:50:02PM +0200, Peter Senna Tschudin wrote: >> On Mon, Sep 14, 2015 at 5:01 PM, Felipe Balbi <ba...@ti.com> wrote: >> > On Sat, Sep 12, 2015 at 03:14:50PM +02

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-14 Thread Peter Senna Tschudin
On Mon, Sep 14, 2015 at 5:01 PM, Felipe Balbi <ba...@ti.com> wrote: > On Sat, Sep 12, 2015 at 03:14:50PM +0200, Peter Senna Tschudin wrote: >> >> Should these files be consolidated? And if so how? >> > if you can find an easy way, that would be a very, very wel

Re: similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-12 Thread Peter Senna Tschudin
>> Should these files be consolidated? And if so how? > if you can find an easy way, that would be a very, very welcome patch. Is the ideal solution to consolidate both fusbh200-hcd.c and fotg210-hcd.c in a single module? If this is the case, how to detect at run time which version of the hw is

similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-07 Thread Peter Senna Tschudin
I executed a clone detection tool* on drivers source code and I found that the files drivers/usb/host/fusbh200-hcd.c and drivers/usb/host/fotg210-hcd.c are very similar. The main difference between the two files are replacing the string 'USBH20' by 'OTG21' and some white space fixes. Some

[PATCH 1/11] USB: kl5kusb105: Remove useless return variables

2014-05-31 Thread Peter Senna Tschudin
; identifier ret; @@ - T ret = C; ... when != ret when strict return - ret + C ; // /smpl Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/usb/serial/kl5kusb105.c | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/drivers/usb/serial

[PATCH 1/11 V2] USB: kl5kusb105: Remove klsi_105_tiocmset function

2014-05-31 Thread Peter Senna Tschudin
This patch remove the function klsi_105_tiocmset which was only returning -EINVAL. It also removes the function prototype and the .tiocmset entry in the struct usb_serial_driver. Verified by compilation only. Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- Changes from V1

Re: [PATCH 1/11] USB: kl5kusb105: Remove useless return variables

2014-05-31 Thread Peter Senna Tschudin
On Sat, May 31, 2014 at 11:58 AM, Johan Hovold jhov...@gmail.com wrote: On Sat, May 31, 2014 at 10:14:01AM -0300, Peter Senna Tschudin wrote: This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant

Re: [PATCH 1/11] USB: kl5kusb105: Remove useless return variables

2014-05-31 Thread Peter Senna Tschudin
On Sat, May 31, 2014 at 6:17 PM, Sergei Shtylyov sergei.shtyl...@cogentembedded.com wrote: Hello. On 05/31/2014 05:14 PM, Peter Senna Tschudin wrote: This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return

[PATCH 13/15] drivers/usb/misc/rio500.c: removes unnecessary semicolon

2012-09-12 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com --- drivers/usb/misc/rio500.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

  1   2   >