From patchwork Fri Dec 9 19:48:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 9468967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F3B9E602F0 for ; Fri, 9 Dec 2016 19:48:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E25DD285A7 for ; Fri, 9 Dec 2016 19:48:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D331A28688; Fri, 9 Dec 2016 19:48:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72573285A7 for ; Fri, 9 Dec 2016 19:48:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753383AbcLITs7 (ORCPT ); Fri, 9 Dec 2016 14:48:59 -0500 Received: from nbd.name ([46.4.11.11]:45391 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbcLITs6 (ORCPT ); Fri, 9 Dec 2016 14:48:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=Aj1MGcA6ZJT9RVI9BET3G6OjL8FD4921c1taSoA1PXY=; b=XfnDaT7HPHodylKniP8znRUDi039G+F/PIfBm0jAEnTw1x+eTxXKBtI2imU9k3rxqU/0eGMe1K17GNIyXmsYobXphmriqBczVjlzN6KkqKhI+9lQKeR8Nt2wvoUvHwF6CeeXnnB+yRlHcLx1Vk+2h1+hhHIICfhfvXGEjcIUFKI=; Received: by nf-4.local (Postfix, from userid 501) id 0FA7917520AE6; Fri, 9 Dec 2016 20:48:54 +0100 (CET) From: Felix Fietkau To: linux-spi@vger.kernel.org Cc: broonie@kernel.org Subject: [PATCH 2/2] spi: spi-ath79: use gpio_set_value_cansleep for GPIO chip select Date: Fri, 9 Dec 2016 20:48:53 +0100 Message-Id: <20161209194853.71018-2-nbd@nbd.name> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161209194853.71018-1-nbd@nbd.name> References: <20161209194853.71018-1-nbd@nbd.name> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Felix Fietkau --- drivers/spi/spi-ath79.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index d51c99a..2517e1e 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c @@ -80,7 +80,7 @@ static void ath79_spi_chipselect(struct spi_device *spi, int is_active) if (gpio_is_valid(spi->cs_gpio)) { /* SPI is normally active-low */ - gpio_set_value(spi->cs_gpio, cs_high); + gpio_set_value_cansleep(spi->cs_gpio, cs_high); } else { u32 cs_bit = AR71XX_SPI_IOC_CS(spi->chip_select);