public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Linyu Yuan (QUIC)" <quic_linyyuan@quicinc.com>
Cc: Felipe Balbi <balbi@kernel.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] usb: gadget: make f_loopback/f_sourcesink standalone
Date: Thu, 12 May 2022 06:48:22 +0200	[thread overview]
Message-ID: <YnyRljpA1nA7dH/B@kroah.com> (raw)
In-Reply-To: <DM8PR02MB8198AD3B061872DF43801E1AE3CB9@DM8PR02MB8198.namprd02.prod.outlook.com>

On Thu, May 12, 2022 at 04:20:32AM +0000, Linyu Yuan (QUIC) wrote:
> > From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Sent: Thursday, May 12, 2022 12:10 PM
> > To: Linyu Yuan (QUIC) <quic_linyyuan@quicinc.com>
> > Cc: Felipe Balbi <balbi@kernel.org>; linux-usb@vger.kernel.org
> > Subject: Re: [PATCH] usb: gadget: make f_loopback/f_sourcesink standalone
> > 
> > On Thu, May 12, 2022 at 10:21:34AM +0800, Linyu Yuan wrote:
> > > First remove lb_modinit() and lb_modexit() call from f_sourcesink as both
> > > function belong to f_loopback.c, also there is no need to export
> > > disable_endpoints() from f_sourcesink, change it to static type.
> > >
> > > After first step, we can use DECLARE_USB_FUNCTION_INIT() macro in
> > > f_sourcesink to create module init/exit function implicit as it only
> > > register/unregister one usb function driver.
> > >
> > > In f_loopback disable_loopback() function, just add two usb_ep_disable()
> > > call, it will safe to remove original disable_endpoints() call
> > > which belong to f_sourcesink, and it also safe to use macro
> > > DECLARE_USB_FUNCTION_INIT() for module init/exit purpose.
> > >
> > > Now it is safe to remove function prototype of lb_modinit(),
> > > lb_modexit() and disable_endpoints() from g_zero.h.
> > >
> > > Change Makefile to build f_loopback/f_sourcesink as standalone module.
> > 
> > This describes a lot of what you are doing, but not why you want to do
> > any of this.
> > 
> > Please read the kernel documentation for how to write a good kernel
> > changelog, as-is, I do not understand why this change should be accepted
> > at all.
> 
> Can you share more about it ? is it description reason or code change itself  ?

Here's the relevant text from my patch bot, which I should have
triggered for this submission, that explains it a lot better:

-----------

- You did not specify a description of why the patch is needed, or
  possibly, any description at all, in the email body.  Please read the
  section entitled "The canonical patch format" in the kernel file,
  Documentation/SubmittingPatches for what is needed in order to
  properly describe the change.

- You did not write a descriptive Subject: for the patch, allowing Greg,
  and everyone else, to know what this patch is all about.  Please read
  the section entitled "The canonical patch format" in the kernel file,
  Documentation/SubmittingPatches for what a proper Subject: line should
  look like.

---------------

Does that help?

greg k-h

  reply	other threads:[~2022-05-12  4:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-12  2:21 [PATCH] usb: gadget: make f_loopback/f_sourcesink standalone Linyu Yuan
2022-05-12  4:10 ` Greg Kroah-Hartman
2022-05-12  4:20   ` Linyu Yuan (QUIC)
2022-05-12  4:48     ` Greg Kroah-Hartman [this message]
2022-05-12  5:06       ` Linyu Yuan (QUIC)
2022-05-12 11:59         ` Linyu Yuan (QUIC)

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=YnyRljpA1nA7dH/B@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=balbi@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=quic_linyyuan@quicinc.com \
    /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