From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/4] mmc: dw-mmc: support DesignWare MMC Controller
Date: Mon, 15 Oct 2012 09:01:48 +0200 [thread overview]
Message-ID: <20121015090148.0bb9aeab@lilith> (raw)
In-Reply-To: <507BACF0.4080100@samsung.com>
Hi Jaehoon,
> >> + desc->des0 = des0;
> >> + desc->des1 = des1;
> >> + desc->des2 = des2;
> >> + desc->des3 = (unsigned int)desc + sizeof(struct dwmci_idmac);
> >
> >
> > Also, is there a reason that you've decided to label the 4 fields of
> > your descriptor (which appear to reflect flags, count, address,
> > pointer to next descriptor) as des0-3?
> In DesigneWare IP spec, descriptors are used to those label.
Makes the code pretty cryptic. Better name the struct membder by their
function and comment with their IP spec designations, or maybe name
them by both their IP name and function, e.g. desc->des0_flags,
desc->des1_count etc.
But in any case, local variables (des0, des1...) have zero reason to
be named after the IP spec. These must be renamed according to their
function.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2012-10-15 7:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 7:58 [U-Boot] [PATCH v2 1/4] mmc: dw-mmc: support DesignWare MMC Controller Jaehoon Chung
2012-08-30 21:11 ` Andy Fleming
2012-10-15 6:28 ` Jaehoon Chung
2012-10-15 7:01 ` Albert ARIBAUD [this message]
2012-10-15 11:03 ` Jaehoon Chung
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=20121015090148.0bb9aeab@lilith \
--to=albert.u.boot@aribaud.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox