From patchwork Fri Nov 6 19:17:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 11888021 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=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 85801C2D0A3 for ; Fri, 6 Nov 2020 19:19:30 +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 010252151B for ; Fri, 6 Nov 2020 19:19:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WXOFqR1i"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="AMqGSXwI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 010252151B 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=UZXiRIgCETn1pi0qvBlt0GYEnNnL9d9XdetTSMJBrzU=; b=WXOFqR1impBqqF19cxycp5c3Rp M6tMoEOWotyjfNoyocEj3Hq6TpcApEtP+hDjbC5MZ50PZDNae1uKCF7CJ9uSjYduu1ziJ+hbIDFF/ S3fOCisYPDQ7tNFvDKEu2OY+C3mIQAhMvyT90WTr1B8abfopKNR1D4I4pwAPEA4TTw1Iz1fTzLWSd NB0CLSAEqmSHVLcWuaHASfDFRWOBgioujE2JAclcZcnD+K8Uv1pon7a69SNZI3Ts9jMa5bPpKEtjZ +nyv3RwJOB4O3AqUTPQCwj033me4DPaiHGfneQ+dqoKdeie25etyWXhVtsVKDTpce3nTlf/k9luBw 8FMZ3ftQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb7FD-0007Ta-FR; Fri, 06 Nov 2020 19:17:55 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb7F9-0007RL-G2 for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 19:17:52 +0000 Received: by mail-pl1-x632.google.com with SMTP id k7so1107318plk.3 for ; Fri, 06 Nov 2020 11:17:50 -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=w6oOwLYajwO7SpCB3tMSlt+lc1qfzv8eWW6CAz/lgwM=; b=AMqGSXwIBVjE2xWTSXa+C6lHS/PS3OcququwmONLOLD+vHAcmwwf0UQD4nvkMKoT7C hjY+NWSxq+BRg6NsVDL+C6b3GUb76jXTArnAdqEoIQHYPriCE2mQ3ELE7Yq4rU1kBiYx UraWPoiiuayMiGlR2XfAR1p38VsScQH2baJSQ= 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=w6oOwLYajwO7SpCB3tMSlt+lc1qfzv8eWW6CAz/lgwM=; b=pBOq82J1V6OXGItv5BvMBbfasix2QtcR0f7wN/ILNIaj0Nb26EUrVyxx8mlkARfGK0 thW+bxF5Vdxn3hvLzBNQBsN4c00my+IWDsm/6Rq0l51DgR9o23OIdR5R3egmB7YWUbSo agQPFyF3j9F2Q89gyjL+2714M3KHDPLeMo/kFszkqKNvzEpMWieo8HQeLJDnG5T8+VkE 5h14RrBl5zM94M5bJVgrFaJRtSY4+qTLUIV8soz7Kfabw87uogQ+RoSzuUIjWhW8Mx1A nV1dmOZ/CNiqNFZiitpx2f9auakcN0HMoRpOvwlzreJAV+ZxWGy42FthIL8AkCI2ohej t9lw== X-Gm-Message-State: AOAM530FR3qiagzovq5bcNDb4WOuv3Tw46EaTaCuSNxiWgEDHhwrUXuV hFnDAAzqmlLw/6jvI633RY7R7A== X-Google-Smtp-Source: ABdhPJxj/c/Whhp8FHQmEoh32VuBam3HXNir3Ubs0Q7vrtaA9TeOUYWUcjcsDgFWfAgzAt4DTCjldQ== X-Received: by 2002:a17:902:684b:b029:d6:e482:9fee with SMTP id f11-20020a170902684bb02900d6e4829feemr2923000pln.10.1604690268270; Fri, 06 Nov 2020 11:17:48 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id m3sm3302207pjv.52.2020.11.06.11.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 11:17:47 -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 v2 0/2] ata: ahci_brcm: Fix use of BCM7216 reset controller Date: Fri, 6 Nov 2020 14:17:41 -0500 Message-Id: <20201106191743.40457-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-20201106_141751_569524_7A020F1F X-CRM114-Status: UNSURE ( 6.96 ) 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: "open list:LIBATA SUBSYSTEM Serial and Parallel ATA drivers" , Florian Fainelli , open list , "moderated list:BROADCOM BCM7XXX 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 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): reset: brcmstb rescal: implement {de}assert() instead of reset() ata: ahci_brcm: Fix use of BCM7216 reset controller drivers/ata/ahci_brcm.c | 46 ++++++++++++++-------------- drivers/reset/reset-brcmstb-rescal.c | 13 ++++++-- 2 files changed, 33 insertions(+), 26 deletions(-)