Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp753936lqt; Tue, 19 Mar 2024 02:51:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXm+7FIase50yU6z8e5/F4Gmqqepx4R+Xuw4eUPxqFXM+RrXl/o7uWBkBvuRBzblp+evliDNQfflHLZ9ZhDL3M7zJ/Y3bBB7YqksilfDg== X-Google-Smtp-Source: AGHT+IHyWWey8PLvMO+W73XEwwN2km9tdmJbowWJcq4UueeRa3O5dl9R0SwiJCAtpUScOn6MWvJG X-Received: by 2002:a05:620a:4105:b0:789:f06f:a08d with SMTP id j5-20020a05620a410500b00789f06fa08dmr2996874qko.57.1710841875605; Tue, 19 Mar 2024 02:51:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710841875; cv=pass; d=google.com; s=arc-20160816; b=Mw6xfCX0B1nKV975dqH3BbSeuTvLNUl0LKc2px7tQfVXA2RHv2cQ7ZT00VkHyrjPZP AnYtYUaLit+lRme9j2PJDDMdhlEl1DM+k/LqTnh3kpV3eRp7CSnfFdFdjLimmabONB/W YRvW3YH2TC3SDjjX8GmrLVKAD7SrF1VdBzu0Y8zKKqkrD3OqTS1u/O8oSRCPD2I4OB7b ugxhzDI+7HKvPW4Uniy2tkixfGrsYJxuBSuT3MiIZ1bQcq6/kJ5iS2QGbC8FFKf2CCV+ F6VCGlauKRVpim8hFM3m5hDTJTminviJGT8dE3ML0WuBwM64cQJjPCzIFC4KFyEtkM8b 25Ug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=88XzjhFNhn70mBpqUdKgpf7ppYNiFhAhyQuqQQPS+u8=; fh=gobEPmyqJKTcGqtpPYvUQdzs14V7ot5vtgrcm5dIqa4=; b=ISYMhmOzBLoWqIuW7u7h6rossBbVzR90KmPR59kMx0F6TXt3/0B3KDSmIZISERE79F 9aVfzpynkHGQsZl1CjhSn0GJRjiH/45La3FXPHR+8p768bPY2CpZH1TUEOtV9JGqmAEK R0OXaNKP1nP93DDhLtLQ0LlBbJZWL47kxpXI5uKOJysQsxq+p8Ob32Gx7nusZvdHew0G E8dZ4B7NXEf5C2t0ZlwILc8LwkyI8MFML7Q0/ZUEB8tnmsGF6HAoftgbMlF6edolb/o+ V9RPpu387KdmXrfdJhxFGFZEYKaU9qsy/8YgqFDfh9jSZ7fZmlxM3+mk47Ds9FhPbw6J GhyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O8wgMAwZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107325-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i13-20020a05620a404d00b00788624820cesi11872680qko.18.2024.03.19.02.51.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 02:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107325-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=@linaro.org header.s=google header.b=O8wgMAwZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107325-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 3B1F01C21C53 for ; Tue, 19 Mar 2024 09:51:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 193C67D09C; Tue, 19 Mar 2024 09:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="O8wgMAwZ" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 631687D083 for ; Tue, 19 Mar 2024 09:51:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710841867; cv=none; b=E5urFxc1TWvtrTo+et3Hwb/Sqrpe+2cd64VINaeEMs9EAD1j8Mkpl+F2gQypySB2joKloyIcmK5F0qy4CYyHyMfCxZFbMIJfeRj8+OGemx+LAvwesMubKf1rqMjX4UnmXPvQiGVNdyEi+X04iT0Pgv7O2GoP4ub5tq0vPaVPKHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710841867; c=relaxed/simple; bh=88XzjhFNhn70mBpqUdKgpf7ppYNiFhAhyQuqQQPS+u8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=clmJk2IIgctJpLBdGVIR2B8MbPksgOBHT82TPSdNM1K03XJuHfHZNTEQiNH9oCs8IHxVFyGjxtsEy3cVDcCRLWo6P/YDlnEBKMbPC4NSqeQbCOrYbaVYCmCKwn6ep6v9RyYUaoFTOSlOiJI1o4hYJ141i9t7Rfokknp7kkbBxdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=O8wgMAwZ; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a468004667aso562585066b.2 for ; Tue, 19 Mar 2024 02:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710841864; x=1711446664; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=88XzjhFNhn70mBpqUdKgpf7ppYNiFhAhyQuqQQPS+u8=; b=O8wgMAwZunwn+kq5K65kO7LtwfoT+UElhUQfbXIzLmzI4GqgK6hzqS93IF9qqRK1TS tM+RAI2/S+jHkAYazSth0TLF2z05UpnMdw5vt9lJAFzqYi9Dd6pU3nL5BnZy+NSg6H08 hC/rfnUAXh8hpLR7jE6M6Qcst89QGuweJl0s0bhDKazM0bNNJkahn/hulcMzQfWuxpig 2G7bTmjIwF+QlXhAH0o6ELE16iqSiaJ+iQalWX9UK9Q1Migqr8X4DyBd4QZj8fLQPNoR JCeZjfNc9tqslyIeyIsBfuebU11xhQCzZa3zXdUwQRnFym3H9TJdBNxTkgqJi22C6CJT En7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710841864; x=1711446664; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=88XzjhFNhn70mBpqUdKgpf7ppYNiFhAhyQuqQQPS+u8=; b=tRYHAlDNgYsk46zrNtyx27RZbXClibmBvbox70A7mgSg967zh8OZA0NXCXvH2bHuQL yUDzCcplBYB8f+dA6m0IbwY4aJ8u67PuPBLKfzRGbrdQ0bniESvkvIV63CcBN+BnvzMQ +EjL2BfuHy4Islb4v/ztfNG5Q8TJUNauN8+S4yL3hX+ZjF735Mn682UwlodUz6L6Rb7M A8OiJ+G9EjAXi/3oiNWInNzBpVDHRPnZ3BZD/mRQ+n5JR12RGjFcP1vR+kTasyazDU4/ dwFDhweSgIjTecBpl2HzEps2H8rxI8c4ej8uxzoayZ/Lo8iAeuNFjGMimLnKhsrh0u9u pvRQ== X-Forwarded-Encrypted: i=1; AJvYcCWJ8ZXAyJrMGrs00SsvRyXLvwO2Mx+ci1E0w4szSpou8U+cwcpsYdlWPPBxSXlSAtl9GgftznvtsyEbHCrpwE5ZoiaGiGakFOUXbXJH X-Gm-Message-State: AOJu0Yzv5EvQMX+pe43PfcIVCl1rXswS3l9hXhoVHbsLgXotfbSZ9QbU Zhn7mIFmqmqHhDRFsKZURG2gq1sQu+0gsBrKvt2atFJWgHZfLbGGcL9rqSV5JBM= X-Received: by 2002:a17:906:1b15:b0:a46:cc49:2fd8 with SMTP id o21-20020a1709061b1500b00a46cc492fd8mr2387192ejg.67.1710841863797; Tue, 19 Mar 2024 02:51:03 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id dk16-20020a170907941000b00a469f043d7fsm4005091ejc.41.2024.03.19.02.51.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Mar 2024 02:51:03 -0700 (PDT) Message-ID: <4e3fbff7-6edc-4196-bc72-1095f14d0dfa@linaro.org> Date: Tue, 19 Mar 2024 10:51:00 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] mtd: Replace module_init with subsys_initcall To: 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 Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, jk@codeconstruct.com.au, openbmc@lists.ozlabs.org References: <20240319093405.39833-1-manojkiran.eda@gmail.com> <20240319093405.39833-3-manojkiran.eda@gmail.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2X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6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240319093405.39833-3-manojkiran.eda@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 NAK 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. Best regards, Krzysztof