Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp913286pxb; Sat, 17 Apr 2021 00:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjL5KnYpie+DshdvgutQBYgo1fcqF2xAjoaETVQU3VGF2U3x2vzr24sCXoYPWk6IpUHm64 X-Received: by 2002:a62:1dcb:0:b029:24e:c5d1:3d13 with SMTP id d194-20020a621dcb0000b029024ec5d13d13mr11074831pfd.25.1618644033059; Sat, 17 Apr 2021 00:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618644033; cv=none; d=google.com; s=arc-20160816; b=rWWobamj5ba+mYaApxxxfD0DeLedZFlFtpN+Ni0gyBc7dXmwmb68D+efX+X2tyYC3f ErSo2Y3uvKJZpAeYHDDCytm4+cXkDvA8DvoHQ2odDQMc1rVEtztI+7fWD/L/AwuzPdxl XV5lFbV8Es3PkB3f7ucd3vvS94wey/Za69scaRoIIj4iBrfMu6xUiD8pbffmNNVPpNOX F4KDb2sE3rxGl5hs3ibEP7o2E+jM1ymWmTzPCJHlmACmFLeoeM8VAah7ZramPO0XlR4S tI3xI9jnQMoJj3/rzSBKYqtm41Rv5UGNVA+0/8ztDNZBrZzZmx14nkMR8XVV6olILmpU bGNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lzDESpnJwy8q2no0zZGoouoLNqh3tnmLEUrJ5GDonRs=; b=x3fLzZQna9JVsmp6HUeOUKvHZ23mpmwYzdFnxFCXCTBTdDl6a2P84FIqUSEjjAtCLm et/UwvzNb9xTXzYl8Jawz0w9n7Mkfe57aXPdFWu7n2FY7dRL+tRYorGtl1hZnjEcmwZl 7tcRKdJIhdfTq4nr81JBJtpNtBUumUoB8nDQ20aJZCIWy2fN0vVHvCNWkz6oGbjLlOiH lcyreeqJlU1rlFep3tN91N181HRhsQbrnL4X6EW5vZr9YvFME7zmUX93yeg4jvwQAAcZ Nf6kKDLx86XYaNt4hBkRnRxqpjZKLhzPU/QRAZIqokFP3a8U+Qgq8LPCwdQSW1hhDId2 ASVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rzn2Xdwu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si9721740plo.211.2021.04.17.00.20.20; Sat, 17 Apr 2021 00:20:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rzn2Xdwu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbhDQHTQ (ORCPT + 99 others); Sat, 17 Apr 2021 03:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhDQHTN (ORCPT ); Sat, 17 Apr 2021 03:19:13 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F4CC061574; Sat, 17 Apr 2021 00:18:46 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id p6so22013282wrn.9; Sat, 17 Apr 2021 00:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lzDESpnJwy8q2no0zZGoouoLNqh3tnmLEUrJ5GDonRs=; b=rzn2XdwumhMz3IMq2hTIY1ZtnZGekwQClLm2fRy8IPnOaGOBMFLf4aYOib1aCfHeqm 1pAj2Gfd3TtRiRPgcWseBXWQVukxHfViduJLDUY2KjqKPNO/kTcjm589PqNe36Q7J3Wx wSdcPBGkmAPLMio+IZIFMTlN+eMTwScTkIboPUhj4Z7t07X1Hzk2UVN9Rxyjre7SW4lS aCsKzSysJz25T1yjzeAhtWKSHeLXUPb3ZSpi8RmzXKnbs56wmKjcw4LwoRe2GuQveYGH gte54cDVCR1OMW80mGjUnXdun3ldjiWz/whg8sNaNsGA60mp5GWKKLbfpUqmsd3DxaDT J0Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lzDESpnJwy8q2no0zZGoouoLNqh3tnmLEUrJ5GDonRs=; b=WABdsBapF1rDoWqVnFxksnKs2ikYwHqD6coDyF+2fVxJRl8b75/N6l3jVldlfSOoNV 085R+A9r2ROQBIB2tfFmkzL28uqCO5t61GmFGsjXdjScGYqL4GEg4FlHXyRDELsTeB3h yn/2zYjmuvcKP4Wa/g3IoRHGPuc9P2jWCrpjeYVGQwom0t0Zx5UkRdf2VvnVLmFeYYP5 GtKuRW0X1ROdYzdAP+WVJ+oSY7PqDU+LpyDW/tIjqRNi+Rnv9zTx6J5MLTgqXeu2RuD5 JscliVz4BDUazR/0pHQ/KR8h6HvC6GfvtCkVB7lbMlukuIB7Fb2gQ5g78ZM7p3+j9vcP 47Rw== X-Gm-Message-State: AOAM533Cwg/64lVMU2pySx+AHgAG+DwluId5dPAcjxgVBQsq+gSyY7C0 ZMtq55tfbdzFdeHih+HlbI4= X-Received: by 2002:adf:e108:: with SMTP id t8mr2836394wrz.371.1618643924864; Sat, 17 Apr 2021 00:18:44 -0700 (PDT) Received: from agape.jhs ([5.171.80.7]) by smtp.gmail.com with ESMTPSA id a2sm6954216wmn.48.2021.04.17.00.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Apr 2021 00:18:44 -0700 (PDT) Date: Sat, 17 Apr 2021 09:18:41 +0200 From: Fabio Aiuto To: Andy Shevchenko Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH v2 1/4] fbtft: Replace custom ->reset() with generic one Message-ID: <20210417071838.GA1401@agape.jhs> References: <20210416142044.17766-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416142044.17766-1-andriy.shevchenko@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 'staging:' in mail subject is missing... On Fri, Apr 16, 2021 at 05:20:41PM +0300, Andy Shevchenko wrote: > The custom ->reset() repeats the generic one, replace it. > > Note, in newer kernels the context of the function is a sleeping one, > it's fine to switch over to the sleeping functions. Keeping the reset > line asserted longer than 20 microseconds is also okay, it's an idling > state of the hardware. > > Fixes: b2ebd4be6fa1 ("staging: fbtft: add fb_agm1264k-fl driver") > Signed-off-by: Andy Shevchenko > --- > v2: new patch split from the bigger fix (Greg) > drivers/staging/fbtft/fb_agm1264k-fl.c | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c > index eeeeec97ad27..4dfc22d05a40 100644 > --- a/drivers/staging/fbtft/fb_agm1264k-fl.c > +++ b/drivers/staging/fbtft/fb_agm1264k-fl.c > @@ -77,19 +77,6 @@ static int init_display(struct fbtft_par *par) > return 0; > } > > -static void reset(struct fbtft_par *par) > -{ > - if (!par->gpio.reset) > - return; > - > - dev_dbg(par->info->device, "%s()\n", __func__); > - > - gpiod_set_value(par->gpio.reset, 0); > - udelay(20); > - gpiod_set_value(par->gpio.reset, 1); > - mdelay(120); > -} > - > /* Check if all necessary GPIOS defined */ > static int verify_gpios(struct fbtft_par *par) > { > @@ -439,7 +426,6 @@ static struct fbtft_display display = { > .set_addr_win = set_addr_win, > .verify_gpios = verify_gpios, > .request_gpios_match = request_gpios_match, > - .reset = reset, > .write = write, > .write_register = write_reg8_bus8, > .write_vmem = write_vmem, > -- > 2.30.2 > > thank you, fabio