From patchwork Fri Apr 30 15:21:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 12233667 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C451C433B4 for ; Fri, 30 Apr 2021 15:24:05 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 818E5611ED for ; Fri, 30 Apr 2021 15:24:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 818E5611ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=g/8lXjz6cr5ZSXbJK+waQASllziD6tzUqrsVPIRWl4g=; b=h7GMteaFnSl5NoG7WXFj0ugSNu w1LRta/ovqf8+Ci8Te5E/YEHJUneqT7ndGmhWJgXbSejqFL90vzruvMjvdbOZzyHMZyAKWX0p/wks gYD+jeQ/6S6JhxPWCKSyxw9bDvnN9qj8OCwt8eEoWeI+a7FejU0eqnv4rq+OlbWAMI8onyBXrS1UV cedlww0lmBB3D9XxTGQ/TKKkrsfYXgqwHe1Y8qF65WVeNO85AogbBYAXMAx4XirFwAmIdkN5puh2V tidy+azLdNnbISs1WjEyijoqUP/euSsYCxHeyEZkMPPAPJVhjJKqA2J/L1j88l0Vwlm5UrFJaWWXR h8X9X6Ag==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lcUy5-0084yI-7A; Fri, 30 Apr 2021 15:22:13 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcUy2-0084y9-Na; Fri, 30 Apr 2021 15:22:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=poX0jQnUQhk/AWMVNFRISSgK6EmCwe0MNgMyHC82XII=; b=J0GCh3on8RYbclJSGe/Js4Rwbp 9v2NdTnrx3OAES640gyvSC8RS5b+7tZwk4xTngkN27bFduMq7fC7smgZwL8WYlh7HTis0POFU707Q GGyprhn80fWN5k/VWcZWW6hdKfejXzKAIM/iby2vZJUv1Y0K+o1EvmgBLjnKzKhGzzGotA0e3bkk0 /YxjroHb/lmUIqtNh86Z05LdSjWnM5Hbyu9HKjJ57pRZPPWdJO6tO0806Q8jQBqWZO8ab6SFH4RUJ 04SwGyG7imyvSeiK5e09IbBZki9GD01/nK34YNvACi1sKh50ZFGwg4IdvOrceg23/UQUzoAi0arTV JhPoT3BQ==; Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcUy0-001Tmg-4f; Fri, 30 Apr 2021 15:22:09 +0000 Received: by mail-pf1-x433.google.com with SMTP id m11so5538290pfc.11; Fri, 30 Apr 2021 08:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=poX0jQnUQhk/AWMVNFRISSgK6EmCwe0MNgMyHC82XII=; b=CCd2idsJSI0zZznIi6jQkuNv6NT2ZOGhkKAhxxT7RhkX1tohE6I049n5PvJhISot71 v7iuOgmfFQ0sOf/ekj41jebUFQAzBNgRgdwmQWQWhy9sgVyU6mlrtAAXMsMl/HcteIqx L7wGV1sZ77SH3rEd+d7peCrDcWfEiR2D0VE0Ou3k9AOK189dpfFWu8RjSIDE4CQ2Gy9q W9lArQBnmTBHg5Iak9VKk14CJhrXJv5OMEojdBMh78Vn/PB+V0u0qdeAME6zz6cNzBAc aw8Vq4c26N30p0sh7twWsXGCGSecTg+jOaUO/30aj3BwBaUa0ZIxve6uZQP+WFVwGqnS 6e1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=poX0jQnUQhk/AWMVNFRISSgK6EmCwe0MNgMyHC82XII=; b=JKmx1E3Ew3myHtNP8oIY8GgUl9hX0vt0RbpquaRCOJ0sR1kvy/td5Yk+G/XEWePCIb tBNqPxzf6WXVPsPjZJGm6daIqPqMPmJu3IpZgZD/NRoHrq3JUczZnWCarRvDF+PWkyZo xcwuQt+qv9ZqPwJpSqkvrIolFZWSZt3tEQx66tPJKjLRjc+3Api/qUuV9TDOqxaB1Jdd t4NTuWqxK97SaOTRpEuN+fNFKrl0sbpa2Bh9TQ+b8yap0NGcd3b0+7YWWTWaPAVzIf6B 8VR+wAQOwWXHEOdiH4/uALOghe13ZxBQXeWqi6C4ijM8RPoBgC7JLKhxa0fUMPlJXJwT XjPg== X-Gm-Message-State: AOAM5305WPyvFp8DgaaklzIig0VB72b/AKT2kzgMdAtMiRM+jP4tY8yz 2/eRW7iKCu6eiymCkYqFRO8= X-Google-Smtp-Source: ABdhPJy4bYpCylHtfAMkcEImKNWx/yD0v+z4IVFEl4ZrDL5pZFkYJrA6dzm5Varx6Sw69FWCyStT7g== X-Received: by 2002:a65:6855:: with SMTP id q21mr5223531pgt.131.1619796124576; Fri, 30 Apr 2021 08:22:04 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id q128sm2543034pfb.67.2021.04.30.08.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 08:22:03 -0700 (PDT) From: Jim Quinlan To: Bjorn Helgaas , Amjad Ouled-Ameur , Philipp Zabel , linux-pci@vger.kernel.org, Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com, jim2101024@gmail.com Cc: Florian Fainelli , Hans de Goede , Jens Axboe , Jim Quinlan , linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-ide@vger.kernel.org (open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)), linux-kernel@vger.kernel.org (open list), linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), Lorenzo Pieralisi , Rob Herring Subject: [PATCH v6 0/3] ata: ahci_brcm: Fix use of BCM7216 reset controller Date: Fri, 30 Apr 2021 11:21:53 -0400 Message-Id: <20210430152156.21162-1-jim2101024@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210430_082208_207499_1692C80F X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v6 -- Added new commit which adds a missing function to the reset API. This fixes 557acb3d2cd9 and should be destined for linux stable. v5 -- Improved (I hope) commit description (Bjorn). -- Rnamed error labels (Krzyszt). -- Fixed typos. v4 -- does not rely on a pending commit, unlike v3. v3 -- discard commit from v2; instead rely on the new function reset_control_rearm provided in a recent commit [1] applied to reset/next. -- New commit to correct pcie-brcmstb.c usage of a reset controller to use reset/rearm verses deassert/assert. v2 -- refactor rescal-reset driver to implement assert/deassert rather than reset because the reset call only fires once per lifetime and we need to reset after every resume from S2 or S3. -- Split the use of "ahci" and "rescal" controllers in separate fields to keep things simple. v1 -- original Jim Quinlan (3): reset: add missing empty function reset_control_rearm() ata: ahci_brcm: Fix use of BCM7216 reset controller PCI: brcmstb: Use reset/rearm instead of deassert/assert drivers/ata/ahci_brcm.c | 46 +++++++++++++-------------- drivers/pci/controller/pcie-brcmstb.c | 19 +++++++---- include/linux/reset.h | 5 +++ 3 files changed, 41 insertions(+), 29 deletions(-)