From patchwork Fri Aug 25 09:51:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balamanikandan Gunasundar X-Patchwork-Id: 13365375 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 7CF14C71133 for ; Fri, 25 Aug 2023 09:53:47 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=38A1dzEwQoWeRkKafV4H5H8Q7Z6B9Jlps4upix9A3Qk=; b=pa2+L6icxGiIWh 07lIWq20qsRwIyYh3Z83DthbziN6ABUxalspk7JLhU4u9om5ePid2iF0/+pjpvHovVe5s0bHtG+M/ SUi8HhW3DEI5rWG15HPlZCyEicMVmSJlGHBBn84aX5Hlj9Tdv8IEIRWAA0EH3Rcb4Wyovh+Qir6s+ 3ZwY6gS8kxpPOfRVp4PQUQUpzfvoF5tg7csi8Eeroye9/mQPIu9qBGw8pfTHGZe8uRArgFBhyYc0x zHxxdZ9+pLD5QHhkbUhGAe3MZS10TX/rEpUIYMSxT2vI7UrMVyvuaG9qLzkqhpZTZPj0rJUrrdeFl FBAVssokTQ1h7IPzdZqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZTVB-004lyG-0k; Fri, 25 Aug 2023 09:53:13 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZTV6-004lx9-3C for linux-arm-kernel@lists.infradead.org; Fri, 25 Aug 2023 09:53:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1692957188; x=1724493188; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TPQF3Wxbk/74CzPmTQm+rUHXfMqpNqNTCji2x+nMYHk=; b=05ar8vwSpsFxynLaxTdvYBpaoSK8Wq1J5JZA/rdSjaD7TrAysf/VXWpY C7f/RtqbUFtnz9Y351+IgceYVKt+CKyNmVUW4NB/JEws1MQ8jT1Ge/9SM PAUR+pzxLria55sHthb5mMqx8TuPqMRbB8lxQ8jJgWGIGusKvjuu0xYuk 2l2FsPTPnmIyw+nAPHzVox6u/g9JveB7nMOPVlwlw7Nj6HqWL0G/KRvbK 5tdpo1c2d19t/rKpulmzpXkruQfmkr7AeOF9ATJy/SyrXzU6SxMS6IPUK QpvGSODV0ynlhuHp2xmwVd1bQw1bSMBond36QzSRoAJ1S3FGZoX2m7fOk w==; X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="1291908" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Aug 2023 02:53:03 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 25 Aug 2023 02:52:29 -0700 Received: from che-lt-i64410lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 25 Aug 2023 02:52:24 -0700 From: Balamanikandan Gunasundar To: , , , , , , , , CC: , Subject: [PATCH v6 0/3] mmc: atmel-mci: Convert to gpio descriptors Date: Fri, 25 Aug 2023 15:21:54 +0530 Message-ID: <20230825095157.76073-1-balamanikandan.gunasundar@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230825_025309_152330_2F790915 X-CRM114-Status: UNSURE ( 9.54 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v6: - 0001-mmc-atmel-mci-Convert-to-gpio-descriptors.patch Remove code duplication while checking if the device is compatible with atmel,hsmci - Add Suggested-by tag v5: - Rebase to latest next branch of https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git - Move handling active_high inversion logic to gpiolib instead of reading the raw value of gpio and inverting it manually. - Use PTR_ERR_OR_ZERO instead of IS_ERR. To avoid ignoring valid errors as suggested by Dmitry Torokhov - Use gpiod_get_value_cansleep() instead of gpiod_get_value() v4: - Rebase on top of next branch https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git v3: - [PATCH v3 1/2] mmc: atmel-mci: Convert to gpio descriptors Convert devm_gpiod_get_from_of_node() into devm_fwnode_gpiod_get() v2: - [PATCH 1/2] mmc: atmel-mci: Convert to gpio descriptors Remove "#include " as it is not necessary - [PATCH 2/2] mmc: atmel-mci: move atmel MCI header file Move linux/atmel-mci.h into drivers/mmc/host/atmel-mci.c as it is used only by one file Balamanikandan Gunasundar (3): mmc: atmel-mci: Convert to gpio descriptors mmc: atmel-mci: move atmel MCI header file mmc: atmel-mci: Move card detect gpio polarity quirk to gpiolib drivers/gpio/gpiolib-of.c | 20 +++++- drivers/mmc/host/atmel-mci.c | 133 +++++++++++++++++++++-------------- include/linux/atmel-mci.h | 46 ------------ 3 files changed, 100 insertions(+), 99 deletions(-) delete mode 100644 include/linux/atmel-mci.h