Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966156AbcKLB6H (ORCPT ); Fri, 11 Nov 2016 20:58:07 -0500 Received: from lucky1.263xmail.com ([211.157.147.134]:55377 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966028AbcKLB6F (ORCPT ); Fri, 11 Nov 2016 20:58:05 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: rajatja@google.com X-SENDER-IP: 220.200.4.109 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: <31212827aa467d83da3073ff569699c8> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH] PCI: rockchip: correct the use of FTS mask To: Bjorn Helgaas , Brian Norris References: <1476832384-10215-1-git-send-email-briannorris@chromium.org> <20161111223007.GT9868@bhelgaas-glaptop.roam.corp.google.com> Cc: shawn.lin@rock-chips.com, Bjorn Helgaas , linux-kernel@vger.kernel.org, Brian Norris , Wenrui Li , Heiko Stuebner , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Rajat Jain From: Shawn Lin Message-ID: <8d1531a9-2754-07b5-ca7f-f99f5ec0dbad@rock-chips.com> Date: Sat, 12 Nov 2016 09:57:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161111223007.GT9868@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1782 Lines: 47 On 2016/11/12 6:30, Bjorn Helgaas wrote: > On Tue, Oct 18, 2016 at 04:13:04PM -0700, Brian Norris wrote: >> We're trying to mask out bits[23:8] while retaining [32:24, 7:0], but >> we're doing the inverse. That doesn't have too much effect, since we're >> setting all the [23:8] bits to 1, and the other bits are only relevant >> for modes we're currently not using. But we should get this right. >> >> Fixes: ca1989084054 ("PCI: rockchip: Fix wrong transmitted FTS count") >> Signed-off-by: Brian Norris > > I assume this is correct, but I'm waiting for an ack from Shawn. Thanks for catching this, and it was missing from my inbox somehow... Acked-by: Shawn Lin > >> --- >> drivers/pci/host/pcie-rockchip.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c >> index e0b22dab9b7a..5c2e3297a3ff 100644 >> --- a/drivers/pci/host/pcie-rockchip.c >> +++ b/drivers/pci/host/pcie-rockchip.c >> @@ -492,7 +492,7 @@ static int rockchip_pcie_init_port(struct rockchip_pcie *rockchip) >> >> /* Fix the transmitted FTS count desired to exit from L0s. */ >> status = rockchip_pcie_read(rockchip, PCIE_CORE_CTRL_PLC1); >> - status = (status & PCIE_CORE_CTRL_PLC1_FTS_MASK) | >> + status = (status & ~PCIE_CORE_CTRL_PLC1_FTS_MASK) | >> (PCIE_CORE_CTRL_PLC1_FTS_CNT << PCIE_CORE_CTRL_PLC1_FTS_SHIFT); >> rockchip_pcie_write(rockchip, status, PCIE_CORE_CTRL_PLC1); >> >> -- >> 2.8.0.rc3.226.g39d4020 >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Best Regards Shawn Lin