From patchwork Fri Nov 20 20:38:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 11922331 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=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,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 D1417C6379D for ; Fri, 20 Nov 2020 20:39:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 418E122201 for ; Fri, 20 Nov 2020 20:39:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WD6c0uub"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="EG4urNVw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 418E122201 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.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=merlin.20170209; h=Sender:Content-Type:MIME-Version: Cc:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Message-Id:Date:Subject:To:From:Reply-To:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=D7WSBmHep0HTGobAwe3XifIJyAxT7YNBNoW+v/1GpTs=; b=WD6c0uubSE36PTmhXxpDmDTMF0 41Sv7bXv+unIYtxxkybPozTG9S2Jv32wpO2lfksssMWDhLG4fOzELWX7cutkPk42oK0Kpm5cuTdM7 YT6ctu22xrAHmP8xmo51qxRdksSKJeSL0SNp9pOnaggyzvvfcAew2vAkfe39qWPuRf9zF5OJ98S9p Vwn2gTvFD/G3XcsnUeWW4hLW77kboy/ScYuPvhZ1iPSETwevKgN/KVYkkl+K5JDZJwzjwPgZc9lRR W1dghQe2o8zv1Tlo3CChVUot1NHbjMZ6xlFnQLS4zsaMoPLyuL+8teCxmRINZZFJydVXqB59WPCKT /v8BD6ZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgDBG-0003iW-B4; Fri, 20 Nov 2020 20:38:54 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kgDBD-0003hK-Hz for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2020 20:38:52 +0000 Received: by mail-pg1-x542.google.com with SMTP id 62so8286906pgg.12 for ; Fri, 20 Nov 2020 12:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=QQEEjvJnfNev0J7XABhq0nJuy5R78+2wkFk/m8v/x9M=; b=EG4urNVwK5drPrJ47Re77R6dhv7y1ObQNfdB1+dnkZOkxiBrbavGgq5KVScxiSLmje E9slnbWjoG/Ay41/GbML7kJfbn7v+eNkKDUVRBd7cw5sP7xHXjonXXK23EzztK5E/aqb CZ9qs4CukOrxBU7+iWF5873hdSsL3E4T1ST4k= 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=QQEEjvJnfNev0J7XABhq0nJuy5R78+2wkFk/m8v/x9M=; b=A+h53Q4Woee/HGmBxHHZpFCYcGiLAeJ7PwyfrwPY520SyipN+BlO9gK9pqd0rYS51E yd9eV1bNi5PV4cfAwvTdBYRICZUsCfkML0Z8cvChVVQlt7S9gXH2zrW0QwLN3xLMvqzd x7t9eGte5qvnd1ECOEanJrD1IFRGgB/nKmVZNplCDFWDcJqUwsqYafVWOnBnzks5aiyJ UoTBzb3TExeFWK30zxAoMp+NIdt5G6/yxvJ4m3EvqgS/no2+dlWXv372u4crtnuGctNo oKzgFp8yx1dAao6+hZEBw3O9e0TgX4MyyeD3k7QjL7TbhvJiGHScM0UWQjUSmqWLzWgm LYGA== X-Gm-Message-State: AOAM531sqXUTq2WXRqkYGbkE1yqaoe0qMks62em5xru6PfAirQvIggwH 0v6rF516pGKw07XnoIktqQFMoQ== X-Google-Smtp-Source: ABdhPJxZU//+FSBVvYvqK8K9Q4lfvShlOy9LHsWRVX8RU3poGc8UVYda1wO0lq2LvWXHcOprDFjucA== X-Received: by 2002:a62:d11b:0:b029:18b:b3e:95aa with SMTP id z27-20020a62d11b0000b029018b0b3e95aamr15125681pfg.3.1605904726735; Fri, 20 Nov 2020 12:38:46 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id gx24sm4838688pjb.38.2020.11.20.12.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 12:38:45 -0800 (PST) From: Jim Quinlan To: Philipp Zabel , Hans de Goede , Jens Axboe , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Subject: [PATCH v3 0/2] ata: ahci_brcm: Fix use of BCM7216 reset controller Date: Fri, 20 Nov 2020 15:38:37 -0500 Message-Id: <20201120203840.35139-1-james.quinlan@broadcom.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-20201120_153851_624305_4E3F434C X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Florian Fainelli , "open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS" , open list , "open list:LIBATA SUBSYSTEM Serial and Parallel ATA drivers" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v3 -- discard commit from v2; instead relay 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 [1] Applied commit "reset: make shared pulsed reset controls re-triggerable" found at git://git.pengutronix.de/git/pza/linux.git branch reset/shared-retrigger Jim Quinlan (2): 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 +++++++---- 2 files changed, 36 insertions(+), 29 deletions(-)