Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2020652pxb; Mon, 8 Mar 2021 11:55:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJywokuebSxibXmn4DJxxQSuAAKyfDIWi9O5xuLPX5KFky+BHBYBl7bKk3uo35O2fkQe2Ql9 X-Received: by 2002:a05:6402:2d0:: with SMTP id b16mr262869edx.194.1615233304034; Mon, 08 Mar 2021 11:55:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615233304; cv=none; d=google.com; s=arc-20160816; b=0M7xIfXLIfDXfboIV3MJjlvx/gi567/TquPgqzNRITGYlBeGg34HscNDTROhqTFDDa TsUOfg5rIPiev0iqzBDp3/DYrV5rcndLUferciMOVGDrm+igiVf9ViZbfxv9c8tYO1W5 uIo42JHaNqpBa7mTlJrkxkHe5HleHUCyC/5JjMX5J2v8NzLLP7QTxKXZiwkbqqYEmNnN Wp94OYp4hLv4SU5Q2AG6htQpMVqsxtWYuRKfsLSwJRMoYAAMLaFIzeiDI1iiu6Dm4VaP AP2pds2t1QjPR7sx9lXWZgUCjcn4LFS5NCiJl3kjet0VRJe6Jph7Vnz358rjDcT1O6P/ EC/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=bY74PhrcbsYLS+QDyU3MBxV+McRj9LMSdo3Kk9RWRkg=; b=Ii7H0a9G2uKfhZdHM1+MjrUb1s90ruWOUjJOXzNB2bly9r5tKDnCnDs5H7aWblGQdP pBSk710K3MN+nc3eTJvjMKLJkALoacalPtrqcQzTAAKLW6B5D4VGVcMUiCQYJmY37B/0 FN3NmgLCWY7hGDzKbMtOP8hDzyeAC2omOEqFKFLZ6488Kdi54EVeqr/QcyudOsntfXvw ahC3+fjlU+O6qra/7tg9pSVdaDhwi7rqsUdEbE6nJoP/+2i9LoglmNHZXoZ401guAHPU tfvdtO1BwD+96taZ+3PEzmqyEnXygTWYonkvt3h3LwpkAjwegnuWvfywfwvsSgKoyumg 5dFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hFZ+OV0Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si7209149ejr.490.2021.03.08.11.54.41; Mon, 08 Mar 2021 11:55:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hFZ+OV0Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbhCHTvQ (ORCPT + 99 others); Mon, 8 Mar 2021 14:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbhCHTux (ORCPT ); Mon, 8 Mar 2021 14:50:53 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF44C06174A; Mon, 8 Mar 2021 11:50:53 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id kx1so245837pjb.3; Mon, 08 Mar 2021 11:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bY74PhrcbsYLS+QDyU3MBxV+McRj9LMSdo3Kk9RWRkg=; b=hFZ+OV0Zfp62Rif2msJxt7slp2M6Q4APkfoZCGAmtNqchtwTavb/mwijGLNqSJinLX hhhPz38e3kQXh3p1DU93WGYa79aql659bp1K68ELlacKb9FdR+uZIiNHo3mO1X1/aLOp fzYO58wLbAzj/00Z1IXzOzoOh7QkkjspFA71ZLr0SpsITOn7qklSl9n3BmNp0xyjWkTZ QqS5QRxy0jZT5939jb8pB8OmJlWlvkHLBRbXZmhlQDZUqeTgSsNeK2eoLvYwfaRzKTEG d4nTb2QnbnNzltQ3P6id1SJYt32hygkZHPFunrbZITdCQRFJpogQkPq2F1w+pecbV7+K bjKQ== 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=bY74PhrcbsYLS+QDyU3MBxV+McRj9LMSdo3Kk9RWRkg=; b=l7IvpgOcqbDXpEnLMIVYu0L3E0iC7rvIOxMCdOh1yxixyHlK+qxmeSd0jAQ4bzjwQo Ad6o667Dv+Tws+0fSUu/Gj3ijmpBWMcEyis+C6YrJEbIXehPxZnebo9elax7lebNWVtI COqAxs3W+fZrdW9xOujpFkiO8BZppIhEpHhfjxaIi0e8NAzLeC0AkHC9uieyhmT9mmgl 07yZ+y+4bYy7/OgAibcAstLhHKyM9krKbLoqycvH6HdJGcCnDpRGVEo6n6vqSblppOQQ NwtYl2z8ANAwem5+xmhFxHVi0fLBdHLlfhvyT8uX9XFKDp4gxcqrXU1TkMTN7upAXFr2 khKg== X-Gm-Message-State: AOAM533WpCW0p2Vk2d5YcOy6HgJwTOwyQ4082fjUwo6NHQkg8m2fcCH7 6cldQxBuchk/V5boxCUb1jw= X-Received: by 2002:a17:90b:94c:: with SMTP id dw12mr501499pjb.119.1615233053241; Mon, 08 Mar 2021 11:50:53 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id y1sm64685pjr.3.2021.03.08.11.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 11:50:52 -0800 (PST) From: Jim Quinlan To: Bjorn Helgaas , 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 v4 0/2] ata: ahci_brcm: Fix use of BCM7216 reset controller Date: Mon, 8 Mar 2021 14:50:35 -0500 Message-Id: <20210308195037.1503-1-jim2101024@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (2): ata: ahci_brcm: Fix use of BCM7216 reset controller nPCI: 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(-) -- 2.17.1