Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754428AbcK1IUF (ORCPT ); Mon, 28 Nov 2016 03:20:05 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:62743 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754165AbcK1IT4 (ORCPT ); Mon, 28 Nov 2016 03:19:56 -0500 Subject: Re: [PATCH v2 2/3] ARM: davinci: da850-evm: use gpio descriptor for mmc pins To: Axel Haslam , , References: <20161124150454.23899-1-ahaslam@baylibre.com> <20161124150454.23899-3-ahaslam@baylibre.com> CC: , From: Sekhar Nori Message-ID: Date: Mon, 28 Nov 2016 13:49:29 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161124150454.23899-3-ahaslam@baylibre.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 554 Lines: 18 On Thursday 24 November 2016 08:34 PM, Axel Haslam wrote: > Currently the mmc driver is polling the gpio to know if the > card was removed. > > By using a gpio descriptor instead of the platform callbacks, > the driver will be able to register the gpio using the mmc core > API's designed for this purpose. > > This has the advantage that an irq will be registered, and > polling is no longer needed. Also, a dependency on platform > callbacks is removed for this board. > > Signed-off-by: Axel Haslam Applied. Thanks, Sekhar