Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1193339ybl; Tue, 3 Dec 2019 03:18:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyz332JaCPrYaTQakHzAJi+6A6quAo/tSU7BZzuAaNXodSq3ywvAaGjhjHVQUYlX0OCfC0p X-Received: by 2002:aca:60c4:: with SMTP id u187mr3017860oib.36.1575371903962; Tue, 03 Dec 2019 03:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575371903; cv=none; d=google.com; s=arc-20160816; b=szMN7KCgKNRPdZi1SwoM2ZaNN9UIr5bGBXyoFwvln4ASHzkL4kXaDGMbmpWLANZoDp bzQ3A8kG4SKq/yQRKAYSZ2/HWUhHtrz73oWCdFumLHDKv1lzKrj0WKBZvmToK5cjHiWk 7uMvqJ4GRMbSNHagbfwoR77115v9l5Xpavc+hzo6nBwEMi4F5dQQ5W8iJPokeDzysUVY aYKF4hBDHLM7zkyUWdK2bIBLDt8joW6yiyfLP2lwx/m7wHnfTmNjJqVF+8gI2CGhQB5u bk17YIRAT4csV/wAJJkNFp+FI7xJdA+uacs6xoVyY6HelRvGEhBEhjGK4Bfi3lMKYOOa Ycxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=x5WC8boniftGxMSMVbgSZuITwaSlnF2awbsyLKY+1CA=; b=mSE/6zWQtFhlajotHOHaxr6/U8ZeVHiLzwZphVp6/iNVN3AIFEz+mt32fznHylODBW yzm8myd+bZHTeriwICQLfJHit0PJw0M0U76JBlsd+rZq3VtzkZuRXaskMd8SjR9QlOmN U6CVAkJFfVkoBHutI0yVl7AvIfyU2ULYR7mg/FaJEM9J0p+c8NB7N1AwYC93XOixlXbK qlCQ4hht7+VJk/n3q9qfc+koPe+Ha6/25ECZmm9BVQE8poc6rArMlFXrG1CyElnLY35e OxWh+zV6w9/iFt7jZlWUThTnC8XV6kWYmIhgGmiSVXkpMWR6FgBMitzskp6cR6nfweET SCaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si1148440oii.54.2019.12.03.03.18.11; Tue, 03 Dec 2019 03:18:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726505AbfLCLQ4 (ORCPT + 99 others); Tue, 3 Dec 2019 06:16:56 -0500 Received: from mga11.intel.com ([192.55.52.93]:45216 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbfLCLQ4 (ORCPT ); Tue, 3 Dec 2019 06:16:56 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 03:16:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,272,1571727600"; d="scan'208";a="242354818" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.95]) ([10.237.72.95]) by fmsmga002.fm.intel.com with ESMTP; 03 Dec 2019 03:16:54 -0800 Subject: Re: fsl,p2020-esdhc sdhci quirks To: Rasmus Villemoes , Yinbo Zhu Cc: Ulf Hansson , LKML References: <8afd0f53-eba8-e000-d8cc-b464e65850c3@rasmusvillemoes.dk> <53c77b5b-627e-424c-234b-05f73b44863e@rasmusvillemoes.dk> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Tue, 3 Dec 2019 13:15:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <53c77b5b-627e-424c-234b-05f73b44863e@rasmusvillemoes.dk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/12/19 12:49 pm, Rasmus Villemoes wrote: > On 03/12/2019 11.15, Rasmus Villemoes wrote: >> Hi >> >> Commits >> >> 05cb6b2a66fa - mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 >> support >> a46e42712596 - mmc: sdhci-of-esdhc: add erratum eSDHC5 support >> >> seem a bit odd, in that they set bits from the SDHCI_* namespace in the >> ->quirks2 member: >> >> host->quirks2 |= SDHCI_QUIRK_RESET_AFTER_REQUEST; >> host->quirks2 |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; > > FWIW, with something like the patch below, sparse (make C=1) would complain > > drivers/mmc/host/sdhci-of-esdhc.c:1306:31: warning: invalid assignment: |= > drivers/mmc/host/sdhci-of-esdhc.c:1306:31: left side has type > restricted sdhci_quirk2_t > drivers/mmc/host/sdhci-of-esdhc.c:1306:31: right side has type > restricted sdhci_quirk_t > drivers/mmc/host/sdhci-of-esdhc.c:1307:31: warning: invalid assignment: |= > drivers/mmc/host/sdhci-of-esdhc.c:1307:31: left side has type > restricted sdhci_quirk2_t > drivers/mmc/host/sdhci-of-esdhc.c:1307:31: right side has type > restricted sdhci_quirk_t > > But maybe that's too much churn, dunno. Presumably testing would have caught this, so I think it would be better if people tested their patches.