From: Peter Chen <peter.chen@nxp.com>
To: balbi@kernel.org
Cc: linux-usb@vger.kernel.org, linux-imx@nxp.com,
gregkh@linuxfoundation.org, stern@rowland.harvard.edu,
Peter Chen <peter.chen@nxp.com>
Subject: [PATCH v4 0/6] USB: UDC: Fix memory leaks by expanding the API
Date: Fri, 21 Aug 2020 10:55:43 +0800 [thread overview]
Message-ID: <20200821025549.4591-1-peter.chen@nxp.com> (raw)
This series expands the UDC API to fix some long-standing memory leaks
in the net2280 and net2272 drivers. And with expanding APIs, it could
manage cdns3 and dwc3 gadget device memory better without the hacks
at UDC core.
Changes for v4:
- Add Greg and Alan's reviewed-by.
Changes for v3:
- Rebase the latest usb/next, and fix one build error for dwc3 [Patch 5/6]
Alan Stern (3):
USB: UDC: Expand device model API interface
USB: UDC: net2280: Fix memory leaks
USB: UDC: net2272: Fix memory leaks
Peter Chen (3):
usb: cdns3: gadget: fix possible memory leak
usb: dwc3: allocate gadget structure dynamically
Revert "usb: udc: allow adding and removing the same gadget device"
drivers/usb/cdns3/gadget.c | 20 ++++--
drivers/usb/dwc3/core.h | 2 +-
drivers/usb/dwc3/ep0.c | 26 ++++----
drivers/usb/dwc3/gadget.c | 108 ++++++++++++++++++-------------
drivers/usb/dwc3/gadget.h | 2 +-
drivers/usb/gadget/udc/core.c | 79 +++++++++++++++++-----
drivers/usb/gadget/udc/net2272.c | 23 ++++---
drivers/usb/gadget/udc/net2272.h | 1 +
drivers/usb/gadget/udc/net2280.c | 11 ++--
drivers/usb/gadget/udc/net2280.h | 1 +
include/linux/usb/gadget.h | 27 ++++++--
11 files changed, 199 insertions(+), 101 deletions(-)
--
2.17.1
next reply other threads:[~2020-08-21 2:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 2:55 Peter Chen [this message]
2020-08-21 2:55 ` [PATCH v4 1/6] USB: UDC: Expand device model API interface Peter Chen
2020-08-21 2:55 ` [PATCH v4 2/6] USB: UDC: net2280: Fix memory leaks Peter Chen
2020-08-21 2:55 ` [PATCH v4 3/6] USB: UDC: net2272: " Peter Chen
2020-08-21 2:55 ` [PATCH v4 4/6] usb: cdns3: gadget: fix possible memory leak Peter Chen
2020-08-21 2:55 ` [PATCH v4 5/6] usb: dwc3: allocate gadget structure dynamically Peter Chen
2020-08-21 2:55 ` [PATCH v4 6/6] Revert "usb: udc: allow adding and removing the same gadget device" Peter Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200821025549.4591-1-peter.chen@nxp.com \
--to=peter.chen@nxp.com \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-imx@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).