Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp754890lqt; Tue, 19 Mar 2024 02:53:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8/D3piZkNMjW2ePEBL/eDX7fTgCeTu9eSc1cAN5IxCgj9L53QeWxCW6K4kQGvYJ1zrerxeaddBGHG/vEXVzz6haDH9pRoQam5nJp8GQ== X-Google-Smtp-Source: AGHT+IGM+UdJe1R+i/hiLqRwZhnvqcjxx/PQRppN4IX/1JZzXzXnXIo4xOqJWlfiRfBXM7YSsMPe X-Received: by 2002:a05:622a:191:b0:430:b7f8:2184 with SMTP id s17-20020a05622a019100b00430b7f82184mr1766461qtw.43.1710842013758; Tue, 19 Mar 2024 02:53:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710842013; cv=pass; d=google.com; s=arc-20160816; b=t7rN5VunPV5TcAzcyGyAjJjSSkmOc4ILfNw9IRPTj3gZW+Uj7rMqyHTPgqMQnPp36y +Ve1yohkETqm4Bc+HXxh0PmrpOzc5HdzmD5OjqaFYeV9aoqAgoDKwwNO3/NHM5S04ucb xhLBm0ntjtTiFKP2BdSpx6bqvN2eU0W+9in1uJroQTsZ/PqGuxaX9jqop4lNw8AGQuP4 /hDO1DQuNsyTwf95s62MD6hju0Ef5dEaHnAinbXm8OUVyaP1xqDU4DkzDKrITKpTScAu b+x6bFXKzlxzTEtIPRQAOvTqeqgp3a5cbYQvCJ6JwQ8+806J3FY/R2EXsLXROFb41JyY cEXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=+EBDDiNG/eNmY+ueIncptOoRVdMb4em3Z5Wr8wvDjWc=; fh=6m7KaM45355lAzs4dn7ta+M+xQHavhxvW/Zt2Twv13g=; b=A4uDsdM0/TQWowtp8aKrD79jxZdLiM5g06VzjICSRLwjyA7TzYhBZC9JSXoihdKnVa 2u+5kWACY1ywlS8r1Vcei853ydKz95FWP2WZaIVXiGD+KsBWYZ9u52yVNiaaZuvBG9Ts z6YvY5BYxgWNEMbM5ElLTNEoD3bwCV9LbLZ6qRljx3GTQuoR8+n/y/Xrc6QkyZy3QtSA QiXs1WwNs2/25YCEy+2/dPaD8S1pITOVgj9ioKMeX9yQfNq9M7mYWHZslOXaSVXNqiE0 2fXXtaxSzIjutiaJPelF8MOS+NTyt4x60UUdMeVs/G0P5vZt2euL6AC0ke6LLf8ZCleM n0Vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LyzUosUW; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-107331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v18-20020a05622a015200b00430c1ff830asi6464792qtw.501.2024.03.19.02.53.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 02:53:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LyzUosUW; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-107331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7AD821C21B2C for ; Tue, 19 Mar 2024 09:53:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46B8A7E0F3; Tue, 19 Mar 2024 09:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="LyzUosUW" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B0737D091; Tue, 19 Mar 2024 09:53:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710841998; cv=none; b=P6WzyhgVqDcDgpGSnxbFKwWLBLkXZYr6Di5ZaIx2T9ySBvo2P7kSSc03pbqNp35ZtRBJuMWnODzsmMIFAhpqS9T6k+DAbGm4F0Xw8RnVcbM5L8TFK1UTt4CtIzgOxuubqJt/XjHT55vi9HUcE3ZTMSw6XNFZJ7N8D4yRb/y0KWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710841998; c=relaxed/simple; bh=+EBDDiNG/eNmY+ueIncptOoRVdMb4em3Z5Wr8wvDjWc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eT599ovg/h5gksf2peHpljZwiDViu2tXiZysqg9Bue1Vclz+uCcWAd1DfKeeJQAVCPWrNav/K6tB85rJ13rxWMY6jxeenEC4zNWQoMwg2f3yH0Xpkc8wmzkY9rJd52x1G7/bRE5sRxBeNrIgrPh82HTH+zD/Uyav2iY2GhR5atI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=LyzUosUW; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id B3CB1FF80D; Tue, 19 Mar 2024 09:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710841993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+EBDDiNG/eNmY+ueIncptOoRVdMb4em3Z5Wr8wvDjWc=; b=LyzUosUWbZmhrAA4qvwA0ojyg9rDBL6yH+R73/Cl/AGOQYhPpeDYpbVg1jJWu+O1/a6MiY GBtEWVlXLRdBYAfeMbmpOHGLpgAKW+VDmM+X3OTurys03prNWASCLdD7QloxLQT5lWKEcK Jwor7i4jxb3XKQjqvKriBWQQpRtMnJVJicefmt3ecDm2AlHMHsSaMVfI95oAdTr03N/yRg +qp5UgKZGXIpdlewjym3wvEOhprR6T9pCv9wPgYXSxkC5i1o17+vt8Cbj0CF15sCTGTSpK SRTtIkMjzAFEMh75v0eGJSLFpvSufCkkMYqFgr3oJdm08AfYkBdvYQMPZiXCvw== Date: Tue, 19 Mar 2024 10:53:09 +0100 From: Miquel Raynal To: Krzysztof Kozlowski Cc: Manojkiran Eda , patrick.rudolph@9elements.com, chiawei_wang@aspeedtech.com, ryan_chen@aspeedtech.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, richard@nod.at, vigneshr@ti.com, jk@codeconstruct.com.au, openbmc@lists.ozlabs.org Subject: Re: [PATCH v2 2/4] mtd: Replace module_init with subsys_initcall Message-ID: <20240319105309.7cdfe106@xps-13> In-Reply-To: <4e3fbff7-6edc-4196-bc72-1095f14d0dfa@linaro.org> References: <20240319093405.39833-1-manojkiran.eda@gmail.com> <20240319093405.39833-3-manojkiran.eda@gmail.com> <4e3fbff7-6edc-4196-bc72-1095f14d0dfa@linaro.org> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi, krzysztof.kozlowski@linaro.org wrote on Tue, 19 Mar 2024 10:51:00 +0100: > On 19/03/2024 10:34, Manojkiran Eda wrote: > > While engaged in development on the espi kernel device driver[1], > > I noticed that the espi flash driver, utilizing the mtd subsystem, > > appears to initialize before the mtdcore subsystem registers the =20 >=20 > NAK >=20 > You incorrectly ordered your call, so now to fix this you incorrectly > re-order rest of kernel. No. Fix your code to handle modules, probe > deferrals and device links. Agreed. You shall not need this. Maybe just moving the driver to the right location (spi) might fix it. Thanks, Miqu=C3=A8l