From patchwork Tue Jan 2 16:09:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Dasu X-Patchwork-Id: 13509143 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 5A04CC46CD2 for ; Tue, 2 Jan 2024 16:09:52 +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=NL2CftAmBdgUOhFY5WJZB5KEMUdHxXd347Oz3FvwCuM=; b=0ZV aZk7etoR03T7V02TW/9quZNMGY/Pe8sfPVSh1HZ6Zuky/t/xGreIEHD2Rx+F8Yderu48PUy8vS6sb c32B+X6TepQc7KQG7ybiy+2bpWKrP5WH46x6dpMhhZmN638PT2CbtmWiYY/JVowlYVSSDhewxs3da 4yVSWGXhEOXEZRusYoSDI1uFCGmbmKUIPtKLVS259XQuKVQlphHHS/4+46r4ZqgFyj6dsy3dGQ4U2 N8zF1W+b3C5l6rnrXjedObS66vgMimMKKrLwNTx04Tnz9VbgvCHAh56ieDFQBdcmZi63PTm1zRqSj wF2g/USVEq90gTC75tuqZGybpUrGbcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKhKS-008Rr0-2x; Tue, 02 Jan 2024 16:09:20 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rKhKO-008Rpr-2i for linux-arm-kernel@lists.infradead.org; Tue, 02 Jan 2024 16:09:18 +0000 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-680496bc3aaso34156586d6.0 for ; Tue, 02 Jan 2024 08:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1704211755; x=1704816555; darn=lists.infradead.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mP0FR/czIXlHPsAhkRKoyn2f9BdFBHFSDTxm8pG/X+Y=; b=XTmCWMFzdVJ8gkNJFaLHn5Ezy0H0zqLsatAPIQfI1gDy+7fhka+tiY2VDVVeak0+YI wc0I3NjALi4KzWaqGVG7dpWu82ChncTl9gFKzDpvuPg82KC/8hR3IcxdpC9VdgV+Jp06 vhynPUAHaCZGIHDujtjBSmsA/5p7x+nb2QSYc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704211755; x=1704816555; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mP0FR/czIXlHPsAhkRKoyn2f9BdFBHFSDTxm8pG/X+Y=; b=R6gLEHaDoLYqt5/P8fXHth9jnBF6biejQKBRhFBcCpJ/V20ec07ksYKFWvKUrunWOv bA7ae7BE5Bez+hbjDxhjZpTamEpVLgszKk6TrwajPcj4HgeW5IipD1UipHz4r+vI9vcU RUxdWapB3AOrpppvyWN/67OYNhFRMPFRmgBzjex0cGKWQL7rkWdBZ/13EeFF1QJRPKiH kmI4E838Z9CRD6KWetDaoJgRC0hqcjonejSiNkim2ZfQqXBo9Z9YArI/a+YqwPl44VcY mXFfu8lTRLtf5aa11P1HT5ISZflR+TFBElL/U8PXswlGunTc/nC78sLyXw5l3xVQHj7E HZtg== X-Gm-Message-State: AOJu0YwqOsBi5/CXdW9GQLJcdzI0jp2GLKEuIqJzq2RXCEneCd916ovV FlsEI4NVXJwr20kI4HSOuvcjDXbZTTeA X-Google-Smtp-Source: AGHT+IFsxbVdKf/50g27Is/YzoY0j/GB0EBSxpCprH8KPBjXMvsgVsPe1UYDQkO1Q9MaAeU6S0fn/A== X-Received: by 2002:a05:6214:ac5:b0:67a:cd6a:754c with SMTP id g5-20020a0562140ac500b0067acd6a754cmr31351747qvi.33.1704211754836; Tue, 02 Jan 2024 08:09:14 -0800 (PST) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id hf8-20020a0562140e8800b0067f6f8c2a66sm10137520qvb.126.2024.01.02.08.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 08:09:13 -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 v7 0/2] mmc: add new sdhci reset sequence for brcm 74165b0 Date: Tue, 2 Jan 2024 11:09:08 -0500 Message-Id: <20240102160910.15485-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-20240102_080916_950309_EA3C2106 X-CRM114-Status: GOOD ( 10.59 ) 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 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: 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(-)