Received: by 10.213.65.68 with SMTP id h4csp1932491imn; Thu, 5 Apr 2018 06:20:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx49P9otdLE8tzk2MDMuj+02WQHC7/Kgu0NQRMa7xu6AVeGHPnPYffZolZwydG+/SqHjapXMQ X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr23482551plj.390.1522934411700; Thu, 05 Apr 2018 06:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522934411; cv=none; d=google.com; s=arc-20160816; b=KmP6tn9IGjIE5WDw4CHAZHjw3E4YATQOKAsWuVO5mSX1734RpfDxVMjBvRZxFJ0CdK f2HvkIh8F3VdOeY8XUxvD99bQWGiInbfJBaq6GF76eR9AT2OL79oTqjsLQvrdkej1S2J 6dadUGoyhBgDltFAe0QOpBVhNVe7cj3Q1z1kVgvlwouADV4xr3+Csfoc9mjnAFgkoKD6 hk+DjxnMSl0BdYOGJyZoaqDr+IUI413muvR778b9iDndGvoVkTDkv83OQzhpCEksqv5d CS6SYTTlIULO+ZiNE8irLT+JwegTlck/dqlmU2DAztkMFAe6fTM3tA8HMESu2HEhxgc+ VQIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:arc-authentication-results; bh=fDWgeI4qebmIHTrQY6QwfQFZB6U68ki5q/6BrgBeoWw=; b=NdSV2LxT+KJpw6PVUhlkYfyj8MYaOfNwAjbQpNk0+YLsd6WwIumJtBkYNgDjKZ5AfV KqUkdcRmYEeGJf7T7yBXtmoGBvYWybDjNRLqxttldRm5WSfPnA+lUY24XmASLjHwA56H Vzb0mby/gjgnaDJpEevbhjQN39rnAW7EZ24vWi2jdF+e7JOFqpyHAaGfHL+Y5yWcNLrm S9PujdYesBYCtV/AXAY5LvEMlVFRodWd4u9ywjgYItn1oZ97DV9JgiJAsTY+NLkr0Q4n MmGHXVOanJNkj9hvTHydwhq4/xFHC9hLeNIfB+pWCBhmlMfynVsNgatvTEL3rOLQEn0d v9Wg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si6034644pfa.140.2018.04.05.06.19.57; Thu, 05 Apr 2018 06:20:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852AbeDENSW convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Apr 2018 09:18:22 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:7157 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751278AbeDENST (ORCPT ); Thu, 5 Apr 2018 09:18:19 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w35D9iwD000317; Thu, 5 Apr 2018 15:17:47 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2h1ysxga5g-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 05 Apr 2018 15:17:47 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B513A38; Thu, 5 Apr 2018 13:17:46 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 74CCD15C5; Thu, 5 Apr 2018 13:17:46 +0000 (GMT) Received: from SFHDAG6NODE3.st.com (10.75.127.18) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 5 Apr 2018 15:17:45 +0200 Received: from SFHDAG6NODE3.st.com ([fe80::d04:5337:ab17:b6f6]) by SFHDAG6NODE3.st.com ([fe80::d04:5337:ab17:b6f6%20]) with mapi id 15.00.1347.000; Thu, 5 Apr 2018 15:17:45 +0200 From: Patrice CHOTARD To: Thierry Reding , Kunihiko Hayashi , Tejun Heo , Matthias Brugger CC: Hans de Goede , Rob Herring , Mark Rutland , "linux-ide@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" Subject: Re: [PATCH] ata: ahci-platform: add reset control support Thread-Topic: [PATCH] ata: ahci-platform: add reset control support Thread-Index: AQHTzMQZUjD7lVbUeEu8qjF8anGqFaPyBeiA Date: Thu, 5 Apr 2018 13:17:45 +0000 Message-ID: References: <1521768653-11824-1-git-send-email-hayashi.kunihiko@socionext.com> <20180405095429.GA7506@ulmo> In-Reply-To: <20180405095429.GA7506@ulmo> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.49] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-04-05_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thierry On 04/05/2018 11:54 AM, Thierry Reding wrote: > On Fri, Mar 23, 2018 at 10:30:53AM +0900, Kunihiko Hayashi wrote: >> Add support to get and control a list of resets for the device >> as optional and shared. These resets must be kept de-asserted until >> the device is enabled. >> >> This is specified as shared because some SoCs like UniPhier series >> have common reset controls with all ahci controller instances. >> >> Signed-off-by: Kunihiko Hayashi >> --- >> .../devicetree/bindings/ata/ahci-platform.txt | 1 + >> drivers/ata/ahci.h | 1 + >> drivers/ata/libahci_platform.c | 24 +++++++++++++++++++--- >> 3 files changed, 23 insertions(+), 3 deletions(-) > > This causes a regression on Tegra because we explicitly request the > resets after the call to ahci_platform_get_resources(). I confirm, we got exactly the same behavior on STi platform. > > From a quick look, ahci_mtk and ahci_st are in the same boat, adding the > corresponding maintainers to Cc. > > Patrice, Matthias: does SATA still work for you after this patch? This > has been in linux-next since next-20180327. SATA is still working after this patch, but a kernel warning is triggered due to the fact that resets are both requested by libahci_platform and by ahci_st driver. Patrice > > Given how this is one of the more hardware-specific bits, perhaps a > better way to do this is to move reset handling into a Uniphier driver > much like Tegra, Mediatek and ST? > > That said, I don't see SATA support for any of the Socionext hardware > either in the DT bindings or drivers/ata, so perhaps it'd be best to > back this out again until we have something that's more well tested? > > Thierry >