From patchwork Sat Jun 18 12:55:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Tietz X-Patchwork-Id: 637452 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rWxv54fcxz9sD9 for ; Sat, 18 Jun 2016 22:56:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4211FA767A; Sat, 18 Jun 2016 14:55:53 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y57zTEcwgM8h; Sat, 18 Jun 2016 14:55:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E12CCA7595; Sat, 18 Jun 2016 14:55:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6E710A75E9 for ; Sat, 18 Jun 2016 14:55:42 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uQB2YY5JRAyl for ; Sat, 18 Jun 2016 14:55:42 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.moses.super-online.de (moses.super-online.de [5.9.156.4]) by theia.denx.de (Postfix) with ESMTPS id DE4F6A75DC for ; Sat, 18 Jun 2016 14:55:39 +0200 (CEST) Received: by mail.moses.super-online.de (Postfix, from userid 303) id 7CDCA28407D6; Sat, 18 Jun 2016 14:55:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on moses.super-online.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from mail.moses.super-online.de (localhost [127.0.0.1]) by mail.moses.super-online.de (Postfix) with ESMTP id A1D5328407D5 for ; Sat, 18 Jun 2016 14:55:36 +0200 (CEST) Received: from lightning.dresden.micronet24.de (dresden.micronet24.de [89.247.133.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: web53p1) by mail.moses.super-online.de (Postfix) with ESMTPSA id 751AB284039E for ; Sat, 18 Jun 2016 14:55:36 +0200 (CEST) Received: from obelix.dresden.micronet24.de ([192.168.0.14]) by lightning.dresden.micronet24.de with esmtp (Exim 4.84_2) (envelope-from ) id 1bEFmh-0007cH-Lu for u-boot@lists.denx.de; Sat, 18 Jun 2016 14:55:35 +0200 Received: from localhost ([::1] helo=obelix.dresden.micronet24.de) by obelix.dresden.micronet24.de with esmtp (Exim 4.84_2) (envelope-from ) id 1bEFmh-00031J-Is for u-boot@lists.denx.de; Sat, 18 Jun 2016 14:55:35 +0200 Mime-Version: 1.0 From: Benjamin Tietz To: u-boot@lists.denx.de Date: Sat, 18 Jun 2016 14:55:35 +0200 Message-ID: <20160618125535.11351.93181.stgit@obelix.dresden.micronet24.de> In-Reply-To: <20160618124531.11351.59581.stgit@obelix.dresden.micronet24.de> References: <20160618124531.11351.59581.stgit@obelix.dresden.micronet24.de> User-Agent: StGit/0.17.1-dirty X-SA-Exim-Connect-IP: 192.168.0.14 X-SA-Exim-Mail-From: uboot@dresden.micronet24.de X-SA-Exim-Scanned: No (on lightning.dresden.micronet24.de); SAEximRunCond expanded to false X-Virus-Scanned: ClamAV SMTP VirusScan Subject: [U-Boot] [PATCH02/23] stm32: gpio_direction_output: make sure, output is set to push-pull X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" otherwise, the output type is uninitialized --- drivers/gpio/stm32_gpio.c | 1 + 1 file changed, 1 insertion(+) otherwise, the output type is uninitialized --- drivers/gpio/stm32_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index 2457211..d092c8f 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -236,6 +236,7 @@ int gpio_direction_output(unsigned gpio, int value) #if defined(CONFIG_STM32F4) || defined(CONFIG_STM32F7) ctl.af = STM32_GPIO_AF0; ctl.mode = STM32_GPIO_MODE_OUT; + ctl.otype = STM32_GPIO_OTYPE_PP; ctl.pupd = STM32_GPIO_PUPD_NO; ctl.speed = STM32_GPIO_SPEED_50M; #elif defined(CONFIG_STM32F1)