Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1232239lko; Tue, 13 Jul 2021 20:13:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc1AJD3Ke244J/lk1+4a7cT8YJ6bby3rishkIj2Uew8EzNMKzyomJxCYua//snKz3HxvmF X-Received: by 2002:a05:6638:328e:: with SMTP id f14mr6836948jav.41.1626232429472; Tue, 13 Jul 2021 20:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626232429; cv=none; d=google.com; s=arc-20160816; b=ns6dqls7DAUDVkoElMOe9IyMOJoIQjMki/SW3hpyouZbKbom6nYnDMeB9E2L2qq0Zb HiS9raibDDAeRw66YqjpXmCcm5l2plHwWohiOORQhZUOaeaZWA9cFiwKE8OIfSPY+uRe /mLMs0KtKvMHsGXqjnfv5G56f5OXNjq/iL2l/o3veGpeds9bArlH39jWZvo8usj9ROSv wTXnGxKDRtdjnLcZn8QWXeyLp5zgSQwWz4uUf5KxZlhAGhgJRbADfZWIsYu1ThjWSHIu Pn2HUni3ixfGtONqIroL003jkAdIQY8v04ShceT2Ka1z9/LvcvJMc90FBj58+tTi6P9T GiSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=y32N12/p7rYvyE6mcJmofWmxNn37x1C8lHiGzfpcDok=; b=o6abC2chwia2UVR3cEaAij0lmKtMnFnfxeiigYgkG29YLwzH0do3njWLCdeilDqB3j eGYB8rr9zzU/+FFSwZB1VShROeal39VzI/DV9LB5peTfLz5NZe6J1tF9uwc4jDc4SMPb aZkGTRj4cC4XjSmTTs9hW+CE1+MhBPoB9pP70GuL56B2Q9RzXnOqBn6HsH/Hmozs0kvf oabzE3gmhfjhzfqb66aMzueiy/NFSzROL+w763EIwkOou4MRodAHmGns04kjENTYcsYg ittHaD1O+7v6vwaG4+/Xd4XWwABSW/b6javBCXcrIlsBkhwFLtsQ2DBDACXVbcaXPOO1 mKsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DeFMaEcP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si1021501ilj.24.2021.07.13.20.13.37; Tue, 13 Jul 2021 20:13:49 -0700 (PDT) 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=@linaro.org header.s=google header.b=DeFMaEcP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237513AbhGNDOV (ORCPT + 99 others); Tue, 13 Jul 2021 23:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237443AbhGNDOT (ORCPT ); Tue, 13 Jul 2021 23:14:19 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F94DC0613E9 for ; Tue, 13 Jul 2021 20:11:27 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id p36so713837pfw.11 for ; Tue, 13 Jul 2021 20:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=y32N12/p7rYvyE6mcJmofWmxNn37x1C8lHiGzfpcDok=; b=DeFMaEcPh/x9l9lVtTPLvhlA8gtRSZKF6n9B8YlvECOQWt920NwOeKZcFbhCVZoUbu lpXJvKbeKE3FHE94ersL1EM7AxkF+agXm/RYTVZ3wpoaj1NGGcUvwe5ih9VzB/gDaCC8 Vo/Bxa5TexycaW9MF4AAqQSuS3OK+kbiArbEjnRUj87pACa6crdatSWXF0wEH/lc1pGM RI8D6qjtm4AIxpLdGpuOhO/lamfpuDFeB384HyrNr6lN0MSaSGzMVpH1+GdJAeocoOiR 1WulySQeY8iGHeB+YeCQzrW1ckwAQef51iCvDwgUWnIivJiaiNpdlwKODdsMSwxPbnPf J1qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=y32N12/p7rYvyE6mcJmofWmxNn37x1C8lHiGzfpcDok=; b=M1CycTEtxAL8NF/PUzLPSTq0hXmbVfsq2ZeEKQUlWVZs7PaaT0KktDUyNIxh+uRw4A c5vtdoJh8USMY5MyEQGfjrcsZmaDNMrtrL3bWR+2VemPZOGt3y4Ab7ZrFLJnZPR8CpBa DcnAPDiN8qaD8vu8QGrUdbkxeDt4QmLT0G+IQ9BwmHL3MBQ6ho+wdP6pvtfTaQog6RIm S6tzy94iW+P1oBBn/YFZ+ODe7HABUuqrR5K/xzklU2g4tua+XipVaNyEmvwLNbB63SqC rE0TCkpGAbqHnzjPBOnZrgWCHkWsWo1BRnrWL1HOj+g9bU84u4YYrxcos4QmgiuqQkJT xqeA== X-Gm-Message-State: AOAM532bMJHKti9x+Wab3t1kXEVmzDOtgkE9MrWorMblX3SSD0qbsdAG H1xKjIa+r5GDcZzgxUrz46kJWA== X-Received: by 2002:a05:6a00:214a:b029:323:3c6e:a24a with SMTP id o10-20020a056a00214ab02903233c6ea24amr7865235pfk.4.1626232287003; Tue, 13 Jul 2021 20:11:27 -0700 (PDT) Received: from localhost ([106.201.108.2]) by smtp.gmail.com with ESMTPSA id u9sm4151244pjm.34.2021.07.13.20.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 20:11:26 -0700 (PDT) Date: Wed, 14 Jul 2021 08:41:24 +0530 From: Viresh Kumar To: Arnd Bergmann Cc: Jason Wang , "Michael S. Tsirkin" , Rob Herring , Jean-Philippe Brucker , Vincent Guittot , Bill Mills , Alex =?utf-8?Q?Benn=C3=A9e?= , "Enrico Weigelt, metux IT consult" , Jie Deng , DTML , Linux Kernel Mailing List , virtualization@lists.linux-foundation.org Subject: Re: [PATCH 2/5] virtio_mmio: Bind virtio device to device-tree node Message-ID: <20210714031124.ubbd2fy4omyt7pez@vireshk-i7> References: <26ba6941fa01eee88c99ecdd611d235c22bd6e3c.1626173013.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-07-21, 14:26, Arnd Bergmann wrote: > On Tue, Jul 13, 2021 at 12:51 PM Viresh Kumar wrote: > > > > Bind the virtio device with its device protocol's sub-node. This will > > help users of the virtio device to mention their dependencies on the > > device in the DT file itself. Like GPIO pin users can use the phandle of > > the device node, or the node may contain more subnodes to add i2c or spi > > eeproms and other users. > > > > Signed-off-by: Viresh Kumar > > --- > > drivers/virtio/virtio_mmio.c | 44 ++++++++++++++++++++++++++++++++++++ > > 1 file changed, 44 insertions(+) > > Hi Viresh, > > I don't see anything in this patch that is specific to virtio-mmio, as > opposed to > virtio-pci. It would be better to move this into the virtio core code so it can > be called independently of the transport that is used for virtio. > > The PCI code has similar code that will set vdev->dev.parent->of_node > for a virtio-pci device, as long as that node is present. Sure. -- viresh