Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3664992pxj; Tue, 11 May 2021 09:12:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUAVb7ojZezk0Ux8GRUDGVVgkg+cjQTC3/zpwVHcbjGZ51ZasxVh12zLX5lMmuT8S5WKLt X-Received: by 2002:ac2:4199:: with SMTP id z25mr21425094lfh.444.1620749564499; Tue, 11 May 2021 09:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620749564; cv=none; d=google.com; s=arc-20160816; b=K2Qm48M+vOW3p1ekSi9iVuXXvBBlrRjU3mU67fRfKf7Cq/v+XkPyjPXGM5cHCxDFB4 aNXat51yPwsVDszfnf0Qy4Wav+GtDqtCbvZfjkjLm36FSutwJ4F5WOJltsCTkygccHMh PvUnbldN1bJ8q1xE11/OXq6BgNH6gJIp1ccZKkhyRw+jVIzEfuIt9lyRK75ceaUukCI+ Mb1Qul2jLQVd37JxmDn42YjnIz9jsFTyFXLrWAr6koAS2WvgDKdCAuyyS6yIFwRfE+6a efDq4gB9Q7aWyfY0g0aUunaTOGD61nGIQi/NPmwWIbtmCKN8UvaOl8Pt9O5WOm6tp82y RC+A== 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=FEkIu5AbegXxkpG67mxHYPAIi2zCwDKHAxExRjo0a5A=; b=HehQQ8Yc+NCEeL6y1GQxIEdPjw8pbmssQlgO4TZ53TPnpOSCdq+1J/HSTXWanAVjEo +gtMnXqnEyGgx4+4UlAldrwEGesfRylQl6V6G7iWaIgiSuD2xvt8tIdGVi35Gl5GlooM DLy54S6ynkUlnnU+OPwkI/VWHELZuX4azZeYkfIZuJ6fHPDrdeDZkWzgC5tMtRtWJ5jQ Wa2ayv+9+7wK+Va9OuJ06Bs2BPq5HPkBQVc+8GQpfHDM2m6pQonXl0iHbPv6YHJ/HmNm 8735dJPiSa7b/YqXb0wtT4N6SyiKVJHPgrXq7LAcXXWKab5btx62GzOJU1RdmaWj4S/M iEgQ== 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 i5si20890938lfc.218.2021.05.11.09.12.14; Tue, 11 May 2021 09:12:44 -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 S231908AbhEKQIQ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 May 2021 12:08:16 -0400 Received: from de-smtp-delivery-105.mimecast.com ([194.104.109.105]:58109 "EHLO de-smtp-delivery-105.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231916AbhEKQIN (ORCPT ); Tue, 11 May 2021 12:08:13 -0400 Received: from GBR01-LO2-obe.outbound.protection.outlook.com (mail-lo2gbr01lp2056.outbound.protection.outlook.com [104.47.21.56]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-35-9c7pdnARP3assXMDarw6Yg-1; Tue, 11 May 2021 18:07:04 +0200 X-MC-Unique: 9c7pdnARP3assXMDarw6Yg-1 Received: from CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:89::10) by CWLP265MB2450.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:92::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Tue, 11 May 2021 16:07:02 +0000 Received: from CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM ([fe80::a91f:361d:5554:3958]) by CWXP265MB2680.GBRP265.PROD.OUTLOOK.COM ([fe80::a91f:361d:5554:3958%5]) with mapi id 15.20.4129.025; Tue, 11 May 2021 16:07:02 +0000 From: =?iso-8859-1?Q?Christian_L=F6hle?= To: Ulf Hansson CC: Avri Altman , "adrian.hunter@intel.com" , "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" Subject: Re: [PATCH v2] mmc: block: ioctl: No busywaiting of non-TRAN CMDs Thread-Topic: [PATCH v2] mmc: block: ioctl: No busywaiting of non-TRAN CMDs Thread-Index: AQHXQyyR8BdSxkDtf0eUDDANXygamarX43qAgAaVTzw= Date: Tue, 11 May 2021 16:07:02 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [185.80.168.10] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 99e004ca-937f-4469-ef7d-08d91496d08d x-ms-traffictypediagnostic: CWLP265MB2450: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: O6WnOLj6U7AuYflxhn0LuLvLxDnDg/C/f1qaJ1MK3mb46FwWcw85s5EVHs5gO7vTs7LXTJILvKv7KCIPU0OKgg9mF/heEDPZoX0jvG0V1TXTkFSltP6atM7qeEYWlmg78RIrZrhtiOp1SVNmT1il0pjFPytzs3y0v92QOVRiUz6JTD4ic7GGSZrWh9/PZEf0zQCX/btUQZq8Qk7gySTm3lFkkVoyFfNBnSKnfPSHNHLE6iaygmcHS1+i7Ya2PqE2dsdG4HD/dpXDdMOmR6bPq8nUrwE7qWwaSVWFVDYD0TdXz8o4v7rensDYDUbsT907iyOuWePAAfU/bpLaZn53DYzjZnYB+amCKam5AvF3M0Cm2WBnI8VmxtYowsKJDQ20UbAVCWXyF2nCjWQY7adjFRIp6EEJuEU6wuIVVov66kYqfWSHKXwRKg8bD0QiHDPgQxBEzF0HJT+EiwrqHX+VwrxERSDWoihHF+Go2j+kYD10RPpLvOyNKAKE1wNsEt7KO0VTklw01atAr+ewQBesswsYA5ppNc7n+JHlcEP41l6KBLOHAwIPqOrw1PAaVpw1NSrPrqw+ByJBIAvDVWKOilzfoP/PuhkDRFB/7UiM9p4= 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:(366004)(346002)(66446008)(4326008)(54906003)(6506007)(33656002)(53546011)(86362001)(186003)(38100700002)(5660300002)(4744005)(122000001)(71200400001)(64756008)(26005)(8676002)(76116006)(7696005)(508600001)(55016002)(2906002)(66556008)(66476007)(8936002)(6916009)(66946007)(91956017)(52536014)(9686003);DIR:OUT;SFP:1101 x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?MvIvAHmadLXiA9f7jzMO0H8mKkTpr+ozSwylT73njW7LOEeBtw9nlFUjUW?= =?iso-8859-1?Q?c/hII55SBNjzt4MIQu+t5LDREIqwnYcZyW0b1+MyQtxz9PrkEezIxJwH2J?= =?iso-8859-1?Q?ZW131ZL0bN3mXSClqu9aughazd1OpW9t8cDThKRXnzt6U9Qtq3rZaXmbeh?= =?iso-8859-1?Q?pgMM1efxh+2HCbQ59Rwc1f3BnBHrxd7khegMppR54Kcitc+4kbzHtllW+U?= =?iso-8859-1?Q?B9mNyCNuRysjmGLceVwebYdNHOQc3g0TL7OPz7zP3+n+LHFi6YRh9Ho1Ey?= =?iso-8859-1?Q?t/9uZbine0DX9kHA0ooIAVPYWhnEedL1qAj+j4uqQDCB4PSOYIJG+7vF2Q?= =?iso-8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YnOkOKpsg7ZlLNwSo9BMlGZJzE?= =?iso-8859-1?Q?rE/kOmsYyOf1Y7WNJWz+o6qhJSXKRVVen6k/sG1qrJZHwABH11TuqT84Af?= =?iso-8859-1?Q?4kn0Jc3Tysla45NmtP2AZew3JjCssRTD9cZCVgoopQIquHA=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: 99e004ca-937f-4469-ef7d-08d91496d08d X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2021 16:07:02.5242 (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: CnOaCYyBN3fOq4cCAOkzoy956pwPl88zc7kaJ70pmk6virhLgyeElPBXK8CFCgZuSEA3Daq++oCHG4+FABjnzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB2450 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE5A68 smtp.mailfrom=cloehle@hyperstone.com 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 On Friday, May 7, 2021 1:34 PM,Ulf Hansson wrote: > > None of the commands you are checking for should have an R1B response > according to the spec, I think. > > That said, I don't think we should do these kinds of sanity checks in > the kernel for the mmc ioctls, that just doesn't scale. You are absolutely correct, my bad, I had a userspace program setting the flags wrong. Even for a SEND_STATUS R1B is only expected if the card was not selected and should be set accordingly by the userspace. Regards, Christian Hyperstone GmbH | Line-Eid-Strasse 3 | 78467 Konstanz Managing Directors: Dr. Jan Peter Berns. Commercial register of local courts: Freiburg HRB381782