lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 22 Sep 2016 11:40:57 +0200 From: Ulf Hansson <ulf.hansson@...aro.org> To: Shawn Lin <shawn.lin@...k-chips.com> Cc: Adrian Hunter <adrian.hunter@...el.com>, Jaehoon Chung <jh80.chung@...sung.com>, linux-mmc <linux-mmc@...r.kernel.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "open list:ARM/Rockchip SoC..." <linux-rockchip@...ts.infradead.org>, Ziyuan Xu <xzy.xu@...k-chips.com> Subject: Re: [PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode On 21 September 2016 at 03:43, Shawn Lin <shawn.lin@...k-chips.com> wrote: > From: Ziyuan Xu <xzy.xu@...k-chips.com> > > Per spec, block size should always be 512 bytes for dual rate mode, > so any attempts to switch the block size under dual rate mode should > be neglected. > > Signed-off-by: Ziyuan Xu <xzy.xu@...k-chips.com> > Signed-off-by: Shawn Lin <shawn.lin@...k-chips.com> Thanks, applied for next! Kind regards Uffe > > --- > > drivers/mmc/core/core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c > index f0ed0af..2553d90 100644 > --- a/drivers/mmc/core/core.c > +++ b/drivers/mmc/core/core.c > @@ -2576,7 +2576,8 @@ int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen) > { > struct mmc_command cmd = {0}; > > - if (mmc_card_blockaddr(card) || mmc_card_ddr52(card)) > + if (mmc_card_blockaddr(card) || mmc_card_ddr52(card) || > + mmc_card_hs400(card) || mmc_card_hs400es(card)) > return 0; > > cmd.opcode = MMC_SET_BLOCKLEN; > -- > 2.3.7 > >
Powered by blists - more mailing lists