From patchwork Wed Aug 23 10:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balamanikandan Gunasundar X-Patchwork-Id: 13362004 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 06508EE49A0 for ; Wed, 23 Aug 2023 10:41: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-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=ubaB8b7utMjt6RDv2h4GxpNMuINFwSLmy81M8yeaAm0=; b=zbVRiRkfCAl8gY mXEKr+iyuiSm9lIqgILxpbHkN8Dz2bchfx754vPF9dM3RpAGx2jwZaWKweZNCMbs0mfhZQBM6hYV0 GxOjub/FP6R9WS2FJmrQvUgg981b7l4jkgDhkBtom5iBqro9VBMk7WFG5MPW+txKdPqCiJy8TtoNQ HUZG7f5gDHZBWvGOssCFUT7OZ5mxs/xTUk69XvnG+8b6yn2kxsXZPo59nX/4myMn/10ldye7Bl8W7 eAcEpISTq51HX7xWmoxa3MUV5idYFzCPRwtpiBJtS7MU0XWoWEVwtZKrK73h5gVDUL2ZML8mF39Gb Vr7oLjuypAcLWieghxvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYlI1-000L67-10; Wed, 23 Aug 2023 10:40:41 +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 1qYlHx-000L4R-2B for linux-arm-kernel@lists.infradead.org; Wed, 23 Aug 2023 10:40:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1692787237; x=1724323237; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BT70sNujtMKgc6xs08Sbs3FPM36lphKrmvSphUxZujk=; b=G5ewq6+gS9KmYAVUtVA+BMlyPrErIS1p6px4q69irUtsNb/nn5PO50+H L3N9YZuiFQG7JUa+GRgURHqHVwV8ZO3WAWC9fGfrl3d905qkAjsYKoy0e 1TSZv00bEFCB5MJGp5JRMr0Vspg/1RtQiyMpvzK/clWohdtj4NrnH3b0G 3VoG7lHP16uVdO64m/nIRT8JtAUizhpDpgpsVtkdJkUmmrH4YEaJ7MmF5 przCOmIDjmrOR5N5eTtrMIYfaPcDPc056+kI3tVhsDlNHxec/eJurtz0V VeR3wSucDpza4jFZXOHfqGKg8Xra33SDelnlwbLf1W6YsfUqiUxo+FOud Q==; X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="869464" 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; 23 Aug 2023 03:40:33 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 23 Aug 2023 03:40:33 -0700 Received: from che-lt-i64410lx.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Wed, 23 Aug 2023 03:40:27 -0700 From: Balamanikandan Gunasundar To: , , , , , , , , CC: , Subject: [PATCH v5 0/3] mmc: atmel-mci: Convert to gpio descriptors Date: Wed, 23 Aug 2023 16:10:07 +0530 Message-ID: <20230823104010.79107-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-20230823_034037_724209_630D6147 X-CRM114-Status: UNSURE ( 8.88 ) 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 Replace legacy gpio apis with gpio descriptors. Handle card detection gpio polarity in gpiolib 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 | 7 ++ drivers/mmc/host/atmel-mci.c | 133 +++++++++++++++++++++-------------- include/linux/atmel-mci.h | 46 ------------ 3 files changed, 89 insertions(+), 97 deletions(-) delete mode 100644 include/linux/atmel-mci.h