From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BE4AC3DA64 for ; Tue, 6 Aug 2024 13:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7oM5Ooy4U8JIAxP0q9fb9Yn3TlkG4+ajnp/PlL6+z8M=; b=YbTosznUFMLvWi kR++m0w4URQGJSol2SezvCUbXBEz0SZUCRSAWsQ0nNdRRL/y0cpHBrd1+uSqjchHNVvj8tCt7iJrN N0lJUTT5b3A4o4IEuawLnZwS9m9XeGk4flEVzxF9IrbEOm7gFfNAxsWVaEaI4HnlLlvim0uOiVYIw 8fknmyVplClJh6ETupM9GZICecVzchXvUGeI9D9NSma5fBpAhfwfHndWnZksL9GY+yNlw0DS9bONZ 5H6BHkPhRuykILcNcLeZuguDdunNAf9S02jODgOT8oP/bZgOoPF3A8XWkxAaSQbWrYi6isyl6YnWC lfPHD6KDo6wke3slL6jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKDG-00000001lEN-49Gz; Tue, 06 Aug 2024 13:26:54 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbKDE-00000001lD4-1sjC; Tue, 06 Aug 2024 13:26:54 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a728f74c23dso73080866b.1; Tue, 06 Aug 2024 06:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722950811; x=1723555611; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=WJLq6wZ3V9tDfVtOdZGITLF+SX3fZ5WHv+sByglbu5s=; b=J6yXkuvv9/tAQBh5eGmXuS1bi/LnS42Af3D5UCBcPxL0x3dSVe7k0aIDNNIqoyHN38 1Jz3oEE8XOb+iKiycE6sIxCFttlMbdgBLNIs1b86si7p1VUgmFklmvS4bXlRYcMp8G3B AT2rIU8eDg+bVB78lz+3xT0R4IwB2i93Od/tjXLYwG9LJSxwO+EgmH1Ie+Gu1SSldsxF l6rnqKzZ4Iu3R6NpJIEIHlEps0kx/z0fpW2JiwfXGQ4KBJtiYwyNX2fJT+er7sycL1Pp 1i+oa1JBTgnF7EMF0bCtiWKNDAdUAJURYn6/kXtC76AlGjGCg7wXgH1CwSjKhzTiqKIR 8iRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722950811; x=1723555611; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WJLq6wZ3V9tDfVtOdZGITLF+SX3fZ5WHv+sByglbu5s=; b=QAbQAnSzmb+F+zp2q/xSKl42RKomfK1OiLhbckfd1JwC8x1cNnlfPtX8x9wyV/i2TW sGm/1Vrwm7mWK9RBGRhjKlKtTRShKCxfYToCI9fPmnm5S15UVxldTbeTrpQ5knzKORli DxUEKCGsouiobL9mXXWSAozEJKEql43saHdAFgtWxsz58VGnqy8BbWRGmMtZW4k+RSs2 dk9YmgONQCKoX2RtTunD/4tM5eM4avwy7oXlXsVyQx0ySvFslnXQPSLGo1hSfh3SBkS0 Q8m4mUBdfvapjy2m+dFfId9NMVoMd4eJYN+UeoVhNDGQEKJayQcZYV2s9DcGHgmaTnn5 TL9Q== X-Forwarded-Encrypted: i=1; AJvYcCUnFCFgJxUrxRpLa3YIqICyOn+VmaGVhLh6N+fzzBBPgdggFkHIxL2O/r5MZHjsZqXCco89rlXdVktj7/wmFkMcz5l/tW80H/LP1NveLqySVdCqtBAYh7aBpORJ92ZZZzpIGNMPsrsA6YbbEYSq X-Gm-Message-State: AOJu0YxOMQF8900eU6ibs2LntPl8AlHj8wlJK4WUlIysvsRtDN+J5Koc itxGAP1nepKE/z09fY/xP4XCIX70/8huuAYU4dt1+07VwO7AwD9V X-Google-Smtp-Source: AGHT+IFCZboMdtGhjAjAlddCPcdXU/2ru7VniI37xRcVSX5ZWE/iyT9EsbOEIdYyKoXwTHhvEvlGlg== X-Received: by 2002:a17:907:7ba1:b0:a7d:a008:abca with SMTP id a640c23a62f3a-a7dc509e2damr1049187866b.56.1722950810418; Tue, 06 Aug 2024 06:26:50 -0700 (PDT) Received: from Ansuel-XPS. (host-87-6-196-30.retail.telecomitalia.it. [87.6.196.30]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9ec285bsm545048066b.188.2024.08.06.06.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 06:26:49 -0700 (PDT) Message-ID: <66b22499.170a0220.cc48.fa2b@mx.google.com> X-Google-Original-Message-ID: Date: Tue, 6 Aug 2024 15:26:45 +0200 From: Christian Marangi To: Christoph Hellwig Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Joern Engel , Keith Busch , Jens Axboe , Sagi Grimberg , Wolfram Sang , Florian Fainelli , Thomas Bogendoerfer , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-nvme@lists.infradead.org Subject: Re: [PATCH v3 2/6] nvme: assign of_node to nvme device References: <20240806114118.17198-1-ansuelsmth@gmail.com> <20240806114118.17198-3-ansuelsmth@gmail.com> <20240806124312.GB10156@lst.de> <66b21f20.5d0a0220.200175.4b9b@mx.google.com> <20240806130938.GA12231@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240806130938.GA12231@lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_062652_510765_8CE698B1 X-CRM114-Status: GOOD ( 19.47 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On Tue, Aug 06, 2024 at 03:09:38PM +0200, Christoph Hellwig wrote: > On Tue, Aug 06, 2024 at 03:03:24PM +0200, Christian Marangi wrote: > > Well on embedded pure PCIe card most of the time are not a thing... > > Unless it's an enterprise product, everything is integrated in the pcb > > and not detachable for cost saving measure or also if the thing use PCIe > > protocol but it tighlty coupled with the SoC. > > Yes, PCIe has a bunch of form factors, including just soldered on BGA > devices, but none of that matters at all for the logical protocol. > Correct, for the context of soldered stuff tho things can be malfunctioning (problem in the PCIe driver) or working so it's possibile to make assumption and attach OF node in DT. Consider that the thing is probed only if the card is correctly detected. Card not present -> nothing is done. > > This implementation is already very common for all kind of pcie devices > > like wireless card, gpio expander that are integrated in the PCB and > > require property in DT like calibration data, quirks or GPIO pin > > definitions, i2c... > > Do you have a document on that/ > You mean example of PCIe that makes use of OF? Pretty much ath10k-11k mediatek and in general all wireless card. Example ath11k-pci.yaml [1] Compatible is set to the ID. PCIe will attach an OF node if found in the pcie child nodes (already supported) On NVMe driver side, the NVMe controller will already have an OF node present. We are now just adding an additional subnode "nvme-card" and attach it on the root disk when it's created. [1] https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/net/wireless/qcom%2Cath11k-pci.yaml -- Ansuel ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/