Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2123971ybb; Thu, 2 Apr 2020 13:38:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKohz2iVNFuwxDL2+0MGngLZFDSwma1vB/ePQ9hb0hqi05gZaQFEuIDLCzj+XLEbRDFWo8s X-Received: by 2002:a9d:6452:: with SMTP id m18mr3875811otl.51.1585859884977; Thu, 02 Apr 2020 13:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585859884; cv=none; d=google.com; s=arc-20160816; b=pKRMdN+2/vpSsWEkrLT7A+BQr24E9SPdSUrN7Qan9r9OjOlJtge3Z8XIDgmSZPaC0b CE/mPKmIv5pAcy08SqKkGiVFbt6cfMDwyazU5zCPduFXS27NpTAr6e1ka/I5EaLalq2H 5l788MB5+mzZLFHr7zFMT8pxRVvkNDH9m8w5l4n80p+yAwUlZjYkjCccjusZS5OEGXg7 Upm66CRi2hhcaer3dSHAtfgh1746ApeJ0q0eiao7lmZPPykEUg89klLzbRCMnuImkdEM dAp/l/fCoTCvbiOSFsTRaTUGHMe1NruN8qk1W8TC3IbvpLCpj7s9eJzuEzxr11E3mLFS KuVQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=TyQdsQSbBekp4Tdk1LegDdgAtaR9xk0x84j7nnBO4Kw=; b=zBWiKP3rtL92K10pPRrxOPW1Kf6vbdYd+JJI9z30mmxTYiVS9CvnQOksmViNBp7QkZ rnxjncKN3LeAgGrZzKMl6DFKz3uFSiWeo7gycsf0/mSn1El3yxTDtEmkFEsiQ0chTJHu JUvq6DgFbxf/ceEXVT5X32/x/Yb3PWUCDEW5CP/IeTUNnCmu9IGUprV4bOVZ9TUC7ICn /dH49AAiR3g0YU+f+3NpRyQUf0T6VawIjCk6IfRWIEsgAOLPEER6lciz/P5esCaeIX0Z 9GvNxKLMB0UoOyLFJpPKbq2n5cJGdpkfu1qPE0j1MiOB6lZd04OJLaGsN9oK2S00QIZ7 zfYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XgwsxnSt; 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 r5si2646283otp.241.2020.04.02.13.37.52; Thu, 02 Apr 2020 13:38:04 -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=XgwsxnSt; 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 S2389627AbgDBUXl (ORCPT + 99 others); Thu, 2 Apr 2020 16:23:41 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:39762 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389589AbgDBUXl (ORCPT ); Thu, 2 Apr 2020 16:23:41 -0400 Received: by mail-pl1-f193.google.com with SMTP id k18so1776506pll.6; Thu, 02 Apr 2020 13:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TyQdsQSbBekp4Tdk1LegDdgAtaR9xk0x84j7nnBO4Kw=; b=XgwsxnStrGVZljq9SxBCE9sZD3SzpuVDfCZcZGyeTerRmyBZ7Ye3fIj1J6qq1DnDme cKLLxHm5g/RCFeHqs1PZ7aFVrG+CqT2Hbi2w4hB68Xhmb09P3zzs1FQuNOqOpaBbZ48X xm4BhkUdu1MNzujbKWsFIUUjyGEBgYA+jlt6tOxXV32nisrkGJmkaWTYM0ZQbMwzuJng BzZyTcY/SQgBojOF259ApOWdN1W0gaRfieuvMOaAy/XLrIk4sJZoOmhypzdHDhsXCWek 1jhxQVYy8pcGGNBvdXjmdJXSSRbXxSxGy3uG1+XLINRjnSOV7wZyJikpJ9T9Cp33gEm0 +59w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TyQdsQSbBekp4Tdk1LegDdgAtaR9xk0x84j7nnBO4Kw=; b=YIolSg5gzClcunkUoxKIdddVQOVIFzsIwdgZmOtpzF1rvad5DVsr9LdF5Sm1BERqGO QOT1q3cPT2y2rpjeEJM+S75Bo1QRjmcswMn7InU1cBJUkR9SrbLn9CGJNt85J8v/0NFW hTQDUelpz/rNGkeeh4sl05TO2X5QwKUsINbk8WzFXjHJ+08WXa1VHSohhStcCNsomJQc 82snOG0Amk4maT7YsrmSwgoFJoG2/WxSggveb/Gy4y3/sDgsGV/55DGA+oeMGu0Y2qLw yBsJGUH8eRlx56NI0fqI3NzcyLEvz6mRQ0j34u2qoox/wWnewHNsyC960A2bx5akxnPM Eu1w== X-Gm-Message-State: AGi0PuZ/3BvyH1eNRNCWyt9uY8R/NSP4HIg3jx0x5k6tW3AwMYQoUrfy zrUmKeWKubetqI38AkPo5rh04kTnGv+Fme7mX2w= X-Received: by 2002:a17:902:5acb:: with SMTP id g11mr4727427plm.18.1585859019364; Thu, 02 Apr 2020 13:23:39 -0700 (PDT) MIME-Version: 1.0 References: <20200402201605.GA74927@google.com> In-Reply-To: <20200402201605.GA74927@google.com> From: Andy Shevchenko Date: Thu, 2 Apr 2020 23:23:27 +0300 Message-ID: Subject: Re: [Linux-kernel-mentees] [PATCH v1] gpio: ml: ioh: Convert to dev_pm_ops To: Bjorn Helgaas Cc: Vaibhav Gupta , linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan , bjorn@helgaas.com, andy@kernel.org, Linus Walleij , Bartosz Golaszewski , "Rafael J. Wysocki" , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List 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, Apr 2, 2020 at 11:16 PM Bjorn Helgaas wrote: > > On Thu, Apr 02, 2020 at 09:33:46PM +0300, Andy Shevchenko wrote: > > On Thu, Apr 2, 2020 at 6:52 PM Vaibhav Gupta wrote: > > > > > > Convert the legacy callback .suspend() and .resume() > > > to the generic ones. > > > > Thank you for the patch. > > > > Rather then doing this I think the best approach is to unify gpio-pch > > and gpio-ml-ioh together. > > Under umbrella of the task, the clean ups like above are highly appreciated. > > I'd be all in favor of that, but what Vaibhav is working toward is > eliminating use of legacy PM in PCI drivers. I think unifying drivers > is really out of scope for that project. > > If you'd rather leave gpio-ml-ioh.c alone for now, I suggest that > Vaibhav move on to other PCI drivers that use legacy PM. If we > convert all the others away from legacy PM and gpio-ml-ioh.c is the > only one remaining, then I guess we can revisit this :) Then skip this driver for good. > Or, maybe converting gpio-ml-ioh.c now, along the lines of > 226e6b866d74 ("gpio: pch: Convert to dev_pm_ops"), would be one small > step towards the eventual unification, by making gpio-pch and > gpio-ml-ioh a little more similar. I think it will delay the real work here (very old code motivates better to get rid of it then semi-fixed one). Thank you for your understanding. -- With Best Regards, Andy Shevchenko