From: Laszlo Ersek <lersek@redhat.com>
To: "Zeng, Star" <star.zeng@intel.com>,
edk2-devel-01 <edk2-devel@lists.01.org>
Cc: "Ni, Ruiyu" <ruiyu.ni@intel.com>
Subject: Re: [PATCH] MdeModulePkg/EhciDxe: fix host controller reset condition in BindingStart
Date: Wed, 5 Sep 2018 14:18:15 +0200 [thread overview]
Message-ID: <3e8f82f6-5dbf-b187-e497-82a026587c2d@redhat.com> (raw)
In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103BBB55E8@shsmsx102.ccr.corp.intel.com>
Hi Star,
On 09/05/18 11:55, Zeng, Star wrote:
> I agree to commit this patch first. Reviewed-by: Star Zeng <star.zeng@intel.com> to this patch.
>
> To further enhance with an abstracted function, how about like below?
>
> BOOLEAN
> EhcIsDebugPortInUse (
> IN CONST USB2_HC_DEV *Ehc,
> IN UINT8 *PortNumber OPTIONAL
> )
do you want me to define the new EhcIsDebugPortInUse() function in
"Ehci.c", or in "EhciReg.c"?
"EhciReg.c" looks more appropriate to me:
- EhcIsHalt() is defined there,
- EhcIsSysError() is defined there,
- the EhcReadDbgRegister() function would become internal to
"EhciReg.c", because all of the current call sites (in "Ehci.c") would
be replaced by calls to EhcIsDebugPortInUse(). In turn this would
allow us to remove the declaration of EhcReadDbgRegister(), from
"EhciReg.h".
Thanks!
Laszlo
prev parent reply other threads:[~2018-09-05 12:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-31 14:03 [PATCH] MdeModulePkg/EhciDxe: fix host controller reset condition in BindingStart Laszlo Ersek
2018-09-03 8:35 ` Zeng, Star
2018-09-03 11:45 ` Laszlo Ersek
2018-09-04 1:27 ` Zeng, Star
2018-09-04 10:38 ` Laszlo Ersek
2018-09-05 9:55 ` Zeng, Star
2018-09-05 10:13 ` Laszlo Ersek
2018-09-05 10:55 ` Shi, Steven
2018-09-05 12:03 ` Laszlo Ersek
2018-09-05 12:18 ` Laszlo Ersek [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-list 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=3e8f82f6-5dbf-b187-e497-82a026587c2d@redhat.com \
--to=devel@edk2.groups.io \
/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