From patchwork Wed Jan 3 22:23:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 13510619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACBCCC3DA6E for ; Wed, 3 Jan 2024 22:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: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-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=VaaG/LoP2/5Sxbeja591fc/F/yI0l659VXrreeeDkuE=; b=pNj R59dJdu8//hSGynCpAC/zaCZ48d14yZAfd4TAJHzZaHWUO5R+jb7JZQ8NNrMg2DfWcWhNJVS+juMZ 5djUmqPOme7kuyQrt7R6eMOBn6PDCEZBFQK61aKi5a2k6AoXRN3Y0kVEyNrjYemjB8i9z3m+Xet0p SyQ297ZuKtI0OfJd4cl2Q/AFRc0wmeg/nLttzOmMI3ZaVUAOkq46MKUQsPt9cbPrFXOQQeKqxMe7L bVCr3tgE/Rp41f+K8feGM/g+Cw9i+KXGThQhSuajtEg7wQcDaCpMFn/nN2+kZf/KTV01RPhX52PIX rk2VgZf0nU637Od3xwMPBjNXfr8oy0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rL9eQ-00CGMe-1Y; Wed, 03 Jan 2024 22:23:50 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rL9eN-00CGM8-0F for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2024 22:23:48 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5ce6b5e3c4eso1398765a12.2 for ; Wed, 03 Jan 2024 14:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1704320624; x=1704925424; darn=lists.infradead.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bdKe1890+Y8GHfGtUbwAX1rFc2ImMjdx1Yo4kvl7tZ0=; b=eHeb2FleaIAgIogwJy/EATFWxRUwUmdWhvP+ISxUWpgyMw0E4MfqgGOd5cuBLnckid H04aAXuq+c5ZV0KS93kLDm/h8C+Gf+qdEq1eQr0/Vn1zEKCUJpXRaAAOf74gG8iHZIzf IOWdIxaGoHuswtdejM/1RlHOEI/uWtluEgrRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704320624; x=1704925424; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bdKe1890+Y8GHfGtUbwAX1rFc2ImMjdx1Yo4kvl7tZ0=; b=CjL11xF5qkqA6Rt6TN6Rqn3EtSPBSqPs4jqJvjfC6ywOAdyD3Ki5TH1/aV+S5qWkSv alMJGy1VEM7QQRwU2WEODUT0h6i5k08D2lVOuuTg4TLifWd84jtcyDuQvvHFj2SeoUSH JYIA53pWYD4iuwMv/tQFTWzXkC92s+l7t4105/JpsdIhU28FxWWuyeuzbp+kMWEMhPDY onjZjSaxcTL1Xci1VjZJCl77XKlaMkXlFlJoJmTGhX4zdCQ2lLKUErW2R1PamYgKUW0P WDHuc9kQAF/+nebFmk1F8ufw3slyri2w0r7N+j4Zz8qGx/vHJrvVU0rwY/9yQK4O1lLK sc1A== X-Gm-Message-State: AOJu0YynxpZbk4q5XQk2FF8fkyN59CU1DuBOZQIODUPgu/1qYCkhRmPH Vt40og0V3bKlFe3zpw3mdk27yEusFW3y X-Google-Smtp-Source: AGHT+IHNw56QAMR3+GChgesnZKJlHCJW1EPAHaWnasMP7S5oWV+myCLkDTtne+tcWWHUHIEAfyZ+9w== X-Received: by 2002:a17:90a:aa0f:b0:28b:de59:47fb with SMTP id k15-20020a17090aaa0f00b0028bde5947fbmr6525593pjq.62.1704320624364; Wed, 03 Jan 2024 14:23:44 -0800 (PST) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id j4-20020a170902c3c400b001d395d3df30sm24197846plj.130.2024.01.03.14.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 14:23:43 -0800 (PST) From: Kamal Dasu To: ulf.hansson@linaro.org, linux-kernel@vger.kernel.org, alcooperx@gmail.com, linux-arm-kernel@lists.infradead.org, adrian.hunter@intel.com, linux-mmc@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org Cc: f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, Kamal Dasu Subject: [PATCH v8 0/2] mmc: sdhci-brcmstb: add new sdhci reset sequence for brcm 74165b0 Date: Wed, 3 Jan 2024 17:23:36 -0500 Message-Id: <20240103222338.31447-1-kamal.dasu@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-20240103_142347_183827_2127D6E2 X-CRM114-Status: GOOD ( 10.27 ) 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 v8 changes - Add subject as "mmc: sdhci-brcmstb:" to PATCH 2/2 - Added Acked tag to PATCH 2/2 commit message v7 changes: - Moved variable longer line to be first - Used read_poll_timeout_atomic() and fixed break condition as per review comments v6 changes: - PATCH 1/2 Acked-by: Krzysztof Kozlowski - PATCH 2/2 replaced readb_poll_timeout() with readb_poll_timeout_atomic() based on Review comments v5 changes: - got rid of 'Reported by:' and 'Closes:' tags for all patches v4 changes: - Fix for v3 changes that introduced dt schema errors - Fix for v3 changes that introduced sdhci-brcmstb build warnings - Added proper PATCH format and cleanup commit messages as per review comments. Added proper 'Reported-by' and 'Closes' tags - Added comments for 32-bit register access as per review comments - Replaced wait loop polling with readb_poll_timeout() helper as per review comments for the sdhci-brcmstb driver changes v3 changes: - Removed extra emun arrayfor possible compatible strings - shdci-brcmstb checkpatch warning fixes v2 changes: - Fixed devicetree bindings for shdci-brcmstb and removed 74165 compatible string as per review comments Kamal Dasu (2): dt-bindings: mmc: brcm,sdhci-brcmstb: Add support for 74165b0 mmc: sdhci-brcmstb: add new sdhci reset sequence for brcm 74165b0 .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 4 +- drivers/mmc/host/sdhci-brcmstb.c | 69 +++++++++++++++++-- 2 files changed, 65 insertions(+), 8 deletions(-)