Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5612341pxv; Wed, 7 Jul 2021 07:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFIv3rWEiuPhuHK8oLc07jrZPtzWAaeU4wvAk9WDYAAvtSAy+mSL9CB4D9dOuhBntrDPdC X-Received: by 2002:a50:fc93:: with SMTP id f19mr19471033edq.316.1625669256472; Wed, 07 Jul 2021 07:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625669256; cv=none; d=google.com; s=arc-20160816; b=LEgSiKAYSai8wjgHHjuYzAI8y9zrTEkheEwYzs/p8TYBoRuyYue2ub4BKd6MS//VT3 ZpBIAe1lt1N6oiXXJLrYpD8I82njlHlXNvUvOQqQNvGnyUeCpxBg/hc+nAFZddfb2UBf AzgCa6SKLZwxlYG+/Em2LL3NzxPBfFeVfQ9X1wQ8xE5BGMcdTcmfCVqBhj3AKY7f5ety 2pwsuCUHG5ECtV7Rw33PuaDE1hzAT9Vwt5RK/O4C7e7KfaO/mT7FHPPqOr1zl9XCUwGv FpXZgIapo0uSzTOoHjvldfKsRVjD+HGexqFL4Qer7Xp4m/GOJNzBaa9lmgr7mltMeiGO BALQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=m2gyVu1qDlp2nKLCqytfIXqQhbS5vbaE4SrMYvAtpXs=; b=rxIWEMwBpKzmS1qX6g1zmmC182oa/gOBd5KWZiD2NYNNcwEd+M1ir/NrwtRfKijHev bBLwREx+PqxDCZSEz4uuwNwisvYdcce++7bd5bDPKzNyM/J+Tzba/iCYiyGetDVbKLM/ DVPof1DAHV5bdO2PqF82xlce4AeWobnpw8bFsrxcncWoByU33T5l0N0HFhp2BLVl79a1 2U067MMMUd6Ywouh/NnrZM/lrZogmLIJVbEQt/A9Jo/rWxi41S5PgrF8rWMjN77yNJBe 39bJH8icZCLaUQb0iRMuKf5wcYtz3Y9WSrGkm/efjr5XYaUOfLOlXStfVrqyesWRRtvi VT4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hyperstone.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si9579621ejx.139.2021.07.07.07.47.12; Wed, 07 Jul 2021 07:47:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hyperstone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbhGGOpl convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Jul 2021 10:45:41 -0400 Received: from de-smtp-delivery-105.mimecast.com ([194.104.109.105]:43343 "EHLO de-smtp-delivery-105.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbhGGOpk (ORCPT ); Wed, 7 Jul 2021 10:45:40 -0400 Received: from GBR01-LO2-obe.outbound.protection.outlook.com (mail-lo2gbr01lp2052.outbound.protection.outlook.com [104.47.21.52]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-21-6MCvNPenNc-j11BEiKL7Ew-1; Wed, 07 Jul 2021 16:42:58 +0200 X-MC-Unique: 6MCvNPenNc-j11BEiKL7Ew-1 Received: from CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:89::10) by CWXP265MB2485.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:4c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20; Wed, 7 Jul 2021 14:42:57 +0000 Received: from CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM ([fe80::259d:65ac:ae6d:409d]) by CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM ([fe80::259d:65ac:ae6d:409d%9]) with mapi id 15.20.4287.033; Wed, 7 Jul 2021 14:42:57 +0000 From: =?iso-8859-1?Q?Christian_L=F6hle?= To: Avri Altman , Ulf Hansson CC: "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hch@infradead.org" Subject: Re: [PATCH] mmc: block: Differentiate busy and non-TRAN state Thread-Topic: [PATCH] mmc: block: Differentiate busy and non-TRAN state Thread-Index: AQHXbl0Q77+Qfc7HWE6ez2HIF5qrJas1omGlgAAGD4CAAADv5IABbwLggAAg/s6AABt2cIAASmAI Date: Wed, 7 Jul 2021 14:42:57 +0000 Message-ID: References: , , , In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ecd81556-6325-41d2-9f48-08d9415582e3 x-ms-traffictypediagnostic: CWXP265MB2485: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: KYSjURUvUwpfuwEsH838byXZbxCYQBj+vLYvy71/Xt3Y6euJPa8P2MLhyqPLXpSqNwxh04ygaXkpbN4mNL0s8V2NAt/MHlIfL5XthaRIyXHxZVT8SQO9p3BNqDCraSVT5KfC1OWc/R+TxypIAkCcyy+Lr+3ihLv6Uo6ST0WnisSSkRKkePyqbF1KRAHBAIizwjNQKvuIHA2QzQxSbAJpzD69gQLCEX4EUkZePiHav370zjmG5b4gHWpbescN1yGgfeL7h1PBoW1SCKW3AI5PxCnZDjKK1eTTfkVKKKc1fKBgqizqnRh3Zl0jFgLp/Z8P1B36Jh3vI86bKxlpV7by0QOp1roKKTPMBFUzcwEHipcNyAZAJ6jn89b7SKTazMcJnLojT6YL7EIekTGtZYEEvVJLt7K4whL6R1kJEpGkANYKqium5rQUGCjzALAamx2FVbt6axYW+aBCoQ0PC6GLYwzkNUzLPv+rsgOU6ANgnQYRvb3x7k4n8lj4kQeYvnd2VWzV6oqEWdLsDr+kkQCm2CS4ER87RiEmA/443foRqG3pcgtxGY9nurdCp93RHuHcTRGubBQtfxfFo4UWUJ5qblj1mj0GlOu8JJ1+2q6+FgHJlusReeStE26wYa3EHV/2rhFAiajuzQviI68D824L7g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(346002)(39830400003)(376002)(366004)(136003)(396003)(5660300002)(4326008)(6506007)(54906003)(316002)(38100700002)(7696005)(110136005)(2906002)(66446008)(122000001)(76116006)(66946007)(66556008)(83380400001)(91956017)(66476007)(8676002)(33656002)(55016002)(8936002)(26005)(86362001)(186003)(52536014)(9686003)(71200400001)(64756008)(478600001);DIR:OUT;SFP:1101 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?5/VLQhnOqsD7NBIgAXJSvo0Le61Fl26hpEg68al/mDbx3agnMPXxeMOiPd?= =?iso-8859-1?Q?FsOvIfeWQU0NT+1LkmaJ+S2kTm//TT9TxqVGuJnK4/ErRgOZYaSDKc52dj?= =?iso-8859-1?Q?c6lASTT1wqiX4HPJYY1CAfn1srliBKZh3P9twQMHctQJ81gARjQ8a2TPwP?= =?iso-8859-1?Q?kWDRUUhD+rIezfIfymV4TawO3za0YVkBUFxJ2Htu3gq9E5mf9U7M2PKWyl?= =?iso-8859-1?Q?vOV/WeK4lLZo2PLYrCLCoVVO//Uw0LyALwbHdOFL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?5uV2r0mMMjtK6hWgzubIdKJxl6ZPKRmtopa3cK3nS8veIX7X+Txcw6bGRu?= =?iso-8859-1?Q?ZgTcR49Dt/2KBBQ4EqMjevhbaH97USDiZtglsX8urQ/Dnd+/WYoIr7HHqg?= =?iso-8859-1?Q?FacLxsAkymgpHD2quTYtRuQQ4rKUCerBGYIMpv5eWbPo9NSf735ACzv+1X?= =?iso-8859-1?Q?QAQf/4ua7sTfVxXQcVhO+XFUTvNsO0MQ27F006rdREqvUpQ=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hyperstone.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: ecd81556-6325-41d2-9f48-08d9415582e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2021 14:42:57.2581 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 86f203eb-e878-4188-b297-34c118c18b11 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /0hzvasNRXj5Dravg9ZIVl4jTd2jnbw/fw5fOVQBP9kdz8LvAdguSkgCOA3y03EesQHENrydNq+Rf2EMWapFEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP265MB2485 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: hyperstone.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> CMD16 - CMD42 Set PW - (CMD16)* - CMD42 Unlock Force Erase - (CMD42 >> Set PW)+ >> * May be omitted if you craft the CMD42 carefully (i.e. equal data size) >> + is pretty much irrelevant, can be replaced with anything that is illegal in >> PROG. >Oh, OK.  Interesting. >This functionality is missing in mmc-utils. >While at it, I encourage you to consider adding it. > >Thanks, >Avri That is true and I have thought about it. Unfortunately a locked card currently will not initalize, so not be open to the ioctl interface. So in fear of doing more harm than good I would first change that. (One thing is reading of SCR is required by linux-mmc but locked cards must not respond to it). Something I'm working on on the side but don't expect anything very soon. Kind Regards, Christian > > >Again, can you share the sequence of the commands you are using? > > > >Thanks, > >Avri > Hyperstone GmbH | Line-Eid-Strasse 3 | 78467 Konstanz > Managing Directors: Dr. Jan Peter Berns. > Commercial register of local courts: Freiburg HRB381782 Hyperstone GmbH | Line-Eid-Strasse 3 | 78467 Konstanz Managing Directors: Dr. Jan Peter Berns. Commercial register of local courts: Freiburg HRB381782