Date: Sun, 12 Oct 2008 01:14:45 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: mav@FreeBSD.org Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r183765 - head/sys/dev/mmc Message-ID: <20081012.011445.163262685.imp@bsdimp.com> In-Reply-To: <200810111730.m9BHU2u1023174@svn.freebsd.org> References: <200810111730.m9BHU2u1023174@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200810111730.m9BHU2u1023174@svn.freebsd.org>
Alexander Motin <mav@FreeBSD.org> writes:
: Author: mav
: Date: Sat Oct 11 17:30:02 2008
: New Revision: 183765
: URL: http://svn.freebsd.org/changeset/base/183765
:
: Log:
: SELECT_CARD command with zero RCA deselects all cards and so has no reply.
:
: Modified:
: head/sys/dev/mmc/mmc.c
:
: Modified: head/sys/dev/mmc/mmc.c
: ==============================================================================
: --- head/sys/dev/mmc/mmc.c Sat Oct 11 17:28:22 2008 (r183764)
: +++ head/sys/dev/mmc/mmc.c Sat Oct 11 17:30:02 2008 (r183765)
: @@ -526,7 +526,7 @@ static int
: mmc_select_card(struct mmc_softc *sc, uint16_t rca)
: {
: return (mmc_wait_for_command(sc, MMC_SELECT_CARD, ((uint32_t)rca) << 16,
: - MMC_RSP_R1B | MMC_CMD_AC, NULL, CMD_RETRIES));
: + (rca?MMC_RSP_R1B:MMC_RSP_NONE) | MMC_CMD_AC, NULL, CMD_RETRIES));
Tertiary operators have spaces around ? and : in style(9), and the
rest of this file uses that style.
Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081012.011445.163262685.imp>
