From: Dan Carpenter <dan.carpenter@linaro.org>
To: Dave Penkler <dpenkler@gmail.com>
Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org, skhan@linuxfoundation.org,
arnd@arndb.de
Subject: Re: [PATCH 04/11] staging: gpib: Update messaging and usb_device refs in agilent_usb
Date: Mon, 4 Nov 2024 11:42:42 +0300 [thread overview]
Message-ID: <e51ffd6a-b002-40df-94c0-02eb8cbe8c76@stanley.mountain> (raw)
In-Reply-To: <20241103212617.13076-5-dpenkler@gmail.com>
On Sun, Nov 03, 2024 at 10:26:10PM +0100, Dave Penkler wrote:
> Replace GPIB_DPRINTK with dev_dbg
> Replace pr_xxx with dev_xxx wherever possible
> Use previously initialized usb_device pointer for usb_put_dev()
>
> Signed-off-by: Dave Penkler <dpenkler@gmail.com>
> ---
> .../gpib/agilent_82357a/agilent_82357a.c | 266 ++++++++++--------
> 1 file changed, 156 insertions(+), 110 deletions(-)
>
> diff --git a/drivers/staging/gpib/agilent_82357a/agilent_82357a.c b/drivers/staging/gpib/agilent_82357a/agilent_82357a.c
> index 748aadc5cebc..68b40831b9ad 100644
> --- a/drivers/staging/gpib/agilent_82357a/agilent_82357a.c
> +++ b/drivers/staging/gpib/agilent_82357a/agilent_82357a.c
> @@ -15,11 +15,11 @@
> #include "tms9914.h"
>
> MODULE_LICENSE("GPL");
> -MODULE_DESCRIPTION("GPIB driver for Agilent 82357A/B usb adapter");
> +MODULE_DESCRIPTION("GPIB driver for Agilent 82357A/B usb adapters");
This should go in a patch by itself.
>
> #define MAX_NUM_82357A_INTERFACES 128
> static struct usb_interface *agilent_82357a_driver_interfaces[MAX_NUM_82357A_INTERFACES];
> -DEFINE_MUTEX(agilent_82357a_hotplug_lock);
> +DEFINE_MUTEX(agilent_82357a_hotplug_lock); // protect board insertion and removal
This too.
>
> static unsigned int agilent_82357a_update_status(gpib_board_t *board, unsigned int clear_mask);
>
> @@ -29,9 +29,6 @@ static void agilent_82357a_bulk_complete(struct urb *urb)
> {
> struct agilent_82357a_urb_ctx *context = urb->context;
>
> -// printk("debug: %s: status=0x%x, error_count=%i, actual_length=%i\n", __func__,
> -// urb->status, urb->error_count, urb->actual_length);
> -
> up(&context->complete);
> }
>
> @@ -80,16 +77,17 @@ static int agilent_82357a_send_bulk_msg(struct agilent_82357a_priv *a_priv, void
> if (timeout_msecs)
> mod_timer(&a_priv->bulk_timer, jiffies + msecs_to_jiffies(timeout_msecs));
>
> - //printk("%s: submitting urb\n", __func__);
> + //dev_dbg(&usb_dev->dev, "%s: submitting urb\n", __func__);
Just delete this.
regards,
dan carpenter
next prev parent reply other threads:[~2024-11-04 8:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 21:26 [PATCH v2 00/11] staging: gpib: Patch set for gpib staging drivers Dave Penkler
2024-11-03 21:26 ` [PATCH 01/11] staging: gpib: Fix buffer overflow in ni_usb_init Dave Penkler
2024-11-03 21:26 ` [PATCH 02/11] staging: gpib: Replace custom debug with dev_dbg Dave Penkler
2024-11-03 21:26 ` [PATCH 03/11] staging: gpib: Update messaging and usb_device refs in ni_usb Dave Penkler
2024-11-03 21:26 ` [PATCH 04/11] staging: gpib: Update messaging and usb_device refs in agilent_usb Dave Penkler
2024-11-04 8:42 ` Dan Carpenter [this message]
2024-11-03 21:26 ` [PATCH 05/11] staging: gpib: Remove GPIB_DEBUG reference and update messaging Dave Penkler
2024-11-04 8:43 ` Dan Carpenter
2024-11-03 21:26 ` [PATCH 06/11] staging: gpib: Use dev_xxx for messaging Dave Penkler
2024-11-03 21:26 ` [PATCH 07/11] staging: gpib: Fix Kconfig Dave Penkler
2024-11-03 21:26 ` [PATCH 08/11] staging: gpib: Remove unneeded lookup table Dave Penkler
2024-11-03 21:26 ` [PATCH 09/11] staging: gpib: Remove GPIO14 and GPIO15 lines in lookup tables Dave Penkler
2024-11-03 21:26 ` [PATCH 10/11] staging: gpib: Re-order the " Dave Penkler
2024-11-04 8:36 ` Dan Carpenter
2024-11-03 21:26 ` [PATCH 11/11] staging: gpib: Correct check for max secondary address Dave Penkler
2024-11-04 8:09 ` Dan Carpenter
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=e51ffd6a-b002-40df-94c0-02eb8cbe8c76@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=arnd@arndb.de \
--cc=dpenkler@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=skhan@linuxfoundation.org \
/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
all inboxes | Powered by JetHome®