Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1488950rwd; Thu, 1 Jun 2023 17:00:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eiYGpDbY6vKRsGlLnfK2FsxqklgYvz1vFrUGi+kRKy32gY9vOvi0lSsB4unCBr0lGK7kF X-Received: by 2002:aca:f13:0:b0:396:441d:b0c7 with SMTP id 19-20020aca0f13000000b00396441db0c7mr854160oip.4.1685664016096; Thu, 01 Jun 2023 17:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685664016; cv=none; d=google.com; s=arc-20160816; b=oFpmfljvZyOjAyEu5GowDMi4xfgO0bywHwVZZa7DNnERsti1NpXvlaCG6utvzo6IpY mtxqyc1NO0g/NmyJVcjFWGu2Hm18ye4LY+gbHbBF0g07M8QSOOyhmL7geLbdwUEF4bpe ew4n34O3t7kGggDbcis1moOvCb1uRrL9lHm1VjYEjFIapLo5kStZ6ujli/HRQyIhTTyk cz7xsjeOOsz6WsAEuJqLGgo67Y39ThCIag880hxOFiuPNZjWuutwzDq2EgcNVxTaIz2m SkWkgZob+DQqs7lO9seTZs6W97f77TmRatrKqyD9pFx53x1hDP/ozYFrmuLhzYCYLIz0 9JZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=OJG5x9fCo+jrFNBaJdVoxcXQRypRvHOFxV+i9rgkQIE=; b=o+JWKAm4DbL4wAbTZoKVyTvJ/UPeDxTEyUzDn20bJnuGRrisodQGC9x8aD7jGBvbhi PvK2L3oh3vG0jLxtMpCA2uu1Ygxst1TD4Q1SdOW2ZhnRgeltjxWWExJJKY4zaLvL7C7+ mZTcKvhU3tv1ELX8KbPAxUo6yCUTo24shxT3x43QpNgz6rtVI5I8hmpnRoD9mMqKpq4K xXAy9KHWbbM4qyVm/VMaIrDog5EqeEFbALXSg7kzHLCuoDa5dT+2isX+Qq9r4M2V94gw RcXjeI1dil/X1MqSY9AfkhyUO6ClaQvx2O7iI1vDOO9rjj8UkWs1cvx7c2TlNPiMau6v I5+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAN8qZVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c204-20020a624ed5000000b006528e5ad64esi569943pfb.350.2023.06.01.17.00.03; Thu, 01 Jun 2023 17:00:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAN8qZVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232484AbjFAXu2 (ORCPT + 99 others); Thu, 1 Jun 2023 19:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbjFAXu0 (ORCPT ); Thu, 1 Jun 2023 19:50:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23EF1194; Thu, 1 Jun 2023 16:50:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A488D64AE1; Thu, 1 Jun 2023 23:50:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 077ADC433D2; Thu, 1 Jun 2023 23:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685663424; bh=lcmOjedKmuez/BCfGRbZK+xkGv9ydrmspQLiwE3iVsA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=MAN8qZVXEvUDp+65LgkpNoQ3lwVYbh1YDcsVkE/wknq0jMYijreRbbwMCpidXm7DC TQ0wqswq7aJD+DiZ/pTuhgvblooBs9CYcUHA4dnCA+xNzdfi6MPswSJLsCKN5eIdXh wa6MjDearm4euCxUXPe6WrMZCj03OKPbxePr2SGVqlQJS0d+F0J/OIcM3+/VeFPrEr j+qTeEAEJbLeuSTdiIssPG7Nd0V6/cUPKtSqq2fbefpSqHlcrYCo+2C3xHN0MGgebO 3IZXj5gn8WS3R8mBK8v+cpcrV1yRK3oRWd6gjJZryH/Y+X52uB7rwFxB8y2NPUqgP0 IqBNTjcQQWqaA== Message-ID: <81ff6195-19c3-95d6-6d37-58f7719a9265@kernel.org> Date: Fri, 2 Jun 2023 08:50:22 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 38/43] pata: cirrus: drop legacy pinctrl Content-Language: en-US To: Nikita Shubin , Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Sergey Shtylyov Cc: Michael Peters , Kris Bahnsen , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601054549.10843-20-nikita.shubin@maquefel.me> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230601054549.10843-20-nikita.shubin@maquefel.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/23 14:45, Nikita Shubin wrote: > Drop legacy acquire/release since we are using > pinctrl for this now. Please use full 72 chars lines. > > Signed-off-by: Nikita Shubin Please change the commit title to: ata: pata_ep93xx: remove legacy pinctrl use Also, are the functions ep93xx_ide_acquire_gpio() & ep93xx_ide_release_gpio() used somewhere else ? If not, this patch should remove these functions as well. > --- > drivers/ata/pata_ep93xx.c | 25 ++++++------------------- > 1 file changed, 6 insertions(+), 19 deletions(-) > > diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c > index 8d363bc71342..88cf31000000 100644 > --- a/drivers/ata/pata_ep93xx.c > +++ b/drivers/ata/pata_ep93xx.c > @@ -921,28 +921,18 @@ static int ep93xx_pata_probe(struct platform_device *pdev) > void __iomem *ide_base; > int err; > > - err = ep93xx_ide_acquire_gpio(pdev); > - if (err) > - return err; > - > /* INT[3] (IRQ_EP93XX_EXT3) line connected as pull down */ > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - err = irq; > - goto err_rel_gpio; > - } > + if (irq < 0) > + return irq; > > ide_base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); > - if (IS_ERR(ide_base)) { > - err = PTR_ERR(ide_base); > - goto err_rel_gpio; > - } > + if (IS_ERR(ide_base)) > + return PTR_ERR(ide_base); > > drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); > - if (!drv_data) { > - err = -ENXIO; > - goto err_rel_gpio; > - } > + if (!drv_data) > + return -ENXIO; > > drv_data->pdev = pdev; > drv_data->ide_base = ide_base; > @@ -1000,8 +990,6 @@ static int ep93xx_pata_probe(struct platform_device *pdev) > > err_rel_dma: > ep93xx_pata_release_dma(drv_data); > -err_rel_gpio: > - ep93xx_ide_release_gpio(pdev); > return err; > } > > @@ -1013,7 +1001,6 @@ static int ep93xx_pata_remove(struct platform_device *pdev) > ata_host_detach(host); > ep93xx_pata_release_dma(drv_data); > ep93xx_pata_clear_regs(drv_data->ide_base); > - ep93xx_ide_release_gpio(pdev); > return 0; > } > -- Damien Le Moal Western Digital Research