Message ID | 1395768375-21123-2-git-send-email-b.zolnierkie@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <davinci-linux-open-source-bounces@linux.davincidsp.com> X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D37C9F2B6 for <patchwork-davinci@patchwork.kernel.org>; Tue, 25 Mar 2014 17:28:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF993201EC for <patchwork-davinci@patchwork.kernel.org>; Tue, 25 Mar 2014 17:28:01 +0000 (UTC) Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A250520172 for <patchwork-davinci@patchwork.kernel.org>; Tue, 25 Mar 2014 17:28:00 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2PHQrMt005327; Tue, 25 Mar 2014 12:26:54 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2PHQkBk008308; Tue, 25 Mar 2014 12:26:53 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 25 Mar 2014 12:26:48 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2PHQl2I002962; Tue, 25 Mar 2014 12:26:47 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 85ADB8062B; Tue, 25 Mar 2014 11:26:46 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflxv17.itg.ti.com (dflxv17.itg.ti.com [128.247.5.93]) by linux.omap.com (Postfix) with ESMTP id DB3C680626 for <davinci-linux-open-source@linux.davincidsp.com>; Tue, 25 Mar 2014 11:26:43 -0600 (CST) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflxv17.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2PHQhDA019387 for <davinci-linux-open-source@linux.davincidsp.com>; Tue, 25 Mar 2014 12:26:43 -0500 Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2PHQhpp000606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <davinci-linux-open-source@linux.davincidsp.com>; Tue, 25 Mar 2014 12:26:43 -0500 Received: from [216.82.253.163:42145] by server-16.bemta-7.messagelabs.com id 9F/BF-27701-35CB1335; Tue, 25 Mar 2014 17:26:43 +0000 X-Env-Sender: b.zolnierkie@samsung.com X-Msg-Ref: server-6.tower-166.messagelabs.com!1395768401!11950095!1 X-Originating-IP: [203.254.224.33] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjAzLjI1NC4yMjQuMzMgPT4gMzY3NDY5\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23294 invoked from network); 25 Mar 2014 17:26:42 -0000 Received: from mailout3.samsung.com (HELO mailout3.samsung.com) (203.254.224.33) by server-6.tower-166.messagelabs.com with DES-CBC3-SHA encrypted SMTP; 25 Mar 2014 17:26:42 -0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3000MKT5SGAY80@mailout3.samsung.com> for davinci-linux-open-source@linux.davincidsp.com; Wed, 26 Mar 2014 02:26:40 +0900 (KST) X-AuditID: cbfee61a-b7fb26d00000724f-6b-5331bc50a659 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 9F.62.29263.05CB1335; Wed, 26 Mar 2014 02:26:40 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3000CBN5S1SZA0@mmp1.samsung.com>; Wed, 26 Mar 2014 02:26:40 +0900 (KST) From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> To: Tejun Heo <tj@kernel.org> Subject: [PATCH v3 1/4] ata: ahci_platform: fix ahci_platform_data->suspend method handling Date: Tue, 25 Mar 2014 18:26:12 +0100 Message-ID: <1395768375-21123-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395768375-21123-1-git-send-email-b.zolnierkie@samsung.com> References: <1395768375-21123-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t9jAd2APYbBBg9fKFlsnLGe1eLcrQZW izfHpzNZ3FnBbLHp8TVWi2M7HjFZXN41h81if+8GJouG7h52izkzNrNa/Fp+lNFi5cW/zA48 Htdf/Wfy2DnrLrvHplWdbB5zpjWxeJy8cJLFY/OSeo/3+66yefRtWcXo8fTHXmaP4ze2M3l8 3iQXwB3FZZOSmpNZllqkb5fAlbFpRhdrwTauip4tQg2M5zm6GDk5JARMJO4cOMECYYtJXLi3 nq2LkYtDSGARo0TbhH5WCKeLSeL+mz52kCo2ASuJie2rGEFsEQFZiSvTHjKCFDELdDFLLJm9 BSwhLBArcaj5ACuIzSKgKrH32Q4mEJtXwEPi2betTBDrFCW6n01gA7E5BTwlDn66CLZACKhm 5YK5TBMYeRcwMqxiFE0tSC4oTkrPNdQrTswtLs1L10vOz93ECA7gZ1I7GFc2WBxiFOBgVOLh nTDBMFiINbGsuDL3EKMEB7OSCK/CBqAQb0piZVVqUX58UWlOavEhRmkOFiVx3gOt1oFCAumJ JanZqakFqUUwWSYOTqkGxoVPInMjvWt8oo/f1lrosWYLj7pR3cbo29+Ned7c/nAmIbbgxpsJ 4add1G1UZrz6HSGbfnHvsy8GehF9Sc362U9sGsslGquKaxmPSmUbmMjs+cTv8qfk4oyit6Hm nOsz045wBkTsfD91v7Dxg/zorvee5wK39Oh6/Hv+f6bF1y8PcgO01HUclViKMxINtZiLihMB dyK3bFwCAAA= CC: <davinci-linux-open-source@linux.davincidsp.com>, <linux-ide@vger.kernel.org>, Kevin Hilman <khilman@deeprootsystems.com>, Shiraz Hashim <shiraz.hashim@st.com>, <spear-devel@list.st.com>, <linux-kernel@vger.kernel.org>, Hans de Goede <hdegoede@redhat.com>, <b.zolnierkie@samsung.com>, Viresh Kumar <viresh.linux@gmail.com>, <linux-arm-kernel@lists.infradead.org> X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: <davinci-linux-open-source.linux.davincidsp.com> List-Unsubscribe: <http://linux.davincidsp.com/mailman/options/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=unsubscribe> List-Archive: <http://linux.davincidsp.com/pipermail/davinci-linux-open-source> List-Post: <mailto:davinci-linux-open-source@linux.davincidsp.com> List-Help: <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=help> List-Subscribe: <http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: <davinci-linux-open-source-bounces@linux.davincidsp.com> Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 70fbf66..7bd6adf 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -521,12 +521,19 @@ int ahci_platform_suspend(struct device *dev) if (rc) return rc; - if (pdata && pdata->suspend) - return pdata->suspend(dev); + if (pdata && pdata->suspend) { + rc = pdata->suspend(dev); + if (rc) + goto resume_host; + } ahci_platform_disable_resources(hpriv); return 0; + +resume_host: + ahci_platform_resume_host(dev); + return rc; } EXPORT_SYMBOL_GPL(ahci_platform_suspend);