[PATCH 3/3] usb: gadget: f_midi: free request when usb_ep_queue fails

2015-09-22 Thread Felipe F. Tonello
This fix a memory leak that will occur in this case. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/usb/gadget/function/f_midi.c index e92aff5

[PATCH 1/3] usb: chipidea: core: fix when building without CONFIG_PM support

2015-09-22 Thread Felipe F. Tonello
If CONFIG_PM or CONFIG_PM_SLEEP is not set, driver will not compile properly. Signed-off-by: Felipe F. Tonello --- drivers/usb/chipidea/core.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 3ad48e1

[PATCH 2/3] usb: gadget: f_midi: free usb request when done

2015-09-22 Thread Felipe F. Tonello
req->actual == req->length means that there is no data left to enqueue, so free the request. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_midi.c b/drive

[PATCH v2] usb: gadget: f_midi: refactor state machine

2015-12-23 Thread Felipe F. Tonello
This refactor results in a cleaner state machine code and as a result fixed a bug when packaging a MIDI-USB packet right after a non-conformant MIDI byte stream. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 205 +-- 1 file changed

[PATCH] ASoC: fsl-asoc-card: add cs4271 and cs4272 support

2016-01-28 Thread Felipe F. Tonello
add cs4271 and cs42727 support for fsl-asoc-card Signed-off-by: Felipe F. Tonello --- .../devicetree/bindings/sound/imx-audio-cs427x.txt | 47 ++ sound/soc/fsl/Kconfig | 4 +- sound/soc/fsl/fsl-asoc-card.c | 7 3 files

[PATCH v2 1/2] ASoC: fsl-asoc-card: add cs4271 and cs4272 support

2016-01-29 Thread Felipe F. Tonello
add cs4271 and cs42727 support for fsl-asoc-card Signed-off-by: Felipe F. Tonello --- Documentation/devicetree/bindings/sound/fsl-asoc-card.txt | 9 + sound/soc/fsl/Kconfig | 4 ++-- sound/soc/fsl/fsl-asoc-card.c | 7

[PATCH v2 2/2] devicetree: sound: Fix fsl-asoc-card identation

2016-01-29 Thread Felipe F. Tonello
Signed-off-by: Felipe F. Tonello --- Documentation/devicetree/bindings/sound/fsl-asoc-card.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt index

[PATCH 2/2] usb: gadget: f_midi: added spinlock on transmit function

2015-12-22 Thread Felipe F. Tonello
Also it performs better then previous implementation that allocated a usb_request for every new transmit made. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_m

[PATCH 1/2] usb: gadget: f_midi: refactor state machine

2015-12-22 Thread Felipe F. Tonello
g a wrong MIDI-USB request. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 243 --- 1 file changed, 141 insertions(+), 102 deletions(-) diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/usb/gadget/function/f_midi.c in

[PATCH] ASoC: fsl: add imx-cs427x machine driver

2016-01-25 Thread Felipe F. Tonello
This is the initial imx-cs427x device-tree-only machine driver working with fsl_ssi driver. More features can be added on top of it later. Signed-off-by: Felipe F. Tonello --- .../devicetree/bindings/sound/imx-audio-cs427x.txt | 47 + sound/soc/fsl/Kconfig

[PATCH v5 BlueZ 4/4] Bluetooth: Handle Slave Connection Interval Range AD

2017-04-13 Thread Felipe F. Tonello
f the slave device wishes to persist with these parameters, it should use the L2CAP connection parameters upade request upon a completed connection. Signed-off-by: Felipe F. Tonello --- net/bluetooth/mgmt.c | 53 1 file changed, 53 insertions(+)

[PATCH v5 BlueZ 2/4] Bluetooth: L2CAP: Add handler for Connection Parameter Update Response

2017-04-13 Thread Felipe F. Tonello
ction parameters accordingly. If the request was rejected, we don't do anything. Signed-off-by: Felipe F. Tonello --- include/net/bluetooth/l2cap.h | 2 ++ net/bluetooth/l2cap_core.c| 47 +++ 2 files changed, 49 insertions(+) diff --git a/i

[PATCH v5 BlueZ 0/4] Connection Update improvements

2017-04-13 Thread Felipe F. Tonello
user-space API * Added refactor function Felipe F. Tonello (4): Bluetooth: L2CAP: Refactor L2CAP_CONN_PARAM_UPDATE_REQ into a function Bluetooth: L2CAP: Add handler for Connection Parameter Update Response Bluetooth: L2CAP: Add BT_LE_CONN_PARAM socket option Bluetooth: Handle Slave Connection

[PATCH v5 BlueZ 3/4] Bluetooth: L2CAP: Add BT_LE_CONN_PARAM socket option

2017-04-13 Thread Felipe F. Tonello
h the store_hint set is sent to user-space so an application can store the connection parameters for persistence reasons. Signed-off-by: Felipe F. Tonello --- include/net/bluetooth/bluetooth.h | 8 +++ net/bluetooth/l2cap_sock.c| 110 ++ 2 files changed

[PATCH v5 BlueZ 1/4] Bluetooth: L2CAP: Refactor L2CAP_CONN_PARAM_UPDATE_REQ into a function

2017-04-13 Thread Felipe F. Tonello
This signaling command is useful for any connection parameter change procedure, thus it is important to allow access to it from outside this translation unit. Signed-off-by: Felipe F. Tonello --- include/net/bluetooth/l2cap.h | 3 +++ net/bluetooth/l2cap_core.c| 31

[PATCH 2/3] usb: gadget: f_hid: use free_ep_req()

2016-08-23 Thread Felipe F. Tonello
We should always use free_ep_req() when allocating requests with alloc_ep_req(). Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_hid.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget

[PATCH 3/3] usb: gadget: f_hid: use alloc_ep_req()

2016-08-23 Thread Felipe F. Tonello
Use gadget's framework allocation function instead of directly calling usb_ep_alloc_request(). Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_hid.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/gadget/function/f_hid.c b/driver

[PATCH 1/3] usb: gadget: remove useless parameter in alloc_ep_req()

2016-08-23 Thread Felipe F. Tonello
: Felipe F. Tonello --- drivers/usb/gadget/function/f_hid.c| 2 +- drivers/usb/gadget/function/f_loopback.c | 6 ++ drivers/usb/gadget/function/f_midi.c | 2 +- drivers/usb/gadget/function/f_sourcesink.c | 6 ++ drivers/usb/gadget/u_f.c | 7 +++ drivers/usb

[PATCH 0/3] Gadget endpoint allocation request

2016-08-23 Thread Felipe F. Tonello
Patch #1 removes a unnecessary and confusing parameter from alloc_ep_req(). Also, this series updates f_hid function to use alloc/free_ep_req() instead of allocating/freeing requests directly. Felipe F. Tonello (3): usb: gadget: remove useless parameter in alloc_ep_req() usb: gadget: f_hid

<    1   2