Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp273378imm; Wed, 30 May 2018 23:29:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJLf/n2QbO6DOrXJ3X1IO8G9UyqO05PnDdPAbEh277ENUjHfNtQ6qezmaXFoE1M4j8+ZR47 X-Received: by 2002:a63:6ac6:: with SMTP id f189-v6mr4556075pgc.308.1527748199644; Wed, 30 May 2018 23:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527748199; cv=none; d=google.com; s=arc-20160816; b=N/u4aZHTTE8cUF084Xdl5tYpR7RM6DIRZpIKjHjThqhTPIr/8JZAzMmnlCLj2VIAXr Ro0tslBX20k8nCo9PEh2IUmHCDGdMcdoaq7JpL22KnDcvFqcB2s5C0SCGpP6wDK8qjfR bEBWwEsgt3Tk8+pSVNCnAYxXVvz+VR9tFcMvdencxV/l8ObiqPgb2Xq9i/GxWCcEbe3l u2uhpQxLqyCZbiixkrXhf3OFer7oBlhKVN0TAmfP+/zIzqUU53nRvE4SyGkrtkoFqnI8 2W15rH3viMqARr0ye0F0DVAgzakWS5P2vs/7pqxzjvLEDzdsKbkslgoylU4x2dZiQ6OX a43g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ES3SmQUy3MPx4k8hT3bfivO7NU3bgnOQKsmsLutZrdU=; b=yKNHOGM2q+JRCi/yFahxxvjLt3KXcVdl9+vyKCRLg5x7Bx/WAEtNloMtW5l73cVqay 3kMgAxKwLUNtiAvua/jTLaosjfJVqMptVeeQzOUwj6qhJEfq4x1Ig36OczDl2MAuny7g 2UjDCN1ZczHnsqn+uqnpp+2jtD0LiVOy6bKZKIEvUA7QSWn4RhfP76fPp8ujiYorohpE 5Kdif53lkVsSLFQBeuhf4DlqV1LBzwyKc4YA0ATyFLWekhaHep/7BuRxh6Ma8vSM2pQ1 rmTWVDL537BMyjtySghqURHzrOoJwhscz54yJqf5LSE5vnWDuj/wFpj6aihAPJ83w1HH r9nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vhVHuQJh; 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 x3-v6si19946338plr.307.2018.05.30.23.29.45; Wed, 30 May 2018 23:29:59 -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=vhVHuQJh; 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 S1753941AbeEaG3W (ORCPT + 99 others); Thu, 31 May 2018 02:29:22 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38656 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753760AbeEaG3T (ORCPT ); Thu, 31 May 2018 02:29:19 -0400 Received: by mail-qk0-f194.google.com with SMTP id c23-v6so16391095qkb.5; Wed, 30 May 2018 23:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ES3SmQUy3MPx4k8hT3bfivO7NU3bgnOQKsmsLutZrdU=; b=vhVHuQJhwYOpbl8b4FXI4MZyadraTOer9C68f+XBhb/PcA4kYYtKIWOVTtzT8lnwnq /8NvKcAsxTteTd7Ocn0eM1OWL9mxDwl9Qqq42g8AI5BX9jwaaxD7usoNTtX+bVuQToD6 /kPKhfwIT1eNr/rwfDMpjmnNSlAg2EWmmbzdXkJrk1ZdzScbz7b1d5wuxgHmx1Nw58E3 GksWXJ2zof+MhKD6KX1CgSiHSKvfzmldNUrC0YfO8XmgryVZB2LozuWrWmLiXsHOnpYc yy9y90+M69M4NS9bps0xe2HPw15d1cfpNBXYGQbsqNAso0pv5D8zGhFFOefb0CzXc0uJ G4oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ES3SmQUy3MPx4k8hT3bfivO7NU3bgnOQKsmsLutZrdU=; b=EZlCgQlzk+a4R3oRdfDYsPyFvyN9ple923dKk+/nz7HG91eeZez9cfHRQlvQubtrmF qB5EaTuX8XVShE+us7LXzq2mrLLUMrsqa4WDoDqHje5khLhtt+Dcjd3+mdrzD6P+QDPY /LMHdSoKv/nP7KtQBM5IUuDIUFo96MkOUeC9QPt8KW2ximJ+r1XqN+MD2AnikJuchMzr LWg6LOM4tupCSCb+ktXVw7qWyoy/xUQTydASxBMfGVmm5CGOfmF7BS34gSkUW+Bk48xf kYnGTTXgP6Tx7J/IRLkf26Ag78wq9Ro3h8ZzQG55+iHuA7fKML4HQl7R+D0MxZ2nsT5s BxLA== X-Gm-Message-State: APt69E1SC8x5XP0M5yPN5muAwgAqF1BpHCDMH0JEsqsgWgZiOy9KnKoi 0rR4NIE1c9eiNSeqYSGcydAZKvHiV9AOPDYJrBU= X-Received: by 2002:a37:7742:: with SMTP id s63-v6mr5001282qkc.97.1527748159115; Wed, 30 May 2018 23:29:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9896:0:0:0:0:0 with HTTP; Wed, 30 May 2018 23:29:18 -0700 (PDT) In-Reply-To: <58c1059a91b93a490a7fc8bda2112e67e6513840.camel@kernel.crashing.org> References: <1527714464-8642-1-git-send-email-eajames@linux.vnet.ibm.com> <58c1059a91b93a490a7fc8bda2112e67e6513840.camel@kernel.crashing.org> From: Andy Shevchenko Date: Thu, 31 May 2018 09:29:18 +0300 Message-ID: Subject: Re: [PATCH v8 0/7] i2c: Add FSI-attached I2C master algorithm To: Benjamin Herrenschmidt Cc: Eddie James , linux-i2c , Linux Kernel Mailing List , devicetree , Wolfram Sang , Rob Herring , Joel Stanley , Mark Rutland , Greg Kroah-Hartman , Randy Dunlap Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 1:42 AM, Benjamin Herrenschmidt wrote: > On Thu, 2018-05-31 at 00:31 +0300, Andy Shevchenko wrote: >> On Thu, May 31, 2018 at 12:07 AM, Eddie James >> wrote: >> I'll comment the series later, though you have to address previous >> comments first: >> - understand devm_ purpose and how it works > > I think it is perfectly understood and I don't see what your problem > here is. So please be a proper civil human being an express your > concern precisely rather than with aggressive comments. I apologize for this kind of tone, let's assume it was a bad day. > Now to clarify that specific point, devm purpose is to automatically > clean up the resources used by the device when it is torn down. > > However, in this specific case, it makes sense to dispose of the port > structure explicitly because this is a failure in registering an > individual port which doesn't lead to a failure of the entire driver. > > Thus not freeing it means the structure would remain allocated > uselessly until the whole driver is torn down. Yep, so, why do we care? If it holds few hundreds of bytes, can't we live with it? If no, the devm_k*alloc() is a wrong choice in the first place. >> - discuss with maintainer a design of enumerating ports > > I've been at that game for at least a good 2 decades. Maintainers > generally do *not* discuss design until a patch is proposed. I even > still try every now and then, maintainers are like lawyers, they don't > want to tell you what to do in case they still want to reject it after > seeing it later :-) I know I've been one of them for long enough. > > If you have specific issues with how this is done, please express them > clearly. It's quite possible that there's some better way to do what > Eddie is doing here, but without *construtive* feedback this is > pointless. It feels like you duplicate approach which is done in OF generic case. That is my concern. Though, if Wolfram is telling that is OK, I have no objections. > I'm disappointed here because we have an example of somebody rather new > producing what is overall pretty damn good code, That is true. His code much better than many I have seen before. > despite a few corner > issues, and being (again) treated like crap. Sorry for that, life is harsh. > This isn't the right way to operate, and I believe this has been made > clear many times before. Yes. -- With Best Regards, Andy Shevchenko