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: 1404112 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=Xr66UyJB; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4Cd7gw2Q5Wz9sSs for ; Sat, 21 Nov 2020 07:39:24 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730726AbgKTUir (ORCPT ); Fri, 20 Nov 2020 15:38:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731537AbgKTUir (ORCPT ); Fri, 20 Nov 2020 15:38:47 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E043C0613CF for ; Fri, 20 Nov 2020 12:38:47 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id q28so8317580pgk.1 for ; Fri, 20 Nov 2020 12:38:47 -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=jEfasRJIvgVS0P+tdXtNTnS+cAlHt6bJ5xoXaJUctnc=; b=Xr66UyJB82f/FbYw0uMSJWHrM3KQFqndK90gmFnucf8st++PywkaGu7OsWd2WxH0ON icBuM9jNCJ9yRbu2UaijrTP94mvvhhaOzvg9KBDOVeTtf87rYj5UqTRanmZg6ZiDLk6s hh302Vr9c0CABhd9v2i05UkNDUsmCdsc/Np4w= 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=jEfasRJIvgVS0P+tdXtNTnS+cAlHt6bJ5xoXaJUctnc=; b=AN3n/knySgdcd5JlmIV04KVEZ+ejc30BChD2iIih1+XcTVaXHR1XR18ZnD6ecHjmmF SA928HdO5euiPRenl466EEXfaKv+UupI5yvik9kLbxc4xrD9VJ3WW6vtZxg1ffX8N9jC c72O0ZpD+XgctxUlkaL5gdppY54/7h1V7Z87f0l4a42tBjdh96hTjcG2bIOKk032Nv0v v+2Ve9D+UROsVmnwYTjJJX3nQdJ+bNzMtZ/YUbs7g8ncfywa5muNO09kXDU5Bh9wMIAM kftBn6a4nezpcfJ87y6r7CvWZYhSBjbe4+LOXXqlHJvUNXHKB45GumqPOOdaYhe8jjAw 4U9g== X-Gm-Message-State: AOAM5315gwDLnRhcxijinopZZqKW3FfgT8vWAPX4LOgBduggh/ag11eJ mALp47pmOicwMeqGt5nZmUb6aw== 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 Cc: Florian Fainelli , 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-pci@vger.kernel.org (open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS), linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), Rob Herring 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 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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(-)