Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp758778rdb; Thu, 15 Feb 2024 14:53:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUU9gOvWCw9OhY03PYGBbP+PdmuHAy8zk28Xult1GeI9zi/DVuM+P5EbF1L1gnj+fvXvFrsHsRbTrlkspHNjMP2Cv86WEp42zV/ZK+vA== X-Google-Smtp-Source: AGHT+IFG/oUl+SHFiqkPa/jNsbHYHUx5x3L8im50K7JyN5g/dsqiZoKu8CG7WCHUXaqp5mbf5cn1 X-Received: by 2002:a17:90b:1094:b0:299:1c53:113f with SMTP id gj20-20020a17090b109400b002991c53113fmr2558799pjb.0.1708037618572; Thu, 15 Feb 2024 14:53:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708037618; cv=pass; d=google.com; s=arc-20160816; b=BLGre0NViV8tRhW7Oy6RbYydEUzM8SLzmUd6eCfRM44GgAxoiLcXRLNZANAu+3DlG+ jnFPbLWjpiKtlcX/ESH5ZZ7FfyQqcL9Jq01aAb5eYOJ6UGF8AZa2N0NJc4JYjesIflol FnN092IsbDAbKeiDeN9uoX8IxvtEtEysPl6WFgHpelv/jLR026v2yhdebHIdZZ5QIxNP hV8Y5a63mNeGR/RQVpj3vsLzb9BXuxehJgOYENohwf9UIbtESHXvID5M2G9SW9mipGkC RnWl23mmW0oD6T/ptl5wg3LByaTrOExZ5X8royowAEtV7rrN6BUILyyt7S1tAsdaDkNy UYjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=G7e+WY0NAWh1jtNNv354stzLFm0mYo1yPyphGdW3C00=; fh=LQ6uR0KPJS+AL3Sh83ntMoB3q5tKs1oZsTjUg0pZCnU=; b=n7atXV2rviphmEly6YB6UWLeP8GbqIl3aO6PD1t30rqjH4MgAuOjHoZiNecIst9DfE ZNx6stEcKy7+UZnS1Qkq5e6UV22K04k92sGofkmhoVOxdDP2C8Ucz8pnDZ6S7d8wOYF/ yLXRwgXjD1ceEtYjQ9bD9r95gsCDMQcSknC5kbjXicPbYzZ8Sq45I6Zj1LQ4/6EOSEeP JWwseCItp3qr+DfDU/cbWLpUSquA7Br04wsmbu2ZNFZRPnj2YN/58i2w5a03xLdphZv+ eLdHRX4yzRf5JWd0FCns4nGT3Anr1x5F23VlpbbmYLaT04V1x1HxzaKLLiLy16w/GQy2 Dn9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lA4Jb1iX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w189-20020a6382c6000000b005cdf9c9b7e3si1859458pgd.179.2024.02.15.14.53.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 14:53:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lA4Jb1iX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67782-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D6B12B219BF for ; Thu, 15 Feb 2024 22:45:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8160B1419A9; Thu, 15 Feb 2024 22:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lA4Jb1iX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E23813AA3F; Thu, 15 Feb 2024 22:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037114; cv=none; b=J1r1IINnL3G9d4b4USuwq53hF+m39GDWPF2mtCRiKwK9XWZm1NB9DpJZgebtavJigdVZ+EJMfh411Jwk/2ZQ7uzqlQ3b8bJYMF81HBD0I6XslbiN+V9EUziP8ygZwytKlweqiOmmYgKsmvzUh2AZ2TPoQFAItlHFAcIlMV+44mw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708037114; c=relaxed/simple; bh=L76Sg0D6O8zeR7pfF8vTouMZ0eSszIjsF07eYosEf6k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=j+hCQDhJXoRpKK4BbZF2DpDbsW+Dke5Jd49Asy3Q1K9c7LYwuGx72VJyBVt4ahP4In2PWfoR9uqh2FcHAGKbRnFd6328xqgcqZq2Rb5Z2vwva/guhFJsODQiFTXHLhlMOKJ35yOvo+loeBNwSEl26igXp49fon8pknstoNDLPf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lA4Jb1iX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 293FAC433F1; Thu, 15 Feb 2024 22:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708037114; bh=L76Sg0D6O8zeR7pfF8vTouMZ0eSszIjsF07eYosEf6k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lA4Jb1iXhKL08Bf1XFoqRi8T42e8irvjslvPN6NkiJTTg51Buf3Xif+58Pumhaf9T l3aypLUahg9+/WUiRERb6EoTr/R7qkBdUhY3dGml8eUNTT0P9z15OfbgTNmNdZTbkO ukdK1KyBFjiOHiE3HQ6Z+35+Fz/XeI6pBsAt24PvTpFpS+oYXolrZiVlpEvznxVqGs 8OrIjt6DxnGzB2l6GS5uRWCqBhddgJqEXSJE58uX4oZetCw+F6hVrzU7cF2G3Vn6DQ Jjd8QOR8SMTo1pX+eHT3G4UysDyZHVO4HrI+T1hPUj5zzJdttJ+YZ0mIASm8sqYcNR 9WQ4tqOOn/wDA== Message-ID: <0b57d422-6b7f-43e2-8068-8ebae15dd1bc@kernel.org> Date: Fri, 16 Feb 2024 07:45:11 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] ata: ahci_ceva: fix error handling for Xilinx GT PHY support Content-Language: en-US To: Radhey Shyam Pandey , cassel@kernel.org, p.zabel@pengutronix.de, axboe@kernel.dk, michal.simek@amd.com Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <1708020060-1439879-1-git-send-email-radhey.shyam.pandey@amd.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <1708020060-1439879-1-git-send-email-radhey.shyam.pandey@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/16/24 03:01, Radhey Shyam Pandey wrote: > Platform clock and phy error resources are not cleaned up in Xilinx GT PHY > error path. > > To fix it create a wrapper ceva_ahci_platform_enable_resources() API which create a wrapper ceva_ahci_platform_enable_resources() API -> introduce the function ceva_ahci_platform_enable_resources() > is a customized version of ahci_platform_enable_resources() and inline with > SATA IP programming sequence it does: > > - Assert SATA reset > - Program PS GTR phy > - Bring SATA by de-asserting the reset > - Wait for GT lane PLL to be locked > > It switches to ceva_ahci_platform_enable_resources() in resume path > as same SATA programming sequence (as in probe) should be followed. What is "It" ? > It also cleanup mix usage of ahci_platform_enable_resources() and custom > implementation in probe function as both are not required. Same here, but may be "It" == "this commit" ? If that is the case, then simply rewrite your sentences simply like: ceva_ahci_platform_enable_resources() is also used in the resume path as the same SATA programming sequence (as in probe) should be followed. Also cleanup the mixed usage of ahci_platform_enable_resources() and custom implementation in the probe function as both are not required. > Fixes: 9a9d3abe24bb ("ata: ahci: ceva: Update the driver to support xilinx GT phy") > Signed-off-by: Radhey Shyam Pandey Other than these nits, this looks OK to me. Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research