Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2123506ybb; Thu, 2 Apr 2020 13:37:31 -0700 (PDT) X-Google-Smtp-Source: APiQypJITgbcYkxBj2nlpGj7XMsZ0hetAl0eawzLb8RBFNA1Qh9t5/DphjpFBqfa7xufgvmBx6L1 X-Received: by 2002:a05:6830:16d1:: with SMTP id l17mr4031113otr.363.1585859851262; Thu, 02 Apr 2020 13:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585859851; cv=none; d=google.com; s=arc-20160816; b=xYdyYL22j5bVLk8tNgpl/tbi2CNfa16pF1bPq58mMHd7obLoOV+qDZVDqJXYNz1P73 o+BDuPgxffCcA+vZ+OTKLuIAODkLZPuo9zBArhEMpBXyo6HLnketTFqNHSGbAWZwgnSp WgAzpnGmEgt92Vb3F0AknyQ0hcn3s+ho92noOdrZTi2w+/C2Gk3qBe+0/yne5ePNt26q Lx0/YBOxAITKU/PX6tt3RdojSAREXcSn4XuZECf5mRSKkY2DncZTG52XhX2FW9tQfjGc 4vzzHCuEkHn7XNKyBG+S5Hpcf1NPSTfFaKl45g40F+JiboimHYucTteUzTLBnB5X28pJ YUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=mCw/cPE3Cj6SA79DQlnAUExaZJjemtXyvQJaY67TIcg=; b=yClMAFdVZ7fLkkeznBvyYXc03ekp3Dfh17shQGv/FnWNpvuVF6RMlL9LKQz7QehaSX k9gq5SV8O+Z/IdYeyQ727fpMwnsqp6kNZypUtrr4fVVuyA3KRUdLtJQiJhDnhQNOQ723 J4poUdiBLKgkILjaDUFNlF+uHfbWd6GM12OWQgG7KkBRnpHoAjmOAk2YXEw31cqOTMpd QVznFXzIkXss+h2xBpPsQu89pQpzDw247TBW5rVtQZomT1Y7JVqqa5PY9xPlQd8wQ5KR vGc8+FWOtoUr4g3FroXNjpiaJSfI8rXQvn/Fz2oXUKYdo5yXVS7ZXS8qr59m1FRt8Ohd vfrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="y/f3RgNV"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si2555417otq.235.2020.04.02.13.37.18; Thu, 02 Apr 2020 13:37:31 -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=@kernel.org header.s=default header.b="y/f3RgNV"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389188AbgDBUQJ (ORCPT + 99 others); Thu, 2 Apr 2020 16:16:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:34642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730837AbgDBUQI (ORCPT ); Thu, 2 Apr 2020 16:16:08 -0400 Received: from localhost (mobile-166-170-223-166.mycingular.net [166.170.223.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CFB8420678; Thu, 2 Apr 2020 20:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585858568; bh=vRDaO7ScVc229V31QF7SuQbcUJkQRXGo5xDwf7t6Rgo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=y/f3RgNVI6crhzIS7qSj1VQ++zuo/g/C8ZdK9hF7pR0IU0jJtMEtdm+iKaoFo8TVI hxkeqpP35YRS7gjYGEzUSvUKAeP5jnWTnmjigNd5LXNnrNlypIcYcM0Qxl5VBL4XG8 cmnEakssPXoj0UZVVybmIhuSyxDWzj7fOPDDxCPc= Date: Thu, 2 Apr 2020 15:16:05 -0500 From: Bjorn Helgaas To: Andy Shevchenko 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 Subject: Re: [Linux-kernel-mentees] [PATCH v1] gpio: ml: ioh: Convert to dev_pm_ops Message-ID: <20200402201605.GA74927@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :) 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. Bjorn