On Thursday 26 July 2007, Pierre Ossman wrote: > On Sat, 14 Jul 2007 15:05:59 -0700 > David Brownell <[EMAIL PROTECTED]> wrote: > > > @@ -115,14 +116,16 @@ struct mmc_host { > > wait_queue_head_t wq; > > unsigned int claimed:1; /* host exclusively claimed */ > > > > - struct delayed_work detect; > > + unsigned int use_spi_crc:1; > > + > > #ifdef CONFIG_MMC_DEBUG > > unsigned int removed:1; /* host is being removed */ > > #endif > > + unsigned int bus_dead:1; /* bus has been released */ > > + struct delayed_work detect; > > > > const struct mmc_bus_ops *bus_ops; /* current bus driver */ > > unsigned int bus_refs; /* reference counter */ > > - unsigned int bus_dead:1; /* bus has been released */ > > > > unsigned long private[0] ____cacheline_aligned; > > }; > > Some needless shuffling of existing members here.
As explained in the comment: this reduces the padding. The previous way needed one word per bitfield; this way they all fit into the same word... > > @@ -47,6 +52,20 @@ struct mmc_command { > > #define mmc_resp_type(cmd) ((cmd)->flags & > > (MMC_RSP_PRESENT|MMC_RSP_136|MMC_RSP_CRC|MMC_RSP_BUSY|MMC_RSP_OPCODE)) > > > > /* > > + * These are the SPI response types for MMC and SD cards (not SDIO). > > + * Commands return R1, with maybe more info. Zero is an error type; > > + * callers must always provide the appropriate MMC_RSP_SPI_Rx flags. > > + */ > > +#define MMC_RSP_SPI_R1 (MMC_RSP_SPI_S1) > > +#define MMC_RSP_SPI_R1B (MMC_RSP_SPI_S1|MMC_RSP_BUSY) > > I think it's probably safe to keep the two response types separate, even > though it is very unlikely that we'll have a command that only uses busy > signalling in one of the modes. That bothered me a smidgeon ... > Other than that, it looks fine. I'm not sure what you mean here, but then my first cup of coffee is still trying to do its work. Are you saying you want me to - increase the padding again? - define an MMC_RSP_SPI_BUSY, and use that? The former would bother me a bit, but I could understand if you wanted it to be in a different patch. The latter is no problem at all. - Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general