Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3378541pxv; Mon, 12 Jul 2021 16:11:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLXQlCFaKEDZ++qQRZ4+R7a9IbWI1E8k1cTYcKa8jAac0N1qBN1yZt6td++p1A6gKZSG1r X-Received: by 2002:a05:6402:448:: with SMTP id p8mr1542509edw.60.1626131497207; Mon, 12 Jul 2021 16:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626131497; cv=none; d=google.com; s=arc-20160816; b=q6Ywq5hdUUtpsQFVBcgKUVz6jCtxeSuT8ow1ckMAFWsCF5NiMrS6781XeJ/HGvfC0Y kJzV6GpNnWBNDFgN8rImOYB/28VTAudPgW8VRwZy5TeEb9kzzO1i2Wd3a1fWKmOrHHIz I13mo2AmBvYfc8NMIfWPx2nfmD+FlBR4od0owxh6tgfMY5uIOPRsDbERDM6FQRrimvHk caJ7Tnxuff4Yqw2w1V8ZNYmqBRy09xRs+pksZAQMIePvPR9pwpoZ5EfMW2yRtJrUEqq8 Ts+BDLt0LMWrnybVT5tX/AY07qcyWVGhDnjznGfHJo07iRx9Vohodg4aaj+JufpckAbw 183Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4pQlPWeYDasqT5HSwq98XRlnC0Bt0+1EaZmNOibXW04=; b=u9gduF56OHbPwKvC0U6Oc35OAcNcCyut6bdzkUme3QZ91WbcfXfWxOAdvld4MLcizn kTKPEIyE31Qu3Nx2hlWtF95EyJhX+Tg3iBcJ3ZrIcP+oukRbcmSi5btw33u8DImWPsAG 4Inx7kFaT0qTAF5IC6D9LRF/toYPUlK2ulTo1PyvtrLzYuMQjDXy098abaY1EQhUDJ9y y8PSOAxUlPAsB0vKf/hLkNnancWS9P74M+DRpVeZJwYPano8mGbCgPEL2eEdoTQlU6zI 64P7nkN5O+AIqFt76Eaa89//YFigRizgWp1pyZ30kYlJ7F/vbHMg1RvlrNncYeAfu13Z lNZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yw3FqYsR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si3609042ejj.48.2021.07.12.16.11.14; Mon, 12 Jul 2021 16:11:37 -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=@gmail.com header.s=20161025 header.b=Yw3FqYsR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233486AbhGLXKy (ORCPT + 99 others); Mon, 12 Jul 2021 19:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbhGLXKy (ORCPT ); Mon, 12 Jul 2021 19:10:54 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8562C0613DD; Mon, 12 Jul 2021 16:08:04 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id x16so9195448plg.3; Mon, 12 Jul 2021 16:08:04 -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=4pQlPWeYDasqT5HSwq98XRlnC0Bt0+1EaZmNOibXW04=; b=Yw3FqYsR8SI3j7U39sRckJQB5mg/EWKrrV5SEZSYye2fX8jrsH4vPluQayT/7/IhXr 6agWVqffEsFS1ZF2Df8T3XP4sAia8Z8f/53QpJOqsTVOkGrFgwfdFm6P7kLGFTRzMWfQ Il78xfjXKZcgDQzaI53AzPyy+vxsn8eD9UaOqGM7XSqUuu4VSYRFQv3QxeMi+N8CRS1A zpnztX//YHHq+8jAjdrqXr5sigfuIqTJRYVLvv+/5QO0i+rV952c1N5dmlQKn/dvdR78 PpOlpC08tSIn/J5civ1yvwKBRlRoUffVJvqKLfU0zlhVV4DFRGKUsfiD0gdr8W4YJSia NKVw== 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=4pQlPWeYDasqT5HSwq98XRlnC0Bt0+1EaZmNOibXW04=; b=CrIwWZUn0bqvDd8p/iGCievlNco4SeOiyVDfnDQ1CKKk7kxkXqoT3b88i8s1PjdDGw 4oIG+m39iW51/xwnKFwufD+IOM906R/VkqhHAQARYh38sI55kGq/67wm+H+G/tXipkGZ bqKDuvHXi0LGmIZsc3JGZPOh6cpeoGU6vYu6Y+25BAdBS7XeIwW0+bGh0e+o/zuF9+cp WMKrNnRNTXXjrMIl12Dtad2UjjebEluDhPcpTZBDJHSqGggH3+1zHY5AaKNmBrsP1wUc an/SeJHPf+XYHiW7KeGg5P70lj3LVVQlzL4syiPNaypCbtmRaaKFZ6ZZmMckEjI9+/MD H3Qw== X-Gm-Message-State: AOAM530NsmQ7yoc59OkwBe86hWkJwteQ5OleMDScoUXObGIouPeoeJF/ v9tnluOBbVi4U/xbR096U3fYMM/+JQqbc+X0G44= X-Received: by 2002:a17:90a:17ad:: with SMTP id q42mr16378709pja.181.1626131284145; Mon, 12 Jul 2021 16:08:04 -0700 (PDT) MIME-Version: 1.0 References: <20210712223631.GA1682719@bjorn-Precision-5520> In-Reply-To: <20210712223631.GA1682719@bjorn-Precision-5520> From: Andy Shevchenko Date: Tue, 13 Jul 2021 02:07: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 , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , "Rafael J. Wysocki" , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-pci Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 1:36 AM Bjorn Helgaas wrote: > On Mon, Jul 12, 2021 at 02:48:12PM +0300, Andy Shevchenko wrote: > > On Thu, Jul 08, 2021 at 04:47:06PM -0500, Bjorn Helgaas wrote: > > > On Thu, Apr 02, 2020 at 11:23:27PM +0300, Andy Shevchenko wrote: ... > > Datasheets are publicly available (at least one may google and find some > > information about those PCH chips). I have in possession the hardware for > > gpio-pch. I can easily test that part at least. > > If you have a URL for those datasheets, can you share it? I spent > some time looking but all I found was 1-2 page marketing brochures. It's a part of the so called EG20T PCH. It's part of in particular Intel Galileo (Quark SoC) and Intel Minnowboard (v1) (Atom E6xx SoC). Hence the easily found links: http://minnowboard.outof.biz/MinnowBoard.html https://www.elinux.org/Minnowboard:Minnow_Original https://en.wikipedia.org/wiki/List_of_Intel_Atom_microprocessors https://www.intel.com/content/www/us/en/embedded/products/quark/x1000/documentation.html?grouping=EMT_Content%20Type&sort=title:asc (Chapter 19) https://ark.intel.com/content/www/us/en/ark/products/codename/37567/products-formerly-tunnel-creek.html Hmm... Funny, the document #324211 can't be downloaded https://download.intel.com/embedded/chipsets/datasheet/324211.pdf I guess you may ping Intel and tell them that they should play nice when talking about "open hardware" (MinnowBoard initiative). Nevertheless, the (Old? #457798 is a specification update under NDA. Okay, it refers to rev 8, while Mouser, see below, provides rev 9) copy is available on other sites, such as https://www.mouser.tw/pdfdocs/Intel_Platform_Controller_Hub_EG20T_datasheet.pdf (Chapter 16) > > > that's not a trivial task, and I don't think that burden should fall > > > on anyone who wants to make any improvements to these drivers. > > > > > Another alternative would be to remove legacy PCI PM usage > > > (ioh_gpio_suspend() and ioh_gpio_resume()) from gpio-ml-ioh. That > > > would mean gpio-ml-ioh wouldn't support power management at all, which > > > isn't a good thing, but maybe it would be even more motivation to > > > unify it with gpio-pch (which has already been converted by > > > 226e6b866d74 ("gpio: pch: Convert to dev_pm_ops"))? > > > > With regard to (1) probably we may exceptionally accept the fix to > > gpio-ml-ioh, but I really prefer to do the much more _useful_ job on > > it by unifying the two. > > Should Vaibhav re-post this patch, or do you want to pull it from the > archives? I just checked and it still applies cleanly to v5.14-rc1. > > Here it is for reference: > https://lore.kernel.org/lkml/20200402155057.30667-1-vaibhavgupta40@gmail.com/ I'll take from the archives. > I'll post a couple small patches toward unifying them. They don't do > the whole job but they're baby steps. Thanks! I look forward to seeing them soon! -- With Best Regards, Andy Shevchenko