From patchwork Wed Dec 20 15:30:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 13500277 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 B3B65C3DA6E for ; Wed, 20 Dec 2023 15:31:20 +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=t47DGWYqK6uJ/KLf/2RjPd81r1b839OQ3vYM65wXqwo=; b=1wH WfmRyQlS24Gfk3Su/Q/pRNMfMjGPysJFzLoHM0c3CoUmWbVSoVU4DWPyLlgLocYnZiAjqQ5LEf2pB 97Hhrphjp/qQAq8KDNiU4SII/LD5VGnY393a9Mt5tGK3yeB3Va7yzfrxApXGsHJc2hA9W3w0zC6Ei DjBwqZsmZDp8BghYc8NhjNgJnik+k0Soa6b050dzWxInBWg36tIAqJr4BtbJ/Z8pg2lcc8fRS3uVW wwoNS++ou7ie6hKJ4QniuHO+spOnLOO99JiUTMxSlGY24Mx5GGj0ASv/eNF9xvvGGKlHqT0HuvUGc 78GCpu+Ns9ErXJf2DLCJBDKutX5kOCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFyX7-000G39-1g; Wed, 20 Dec 2023 15:30:53 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFyX4-000G1Q-0m for linux-arm-kernel@lists.infradead.org; Wed, 20 Dec 2023 15:30:51 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1d3eae5c1d7so6058805ad.2 for ; Wed, 20 Dec 2023 07:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1703086246; x=1703691046; darn=lists.infradead.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ElRJtuwymjEXES4i+OwkfJh0py6oHv7Nxsn80zQCP2c=; b=eKZoesiwlCelyVffglc29MvxOyv0KmlzjUtX0w6iW10vCTtePAb+ymKKwUmapGR9WX omNa1v//K4SPDyKdcBJ2rE/YVp6eGmggO9zey9QUPEKY+BIP5mTowAs6fAfBFNp2ruK1 eZPywScRAIxZ78zkiJ0KSi/czm3pdCDvvj8ts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703086246; x=1703691046; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ElRJtuwymjEXES4i+OwkfJh0py6oHv7Nxsn80zQCP2c=; b=NafQH0ysk1ITPV14yg2OlVgGdpDg+XP0ROs7rF3SpdifxIARocT6YT17j2/FaHEv/4 lA8fVQQq2T/kMB7Fqmee/0JulioivdkcpoVwSqupDdktr+heILdEaUtG38fk4L8wVqBJ mI2HDJfZ7b47Dj9PWKqE+DQ6x3ap/pxJxHwm/BOoSVV8aASxZ/8/IRs3adKYbuA/E/pI 6jXL4FWvRfjh17XoRSS5qJFtP0kvtpvq1U1Y8HsWCbLr3au09uPT8k0pRD0oM7pJuGah JhgWtGpfJ/2F5qc8ee+pk72zqLjJt6Yl6XEOq3s+hw4TM0fgEqXNRPzHjXk07hD+Dood 6Cmw== X-Gm-Message-State: AOJu0YxXQd5g+OGe+qYFLu/EZ9Pu2KDNSOUAx2XAG5/FmaJUiX865MRZ aeCeiiBjsG1S3pDXisgq6mqjbw== X-Google-Smtp-Source: AGHT+IEEXvVVT4c0e093/XHRLPYAxG91ewd33obdXIxEIlCdqoj9veXFugNeIDjEKmXw75CMuRWreQ== X-Received: by 2002:a17:902:d38d:b0:1d0:4778:fb3f with SMTP id e13-20020a170902d38d00b001d04778fb3fmr3601007pld.32.1703086245751; Wed, 20 Dec 2023 07:30:45 -0800 (PST) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id j15-20020a170903024f00b001d0b080c7e6sm23041395plh.208.2023.12.20.07.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:30:44 -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 v6 0/2] mmc: add new sdhci reset sequence for brcm 74165b0 Date: Wed, 20 Dec 2023 10:30:29 -0500 Message-Id: <20231220153031.38678-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-20231220_073050_327845_4A135E45 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. 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 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: add new sdhci reset sequence for brcm 74165b0 .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 4 +- drivers/mmc/host/sdhci-brcmstb.c | 67 +++++++++++++++++-- 2 files changed, 63 insertions(+), 8 deletions(-)