Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1556091ybh; Tue, 14 Jul 2020 00:33:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkCqYuvgAay+t6V1eFDbJXiZFkwK/X0MbkO4GSZa7FKf1esHuv5/IEvEr41dttl3i8VpYT X-Received: by 2002:a17:906:b2c8:: with SMTP id cf8mr3367566ejb.132.1594712017728; Tue, 14 Jul 2020 00:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594712017; cv=none; d=google.com; s=arc-20160816; b=DYPwZKBNANAExNM+imevfJ/BMsGr/U6qpV0kwc7r5ZOsP1pwI//1Wu/cR/79b3bdvK tTmwJXB8mFIgsKe+IKJNmfkgz/4UODM9heGAFRu7px3S9911SKph0oybQQGB5AdqI52A IZfmHRgEyiV5NC4g8YXXUURH/r0Orq7HAIMyAV7tDOVfNzduGVNzFbdVaYjFZr8HpcPo 6C4qyK4fN0xCmGIV+6iQE8B1GC2oVmnTrtKvFnJxkueySwOF4t6yrp0tWK40BAy7swwU Ch4K+sBupaKE8y8xi4eAt8pwZCEcXVT6i/GmWrX2UOh09vDLP0joYIoairxarPzGmyFq zLVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=iw0HeiMRpihqbVCSNrmwScv7BrswpTC0PE3gJ25M4go=; b=Z89gVP5meDLmmYsXyR6huJnuoSi1qUJBVVNtuqRIpbBuOb+zAqghEOdxwMN7z9FTZP PNyz9mPVQ6Q36j0+8zjKVAermZJgXZMeMu/9djPPuYnatGg4sdn2jLYpXG1PyvkgpSDs E5lUzyC8kpnzPq/q/M4ucws2y3biryHvJlpsoKn1vExgjV9iDAWXaGJIC1kkpr09PGZG M2/M3v7RWaQD1WFqV+7Dmm4LLi56zLzNZGTNQq+HCCbJ9izazgfNGjkXgTwk88IzFDJ3 Jc2KV/rI7IXtrjd4Jz+nIxI3UMc/zlCsqUA4DuAxaGDbaekUojIHr5AWfp47w9dUF13O VfxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hdBHGgcX; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si10071519ejp.600.2020.07.14.00.33.15; Tue, 14 Jul 2020 00:33: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=@samsung.com header.s=mail20170921 header.b=hdBHGgcX; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725945AbgGNHdA (ORCPT + 99 others); Tue, 14 Jul 2020 03:33:00 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:50367 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgGNHdA (ORCPT ); Tue, 14 Jul 2020 03:33:00 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200714073257euoutp027ec3214f28f842dfef32ac90cf9d9f3f~hjhgt1IxN2165921659euoutp02P for ; Tue, 14 Jul 2020 07:32:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200714073257euoutp027ec3214f28f842dfef32ac90cf9d9f3f~hjhgt1IxN2165921659euoutp02P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594711977; bh=iw0HeiMRpihqbVCSNrmwScv7BrswpTC0PE3gJ25M4go=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=hdBHGgcXcu7jb4Wd204Xe+ZFxIwLbr1u7/lX9MJOSUnRQGsdM1hfiJBGnVvYLI0Zo f+Iv4Yl0/PAJUoQRbSOoMTG/5/QmQIOqpOxgADG+5NOPeMmXKldgh3pwDbXUqrE0fJ cT7CycX997widcuVptxXk0sJJtLxwfIBDY5wLFdY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200714073257eucas1p21ef036b4a814be1f9b5147dac7013aa1~hjhgX_8AK1514215142eucas1p2E; Tue, 14 Jul 2020 07:32:57 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 24.8A.05997.9AF5D0F5; Tue, 14 Jul 2020 08:32:57 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200714073256eucas1p13ebe9585c29b766e48506400ba91a8ed~hjhgFvVYd2093720937eucas1p1m; Tue, 14 Jul 2020 07:32:56 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200714073256eusmtrp220c20a2722452484e6af4300f87aa0c8~hjhgFDwRJ2064020640eusmtrp2I; Tue, 14 Jul 2020 07:32:56 +0000 (GMT) X-AuditID: cbfec7f4-677ff7000000176d-01-5f0d5fa9f24a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2C.FC.06314.8AF5D0F5; Tue, 14 Jul 2020 08:32:56 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200714073256eusmtip2ff5b743b8bba026dd992b40f53351ec0~hjhfnSMES1117911179eusmtip2q; Tue, 14 Jul 2020 07:32:56 +0000 (GMT) Subject: Re: [PATCH v3 0/3] drivers: ide: use generic power management To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , bjorn@helgaas.com, Vaibhav Gupta , "David S. Miller" , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, linux-ide@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: <3b26bfff-7a42-7bbe-2050-51fe1ce96d4e@samsung.com> Date: Tue, 14 Jul 2020 09:32:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200713173613.2095-1-vaibhavgupta40@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBKsWRmVeSWpSXmKPExsWy7djPc7or43njDa62cVgsacqwaLx/kdFi zvkWFotXZ9ayWRzb8YjJouvxCxaLy7vmsFnsnb6M1WLHnU4miyV73rM6cHlsWXmTyWPnrLvs Hgs2lXpsO3SNxWPTqk42j/1z17B7/P4xmdHj8ya5AI4oLpuU1JzMstQifbsEroxbR9tYCw5K VFyZ+pq5gbFFqIuRk0NCwERi6qV5jF2MXBxCAisYJT5dWsYC4XxhlOh59hEq85lR4u+Wy+ww Ld1zrjJDJJYzStx52QBV9ZZR4ujmKWBVwgJuEmfW/WEBsUUEdCQuHZ3FBGIzC+xjkti01BXE ZhOwkpjYvooRxOYVsJPYv/AHWC+LgKrE353HmEFsUYEIiU8PDrNC1AhKnJz5BGwmp4CtxNS5 x9ggZopL3HoyH2q+vMT2t3PArpMQeMQu8WXHUiaIs10kOreeYIawhSVeHd8C9Y6MxP+dIM0g DeuA/ux4AdW9nVFi+e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zBa tx37uXkH46WNwYcYBTgYlXh4Jfx54oVYE8uKK3MPMUpwMCuJ8DqdPR0nxJuSWFmVWpQfX1Sa k1p8iNEU6LmJzFKiyfnARJJXEm9oamhuYWlobmxubGahJM7bIXAwRkggPbEkNTs1tSC1CKaP iYNTqoHRwnDzPIbH5vtKFALM2F6vctJa0XDI4u172SebLok+7vfXUdc+P8dibYCgqLXTlb8v J3zT+lXgrHQ05d0qn3IHzVjurnbP/yE76/knHdGqn/btqkGJRefMDZNEw6pcEp0/8T7j+uRd 7rKSKXf/l545/dUXNX3/10w01a3Y/b+CaelDuYsLyjqVWIozEg21mIuKEwGKiYcV7AIAAA== X-CMS-MailID: 20200714073256eucas1p13ebe9585c29b766e48506400ba91a8ed X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200714073256eucas1p13ebe9585c29b766e48506400ba91a8ed X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200714073256eucas1p13ebe9585c29b766e48506400ba91a8ed References: <20200713173613.2095-1-vaibhavgupta40@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 7/13/20 7:36 PM, Vaibhav Gupta wrote: > Linux Kernel Mentee: Remove Legacy Power Management. > > The purpose of this patch series is to remove legacy power management callbacks > from ide drivers. > > The suspend() and resume() callbacks operations are still invoking > pci_save/restore_state(), pci_set_power_state(), pci_enable/disable_state(), > etc. and handling the power management themselves, which is not recommended. > > The conversion requires the removal of the those function calls and change the > callback definition accordingly and make use of dev_pm_ops structure. IDE subsystem (drivers/ide/) is deprecated and has been superseded by libata subsystem (drivers/ata/). libata drivers have the same issue so please concentrate on fixing them first. Later (if desirable) changes can be back-ported to drivers/ide/. > All patches are compile-tested only. This patchset needs (at least) some basic testing. It should be easier with libata subsystem as it also support SATA controllers and devices. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > v3: > - Modpost error for undefined reference by Kbuild in v1. > - Another approach to disable PM in drivers/ide/triflex.c suggested by > Bjorn Helgaas in v2. > > Test tools: > - Compiler: gcc (GCC) 10.1.0 > - allmodconfig build: make -j$(nproc) W=1 all > > Vaibhav Gupta (3): > ide: use generic power management > ide: sc1200: use generic power management > ide: delkin_cb: use generic power management > > drivers/ide/aec62xx.c | 3 +-- > drivers/ide/alim15x3.c | 3 +-- > drivers/ide/amd74xx.c | 3 +-- > drivers/ide/atiixp.c | 3 +-- > drivers/ide/cmd64x.c | 3 +-- > drivers/ide/cs5520.c | 3 +-- > drivers/ide/cs5530.c | 3 +-- > drivers/ide/cs5535.c | 3 +-- > drivers/ide/cs5536.c | 3 +-- > drivers/ide/cy82c693.c | 3 +-- > drivers/ide/delkin_cb.c | 32 +++++--------------------- > drivers/ide/hpt366.c | 3 +-- > drivers/ide/ide-pci-generic.c | 3 +-- > drivers/ide/it8172.c | 3 +-- > drivers/ide/it8213.c | 3 +-- > drivers/ide/it821x.c | 3 +-- > drivers/ide/jmicron.c | 3 +-- > drivers/ide/ns87415.c | 3 +-- > drivers/ide/opti621.c | 3 +-- > drivers/ide/pdc202xx_new.c | 3 +-- > drivers/ide/pdc202xx_old.c | 3 +-- > drivers/ide/piix.c | 3 +-- > drivers/ide/sc1200.c | 43 ++++++++++++----------------------- > drivers/ide/serverworks.c | 3 +-- > drivers/ide/setup-pci.c | 29 +++++------------------ > drivers/ide/siimage.c | 3 +-- > drivers/ide/sis5513.c | 3 +-- > drivers/ide/sl82c105.c | 3 +-- > drivers/ide/slc90e66.c | 3 +-- > drivers/ide/triflex.c | 24 +++++++------------ > drivers/ide/via82cxxx.c | 3 +-- > include/linux/ide.h | 8 +------ > 32 files changed, 62 insertions(+), 155 deletions(-) >