Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp680158rdb; Tue, 31 Oct 2023 21:38:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEEcyXxbi9j0ccbsutc2ElAfGnKGc6ow2gPJkui6e/dTAEgWBVzJ2Mfvwxn/dgiuAoThgY X-Received: by 2002:a05:6a21:7742:b0:181:3dde:deeb with SMTP id bc2-20020a056a21774200b001813ddedeebmr1326768pzc.33.1698813506997; Tue, 31 Oct 2023 21:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698813506; cv=none; d=google.com; s=arc-20160816; b=WaqQMxXkKIkJZbwoB3TcgeegwCB7OblM+f/yaqY6mQigJNCPJ5aQk6FP5VSYwexCnA Yb1IFrkcqduOee3KcLIMvaKZtZoFvudIFP+IKLlsIBZSaEDyboPPR+2LAJFarugyWTiS 0B05hzrgT7g8wMavUjc1qeVDwr7ZvDzWrwOLb38as9UsL4uUpPsVJZXMJY9KBK0z8u5P U+gZEGKrqQczzDAdrLKOOS7j9eIvvgWKD2xuifMyZrjZNKOR443k2gMoceTPP1URMXm1 Bw63YPufMCky3TnTW/KxJvDkDCSf2ElVCFo2uugN6yZX/PCYtbZ0VmqLCCGlNEZPiCE1 sRpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=j+mg0+uxBvTuBRWF4ptxdU82Fb+1k2fxHgCCXiVcZQA=; fh=sBHP58PSd9fMTd/Q7Fci52TCX4uMUZ9eovZ9MmVwVYg=; b=XjIqVZgLD4jqJ6xAn/vuei+ImGuS+17/MdoYn/MuqQdRDJr1tgzr/NCwOmWNJhdlLq hrG0lRMSmPyWssU+MHHXxdEGw8n7YrG3bc2ZE4PARZSawwFU3+m0/5Kqltq7G8HbX6W6 VPsfkDRAo/U06JAqDTO9IMZp4O/xuHbLmVakKHRzXua7BXtacw43SHCkgM6tPRDnpJ7r GUNAyL6skqiTSXO9zyJ07L8jNigOOtWafzDaK6SNqSnkcteOpGeJ+hmNc4b7EYingQ+u DJs/GfKPUp4g+YkXO0L/rR756QUFd2sDDtoBYClVbzOhCoCljvn3eYxLSGuHjwE+aUTI 2UbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=k4awi9G+; dkim=pass header.i=@codewreck.org header.s=2 header.b=GrYPsiWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id jo13-20020a170903054d00b001b5589848absi2151239plb.234.2023.10.31.21.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 21:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=k4awi9G+; dkim=pass header.i=@codewreck.org header.s=2 header.b=GrYPsiWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 955A7803B53B; Tue, 31 Oct 2023 21:38:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345401AbjKAEh4 (ORCPT + 99 others); Wed, 1 Nov 2023 00:37:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345242AbjKAEhy (ORCPT ); Wed, 1 Nov 2023 00:37:54 -0400 Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 969B0103 for ; Tue, 31 Oct 2023 21:37:47 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id EC2A3C01B; Wed, 1 Nov 2023 05:37:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1698813465; bh=j+mg0+uxBvTuBRWF4ptxdU82Fb+1k2fxHgCCXiVcZQA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k4awi9G+mg0+EAiKXCXRJdb+1a8p9CfMbHvFn3a8oVq2cYQBKM4nvx0VzA178oTRK SXk05BcSid5LR2bq/i9X9cd3Q8ZgF8EYBaR5urwNi0EYcJPGhvBta9zE13cQSHWbe6 cA8TeBCKOmLoaQUoaeHn5/aFcpebdLAu7EoswMS5xk2PgLQfYpKV+WkX8zPkEbExv1 mmJmqULWawJScFdD87a3dLdcCAF05KJ+8Yse8wzLnBVUgHtikf7fMtsp9zE/qEihHm ZVieNDqTiq6BNdFg7k61V5k6kJlBVh1pTUqr+51bFeAxH2PCsCmHUyy3pic9xTTbQC Q/DfyEnCEUaFQ== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from gaia (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id AC94BC009; Wed, 1 Nov 2023 05:37:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1698813455; bh=j+mg0+uxBvTuBRWF4ptxdU82Fb+1k2fxHgCCXiVcZQA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GrYPsiWrkRCUcn9s2MkFLg31xqxTmwQ1Tm4if+GBYb8fG34lFc7Iztqp6C1KKbclx T6gcJFZrjEYqGzP2dK+HhKxVK/hvZUQFEP5xVQLBRQPli2Ekd23oC70xH0OsEMtIF+ yE/i3PX6sgdgnjTga6oZVr9k4AO1o5cFlevbYUcq03sVYSX6dyv6mP2q2uNmYsTz3g dxejHEfnu/Gu60nGzWQjRg32VvKIP40RYvx/ad6UoeuD1lmTWXlKvHacFqt7XI6lcA ihpRJqLOxHAaQ73XCwDcX0oI+gOvO0d01ZUSZyJ1OIF+SR5T+zMlcp5MVWNXoDoCem 2m4ptISHOVnNQ== Received: from localhost (gaia [local]) by gaia (OpenSMTPD) with ESMTPA id 532b5c2b; Wed, 1 Nov 2023 04:37:30 +0000 (UTC) Date: Wed, 1 Nov 2023 13:37:15 +0900 From: Dominique Martinet To: Avri Altman Cc: Dominique Martinet , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Ulf Hansson , Alex Fetters Subject: Re: [PATCH] mmc: truncate quirks' oemid to 8 bits Message-ID: References: <20231026075230.414685-1-dominique.martinet@atmark-techno.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 21:38:24 -0700 (PDT) Avri Altman wrote on Thu, Oct 26, 2023 at 10:16:53AM +0000: > Reviewed-by: Avri Altman Thanks for the review! > > --- > > Notes: > > - mmc_fixup_device() was rewritten in 5.17, so older stable kernels > > will need a separate patch... I suppose I can send it to stable > > after this is merged if we go this way > > - struct mmc_cid's and mmc_fixup's oemid fields are unsigned shorts, > > we probably just want to make them unsigned char instead in which > > case we don't need that check anymore? > > But it's kind of nice to have a wider type so CID_OEMID_ANY can never > > be a match.... Which unfortunately my patch makes moot as > > ((unsigned short)-1) & 0xff will be 0xff which can match anything... > > - this could also be worked around in the _FIXUP_EXT macro that builds > > the fixup structs, but we're getting ugly here... Or we can just go > > for the big boom and try to fix all MMC_FIXUP() users in tree and > > call it a day, but that'll also be fun to backport. > To me, your fix is clean, elegant and does the job. > I would let the quirk owners to fix that hard-coded bogus oemid - should they choose to. > I guess Sandisk would need to do that as well. Yes, this was exactly my intention - leave the workaround in place for a while while owners fix their quirks then eventually fix types and remove this when it is no longer needed. Meanwhile, all stable kernels including the newly released 6.6 have many broken quirks and at the very least the MMC I have here would periodically hang when issuing a flush, so as a selfish user I'd appreciate if this (or something equivalent) could be making its way towards Linus' tree. Ulf, would you have a bit of time to move this forward, or should I ask Greg to temporarily revert Avri's "mmc: core: Capture correct oemid-bits for eMMC cards" commit in stable trees until the way forward is decided? Thanks! -- Dominique Martinet | Asmadeus