All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Oliver Neukum <oneukum@suse.com>
Cc: linux-media@vger.kernel.org, gushengxian@yulong.com,
	hverkuil-cisco@xs4all.nl, mchehab@kernel.org
Subject: Re: [PATCH 1/2] flexcop: unneeded ATOMIC
Date: Tue, 17 May 2022 15:21:24 +0200	[thread overview]
Message-ID: <YoOhVGXU/pbt2KjV@hovoldconsulting.com> (raw)
In-Reply-To: <20220517131109.28371-1-oneukum@suse.com>

On Tue, May 17, 2022 at 03:11:08PM +0200, Oliver Neukum wrote:
> No need for GFP_ATOMIC during probe()

Please add a "media: " prefix and use a verb (e.g. "replace") in
Subject.

> Signed-off-by: Oliver Neukum <oneukum@suse.com>
> ---
>  drivers/media/usb/b2c2/flexcop-usb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c
> index 7835bb0f32fc..98d9912a4efb 100644
> --- a/drivers/media/usb/b2c2/flexcop-usb.c
> +++ b/drivers/media/usb/b2c2/flexcop-usb.c
> @@ -446,7 +446,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
>  	/* creating iso urbs */
>  	for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) {
>  		fc_usb->iso_urb[i] = usb_alloc_urb(B2C2_USB_FRAMES_PER_ISO,
> -			GFP_ATOMIC);
> +			GFP_KERNEL);
>  		if (fc_usb->iso_urb[i] == NULL) {
>  			ret = -ENOMEM;
>  			goto urb_error;
> @@ -479,7 +479,7 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
>  			frame_offset += frame_size;
>  		}
>  
> -		if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_ATOMIC))) {
> +		if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_KERNEL))) {

And add the missing space after the comma here.

>  			err("submitting urb %d failed with %d.", i, ret);
>  			goto urb_error;
>  		}

Change itself looks good otherwise.

Reviewed-by: Johan Hovold <johan@kernel.org>

Johan

      parent reply	other threads:[~2022-05-17 13:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-17 13:11 [PATCH 1/2] flexcop: unneeded ATOMIC Oliver Neukum
2022-05-17 13:11 ` [PATCH 2/2] flexcop: allow for modern speeds Oliver Neukum
2022-05-17 13:23   ` Johan Hovold
2022-05-17 13:21 ` Johan Hovold [this message]

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=YoOhVGXU/pbt2KjV@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=gushengxian@yulong.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=oneukum@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.