All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 3/3] usb:udc:samsung Add functions for storing private gadget data in UDC driver
Date: Mon, 30 Apr 2012 15:38:31 +0200	[thread overview]
Message-ID: <20120430133831.48E4020021A@gemini.denx.de> (raw)
In-Reply-To: <20120430085801.4fe5af09@lmajewski.digital.local>

Dear Lukasz Majewski,

In message <20120430085801.4fe5af09@lmajewski.digital.local> you wrote:
> 
> > > +void set_udc_gadget_private_data(void *p)
> > > +{
> > > +	DEBUG_SETUP("%s: the_controller: 0x%p, p: 0x%p\n",
> > > __func__,
> > > +	       the_controller, p);
> > 
> > debug() and fix this message, otherwise:
> 
> The DEBUG_SETUP macro has been used to be in sync with the already
> available udc driver. This driver has different DEBUG_* macros, which
> helps in debugging different parts of UDC driver. 

I think Marek has a good point here.  It was an oversight that this
"private" DEBUG_ stuff slipped into mainline.  This should never have
happened.  We tried hard to get rid of such conditionally compiled
code for debug() with the rest of the code, so we should not start
re-adding all this again.

> If this is MUST, then I will change it, otherwise I'd like to leave it
> alone.
> 
> Is it OK with you?

Sorry, but I object.

At the moment, only include/usb/s3c_udc.h defines this, i. e. it is
not a generally usable feature anyway.  In anyu case, this
implementation needs to get fixed.  See the code for the debug()
implementation for an example.

Instead of defining your own set of private macros, you can use
debug_cond() instead - this works without #ifdef's.

Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If the odds are a million to one against something occuring,  chances
are 50-50 it will.

  parent reply	other threads:[~2012-04-30 13:38 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  7:15 [U-Boot] [PATCH 0/4] usb:gadget:composite: Support for composite gadget framework Lukasz Majewski
2012-04-12  7:15 ` [U-Boot] [PATCH 1/4] usb:gadget:composite Composite framework - files from Linux kernel Lukasz Majewski
2012-04-14  9:46   ` Marek Vasut
2012-04-14 13:41   ` Wolfgang Denk
2012-04-14 13:42   ` Wolfgang Denk
2012-04-16  9:10     ` Lukasz Majewski
2012-04-16 13:59       ` Wolfgang Denk
2012-04-12  7:15 ` [U-Boot] [PATCH 2/4] usb:gadget:composite: Linux composite.{h/c} code adjustement for u-boot Lukasz Majewski
2012-04-14 13:46   ` Wolfgang Denk
2012-04-16  9:23     ` Lukasz Majewski
2012-04-16 14:01       ` Wolfgang Denk
2012-04-12  7:15 ` [U-Boot] [PATCH 3/4] usb:gadget: Wrapper for extracting usb_gadget from linux's device Lukasz Majewski
2012-04-14  9:47   ` Marek Vasut
2012-04-12  7:15 ` [U-Boot] [PATCH 4/4] usb:gadget: Extend device struct to device_data pointer Lukasz Majewski
2012-04-17  7:27 ` [U-Boot] [PATCH v2 0/3] usb:gadget:composite: Support for composite gadget framework Lukasz Majewski
2012-04-17  7:27   ` [U-Boot] [PATCH v2 1/3] usb:gadget:composite USB composite gadget support Lukasz Majewski
2012-04-17  7:47     ` Marek Vasut
2012-04-17 12:45       ` Lukasz Majewski
2012-04-17  7:27   ` [U-Boot] [PATCH v2 2/3] usb:gadget:composite: Support for composite at gadget.h Lukasz Majewski
2012-04-17  7:27   ` [U-Boot] [PATCH v2 3/3] usb:udc:samsung Add functions for storing private gadget data in UDC driver Lukasz Majewski
2012-04-17  7:59     ` Marek Vasut
2012-04-17 14:07 ` [U-Boot] [PATCH v3 0/3] usb:gadget:composite: Support for composite gadget framework Lukasz Majewski
2012-04-17 14:07   ` [U-Boot] [PATCH v3 1/3] usb:gadget:composite USB composite gadget support Lukasz Majewski
2012-04-17 15:32     ` Marek Vasut
2012-04-17 14:07   ` [U-Boot] [PATCH v3 2/3] usb:gadget:composite: Support for composite at gadget.h Lukasz Majewski
2012-04-17 14:07   ` [U-Boot] [PATCH v3 3/3] usb:udc:samsung Add functions for storing private gadget data in UDC driver Lukasz Majewski
2012-04-18 15:26 ` [U-Boot] [PATCH v4 0/3] usb:gadget:composite: Support for composite gadget framework Lukasz Majewski
2012-04-18 15:26   ` [U-Boot] [PATCH v4 1/3] usb:gadget:composite USB composite gadget support Lukasz Majewski
2012-04-25 22:53     ` Marek Vasut
2012-04-26  7:02       ` Lukasz Majewski
2012-04-29 23:22         ` Marek Vasut
2012-04-18 15:26   ` [U-Boot] [PATCH v4 2/3] usb:gadget:composite: Support for composite at gadget.h Lukasz Majewski
2012-04-29 23:23     ` Marek Vasut
2012-04-18 15:26   ` [U-Boot] [PATCH v4 3/3] usb:udc:samsung Add functions for storing private gadget data in UDC driver Lukasz Majewski
2012-04-29 23:25     ` Marek Vasut
2012-04-30  6:58       ` Lukasz Majewski
2012-04-30 12:31         ` Marek Vasut
2012-04-30 13:11           ` Lukasz Majewski
2012-04-30 13:38         ` Wolfgang Denk [this message]
2012-04-30 14:23           ` Lukasz Majewski
2012-04-30 14:51     ` [U-Boot] [PATCH v4 RESEND " Lukasz Majewski
2012-04-30 15:22       ` Marek Vasut
2012-04-30 15:23       ` Wolfgang Denk
2012-04-30 15:46         ` Lukasz Majewski
2012-04-25 15:53   ` [U-Boot] [PATCH v4 0/3] usb:gadget:composite: Support for composite gadget framework Lukasz Majewski
2012-04-25 17:06     ` Marek Vasut
2012-05-01 19:53 ` [U-Boot] [PATCH 0/4] " Marek Vasut
2012-05-02  7:10   ` Lukasz Majewski
2012-05-02 10:37     ` Marek Vasut

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=20120430133831.48E4020021A@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /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.