Received: by 10.192.165.148 with SMTP id m20csp4884639imm; Tue, 8 May 2018 16:41:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrKYdJFjGqRDbqczcQoCGrvbDtm1XcLSC9ZVftL1tsUEqeuWwD9MOR+3G3QXUGSM5xAMyS/ X-Received: by 2002:a17:902:d882:: with SMTP id b2-v6mr11062687plz.220.1525822918045; Tue, 08 May 2018 16:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525822918; cv=none; d=google.com; s=arc-20160816; b=DCxzRxw2XDSJF00q2eBp7N2nUwdW3Cw3yjRfK9adEja/gL4i8jJ7oykgb43INVsWA+ kFZIj2svb4e4q/HYR/NMlKBMg7vaM8KK8nJiwPre0k47TX3ANNdKkJOVuDEQSdVhvq9/ jZ1WdrGGzpfuMb11zdeRcZpA4gwRbMxvlwkQ/HKB3l1QeYO9xiKX5r0IHQCkuRXfUD+W url8HNVxZQkEYu9ojIJXNavBLPBkcGIoSv2u6vRhb3gMCqlHj3/Oyf0tniOglztiAmE2 c+mGBSe875G2ndKu9SJ69GnSOL4WAQmkCDKNWPQNKZA0SGXAfBiiHGGgMkxOY4+Irtpp d5Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=CAjGdEAPjxjaFp1AyavmJB9hFeW0NJoKtNU2YFHNWPY=; b=flAaqYPIyEVyjmnF31rA47gEiFkcgPdgGAVEs2QTyWU0bXRL/X197WWtGAPlOWDCqk mvvRaQxo3xqanmR0iVyYoDsRj9U6HoagKRJG0tq3c8DXacpUMdLeRoJ+WXIwynkYaTnE fXki+VKsABifoeoZips2wQAr6nGk/UVCxvXj8M/GLnDN0oR+o/hZYV9TXP3KErDY9Qoe uhWDVVR6AYd1A3PifG2wLqTbgumF8D2dYWDVlKGEkmtREC0dQ9hhPx4sqjBmjhzm8IWC itzqIWMuzdgIxdPk/3m+kP0aCNJfBOdN7HDzRI8V1iM4p444bjVwX8D9JJe236zFZSyN OC7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hM/iDPB+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i27si26015656pfa.219.2018.05.08.16.41.43; Tue, 08 May 2018 16:41:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hM/iDPB+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756044AbeEHXla (ORCPT + 99 others); Tue, 8 May 2018 19:41:30 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35149 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755799AbeEHXl1 (ORCPT ); Tue, 8 May 2018 19:41:27 -0400 Received: by mail-pf0-f196.google.com with SMTP id x9so5538951pfm.2; Tue, 08 May 2018 16:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CAjGdEAPjxjaFp1AyavmJB9hFeW0NJoKtNU2YFHNWPY=; b=hM/iDPB+f3NnTNWSRdQayY7+Bkga25mRBjm6pyVtH97S/Yqn0LQNuAIvAxuIFiqQrw O5y7ENEAfEkCOP/ufAILwBnqVqHJwhEm3ygoouoie8+Uz5B6kbiaKw4P9MIpohivhMQA gEIMYBpyJ5bugm7qpUO0isQBbqJtUVnZWTcYt8Uo2I5TRfNZZg75Mop7DAssZRKr3f0h /8wrFTiGPpNMx+LCZJWZZt0hX5BYpM1lJCRW4zwOJofvtG8ijUFO32sbNBGJRYowivhi fAh4MVRNSVeASVjMd2B8cxWngzjq533F3wlvsd26SS1BEbBzZRYhxPB0P4/RE/mvxSJs zXog== 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:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=CAjGdEAPjxjaFp1AyavmJB9hFeW0NJoKtNU2YFHNWPY=; b=eeHCcHXdZIu4wEdRgdUBBXHXSQyoYYaYap42vjcZUHpGB3QeHBpw+Uznjd8pBFDYzo fvKwuAuoVBrSKusueVOdpgJQz+p+ELXwY30OH0hIv7OKPehwOn9F0NfNugiRp13l9bMn OGXwe+/4y9DUWyBYOatNIa4b67FJM+hPynFuDN5qqSUcwBnlUjfMPE5rdHZZCBiK062i LJ1GJvo2bRj5w3Wgz83QYaVymy+0H2GMfvSG2l7oYYFMx1qD1ntGlHSaeyyv+hHT/DsX 7gM3bhj6RsvZRMRwidvrFkqPjVVWcPM1DrhH5uugBV0bkxQuZpJJb3LRrFzuhsGj3NNZ NLfw== X-Gm-Message-State: ALQs6tCj930/b3qLZMbAoOMm1ceJ1UsR/5di1PW+fmGnNK+07b2oKqh/ AY3DknAJHcDZuXaurptJ3Sw= X-Received: by 2002:a65:4a87:: with SMTP id b7-v6mr11714475pgu.36.1525822886862; Tue, 08 May 2018 16:41:26 -0700 (PDT) Received: from localhost (om126229085070.12.openmobile.ne.jp. [126.229.85.70]) by smtp.gmail.com with ESMTPSA id p1sm13927313pfp.137.2018.05.08.16.41.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 16:41:26 -0700 (PDT) Date: Wed, 9 May 2018 08:41:23 +0900 From: Wei Yang To: Baoquan He Cc: Wei Yang , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, robh+dt@kernel.org, dan.j.williams@intel.com, nicolas.pitre@linaro.org, josh@joshtriplett.org, Patrik Jakobsson , David Airlie , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Dmitry Torokhov , Frank Rowand , Keith Busch , Jonathan Derrick , Lorenzo Pieralisi , Bjorn Helgaas , Thomas Gleixner , Brijesh Singh , =?iso-8859-1?B?Suly9G1l?= Glisse , Borislav Petkov , Tom Lendacky , Greg Kroah-Hartman , Yaowei Bai , devel@linuxdriverproject.org, linux-input@vger.kernel.org, linux-nvdimm@lists.01.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v3 1/3] resource: Use list_head to link sibling resource Message-ID: <20180508234123.GA23307@WeideMacBook-Pro.local> Reply-To: Wei Yang References: <20180419001848.3041-1-bhe@redhat.com> <20180419001848.3041-2-bhe@redhat.com> <20180426011837.GA79340@WeideMacBook-Pro.local> <20180507011429.GG30581@MiWiFi-R3L-srv> <20180508114845.GA19459@WeideMacBook-Pro.local> <20180508121123.GI30581@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508121123.GI30581@MiWiFi-R3L-srv> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 08, 2018 at 08:11:23PM +0800, Baoquan He wrote: >On 05/08/18 at 08:48pm, Wei Yang wrote: >> On Mon, May 07, 2018 at 09:14:29AM +0800, Baoquan He wrote: >> >Hi Wei Yang, >> > >> >On 04/26/18 at 09:18am, Wei Yang wrote: >> >> On Thu, Apr 19, 2018 at 08:18:46AM +0800, Baoquan He wrote: >> >> >The struct resource uses singly linked list to link siblings. It's not >> >> >easy to do reverse iteration on sibling list. So replace it with list_head. >> >> > >> >> >> >> Hi, Baoquan >> >> >> >> Besides changing the data structure, I have another proposal to do the reverse >> >> iteration. Which means it would not affect other users, if you just want a >> >> reverse iteration. >> >> >> >> BTW, I don't think Andrew suggest to use linked-list directly. What he wants >> >> is a better solution to your first proposal in >> >> https://patchwork.kernel.org/patch/10300819/. >> >> >> >> Below is my proposal of resource reverse iteration without changing current >> >> design. >> > >> >I got your mail and read it, then interrupted by other thing and forgot >> >replying, sorry. >> > >> >I am fine with your code change. As I said before, I have tried to change >> >code per reviewers' comment, then let reviewers decide which way is >> >better. Please feel free to post formal patches and joining discussion >> >about this issue. >> >> Yep, while I don't have a real requirement to add the reverse version, so what >> is the proper way to send a patch? >> >> A patch reply to this thread is ok? > >I am not sure either. Since my patches are still under reviewing. And >you have pasted your patch. It depends on maintainers, mainly Andrew and >other reviewers who have concerns. Ok, thanks. -- Wei Yang Help you, Help me