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: 13509138 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 039D714AB9 for ; Tue, 2 Jan 2024 16:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="W+8C7S7l" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7815aca9a4eso354650385a.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=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uUzi90MVy3x+3//sIxWpml+PPZ90oaVVgMHRc9bSoKk=; b=W+8C7S7lTvkFUZhmXHcXBF/slN7xmojX03XjQoeSrpzM96SVELQX9+tq8i7xpsy5KF McRWITdTD93qWk110htw2s1x6MemmBIfC9F3I2X/Uxoc8LafReTbp7X874JhcvFFjdaR bcUjqRyr1NcIRn0fXN0fQjw/tEH3uc6r0V244= 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=uUzi90MVy3x+3//sIxWpml+PPZ90oaVVgMHRc9bSoKk=; b=jqT/r1S3Njq1nsMMvsGs4fB7dFgsLROFzn2JYPn/ygOR1n8LuriNB86II7kCODAqy9 sIW7M5u9V+YJSZXvn16nVS3xriQ7yweDlyX22dL9lEXHV9g8XlukEa7xvAuNG5lq0fWx vLay8gNatRSG59cpJa1VjRvDKZpHeXG7061CoBBZi9Asy2Z697nEYQA2+0CTTSUslODh uxAR82Eq9Rh4H7vmlDbJ6sF++JknwPtFcH34qd2/fpb/J4XOqdAdbsNJ9xa9Scv+sNOA CLcSRjoU0YMTRW4xza807mHMd1MfaulrvSk0G+5RQtR+Zw7fmmtgIV2/UmOoY3ISxuB7 pzoA== X-Gm-Message-State: AOJu0YysHmEzBLtU8jU7NU3KFVoN58+DwdYlGLJDRZoeJtxLHpEu6ObX g0SHjHMuzD28j3BiRiphPx2uk0yRNMBi 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 Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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(-)