Re: MMC_SWITCH command doesn't update the ext_csd data structure

2013-09-03 Thread Dirk Behme
On 03.09.2013 13:26, Chris Ball wrote: Hi, On Tue, Sep 03 2013, Dirk Behme wrote: + if ((cmd.opcode == MMC_SWITCH) && ((cmd.arg >> 24) & 0x3)) { + /* In case the IOCTL has modified the EXT_CSD, update it, i.e. re-read the EXT_CSD */ + mmc_update_ext_csd(card->e

Re: MMC_SWITCH command doesn't update the ext_csd data structure

2013-09-03 Thread Chris Ball
Hi, On Tue, Sep 03 2013, Dirk Behme wrote: > + if ((cmd.opcode == MMC_SWITCH) && ((cmd.arg >> 24) & 0x3)) { > + /* In case the IOCTL has modified the EXT_CSD, update > it, i.e. re-read the EXT_CSD */ > + mmc_update_ext_csd(card->ext_csd); > + } > + Your analy

MMC_SWITCH command doesn't update the ext_csd data structure

2013-09-03 Thread Dirk Behme
Hi, using the MMC_SWITCH command via the ioctl to write registers of the EXT_CSD, it looks to us that in this case the internal ext_csd data structure isn't updated. Resulting in a mismatch of what the ext_csd data structure contains and what's written to the real hardware. We are using the