Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp267744pxb; Mon, 8 Nov 2021 13:19:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpbBi1ukfBh/fBEg4G5uGGWxU0B7BOUWYgKNnFfwQsZIQ9w91bbVstrmX3sgBxD/rm+No/ X-Received: by 2002:a50:cc07:: with SMTP id m7mr2842290edi.356.1636406366604; Mon, 08 Nov 2021 13:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636406366; cv=none; d=google.com; s=arc-20160816; b=gIyKHBJZm1oKDvRZSWw1Dc/db7voXTZhzuqYCH+RLNyb8u86egT9lcBfEYWmhrtg8v Kie2E/4k+H/1WRz3eMXaSTwPknLhNJrDONutMpOgPIjKuUSfauB4m5ZwS8YpsR4xVLbf J967byvjbc2lxlksXcJFtq8MdjocOrlkByw+56IxqX9j2uLoOzRspbMm7FmX7VbkIAo1 kff7W33HIysvZ2vhXinFn/D5X0ZCITdn353pmXubbbC3KvS04Qot4ON5itwOkbrIbpSL O2WuDNcszU6JFns0gtMNCjG3M0PtCt3AUUTn6gN5FZesUGt7zWsgRr81wWjvz1YDm39r J2Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=PK1HOtrrDdxTgOO8UphIBb6lJvOT4Qvb1ttzQln7tm0=; b=F9xBSDyut3xvhmpcWz3SWbXYRxxDR5svBFVOoyY1URyOq4jahsbtbrrKTpPmGgJGfr tQiis2KP8S63YDDZu7VyNfUEp/8rxbaT58+TbHOfu2188NJYb55Mnsk+Q+pDevEMSNUv 81311372cmIjSihkx8Dd5CIXOcvVp3CAM2YvlCnAiCYNoejCq2UAKN4kvfWmxLVocBB2 AUBqgmuVSunbDRMyUwMJwX0sOscmsLmxocKGhAgke4Tja9EdwBFi8kioutq1OlIHhCn/ qYoWJfdK+HHwCB1wsjrX0R9SbRiJ4z/u4JwmzZUuWL4R4hidlzxgBRg2IdYFWOBXYvrE ajSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b="aS//u9qK"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si22925041edd.607.2021.11.08.13.18.52; Mon, 08 Nov 2021 13:19:26 -0800 (PST) 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; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b="aS//u9qK"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238647AbhKHQHv (ORCPT + 99 others); Mon, 8 Nov 2021 11:07:51 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:23818 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbhKHQHt (ORCPT ); Mon, 8 Nov 2021 11:07:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636387495; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=PK1HOtrrDdxTgOO8UphIBb6lJvOT4Qvb1ttzQln7tm0=; b=aS//u9qKPBSrTM9/uH2GB40LrYPLyDqQuQGfgKSvPeT3hT8uCTw0kaEfgJL9XEW4Hg FkaRHzPG1wUbkugh/LEKicwZECPsd+Asb2IEa6AE6gpjDnjxzXGptuidWvzKzHfZ32KW RHEnHxXK4aRNQKBrRML1odz1ZxLCvoSJxD8JLDQJ8UzPtnIh0KjKSFx3lqKmFLfmrL18 3gPi5Q9SpA6n2D/glija8DZdp+Jm1roFqLQXGqMrEt4qVblNvYtcKhqHsQEmTv6gnWEv 9pxPX7MM1WU//+ZBTZy3hwChqlJfWrnZDkP4AxbX2ghNS5DXsbCKRXfGm+ML1AHhEdwr 2XOA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7gpw91N5y2S3gMZ+" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.34.1 DYNA|AUTH) with ESMTPSA id 902c63xA8G4tLab (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 8 Nov 2021 17:04:55 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [RFC v4 4/6] mmc: core: add new calls to mmc_fixup_device(sdio_card_init_methods) From: "H. Nikolaus Schaller" In-Reply-To: <5014485.RYphtzS1IF@pc-42> Date: Mon, 8 Nov 2021 17:04:54 +0100 Cc: Ulf Hansson , Avri Altman , Shawn Lin , Linus Walleij , Tony Lindgren , Bean Huo , =?utf-8?Q?Gra=C5=BEvydas_Ignotas?= , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <73440c0f227778e57167dd9fedd350637a1d737a.1636103151.git.hns@goldelico.com> <5014485.RYphtzS1IF@pc-42> To: =?utf-8?B?SsOpcsO0bWUgUG91aWxsZXI=?= X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 08.11.2021 um 16:39 schrieb J=C3=A9r=C3=B4me Pouiller = : >=20 > On Friday 5 November 2021 10:05:49 CET H. Nikolaus Schaller wrote: >> This allows to add quirks based on device tree instead of having >> card specific code in the host ops. >>=20 >> We call it just after where host->ops->init_card() can be optionally >> called. >>=20 >> Signed-off-by: H. Nikolaus Schaller >=20 > [...] >> diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c >> index 68edf7a615be5..cf8ee66990508 100644 >> --- a/drivers/mmc/core/sdio.c >> +++ b/drivers/mmc/core/sdio.c >> @@ -707,6 +707,7 @@ static int mmc_sdio_init_card(struct mmc_host = *host, u32 ocr, >> */ >> if (host->ops->init_card) >> host->ops->init_card(host, card); >> + mmc_fixup_device(card, sdio_card_init_methods); >=20 > sdio_read_common_cis(card) is called a bit after this line. I think it=20= > will overwrite all the card->cis fields. This does not conflict with = what=20 > your are doing in wl1251_quirk()? No, because the wl1251_quirk sets MMC_QUIRK_NONSTD_SDIO which skips reading CIS. The key issue with the wl1251 seems to be that it reports random CIS tuples if we try to probe without quirks (I have no further idea about the wl1251 than moving the quirks around...).