Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp519252pxb; Wed, 27 Jan 2021 13:42:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsMUDdQQaoE2G/fWjLJwvTLlMCbQdar4+4e79xvCCZGUTQ/jz88jY3p1cHQlhPvxcubviT X-Received: by 2002:a17:906:39d0:: with SMTP id i16mr8293118eje.18.1611783751761; Wed, 27 Jan 2021 13:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611783751; cv=none; d=google.com; s=arc-20160816; b=rdvyZDIANAM7bEpgd3S0qgPMzgow+Al8kZZJ4vAXry7fV6C9sRLsqgJvk4OJBjcbIx IeEnRW3YVdvFFiZ79i6ma3CD1oSi2hKpPnCNpMILP6IbjqNstKvUc26IyBPQSpusypFf uvWXJ1cwDmfW6L7dxA661nNaGmpaqS28OlkrlgQq7qUN8W1qtV8XHueGs/m4H4WO5FG8 1foikZAwOPaPa9BpxPkXBqGdw2moUmzy7lUOH3fX0EroZwBWOjsxsZQkLRrDhNw3Hu2l 4lrY1GvJeqbNkAq2IjRhSzmnje1O9Ul9cO+byfhC9M+3glo0evxArdDkVw6lMSZv1IMT DYFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=gAKk6Yt/rmV2RLudc2xk6PS0Y1a3qymlWcwiHDkjBr8=; b=zMVB6TStgIXg8gOZc9q3jiuRV4WmpYz2UN14+dvLH0jJHNWIba101WyR71VNDV9365 rSj53SrofcO/jeKdBc7XtRshTaqLpri2IN9Tlg5VFhitSqMfeWSHaWUMatwgkx4iWL5j E8gqA8r3Ndc5Mb1KI2YTRT5LutK4BQ21L/Rvo+Kmm8xfn6NB1KLYourYmwiSY05pJeL+ aRe9JWHF5m6OkxjSttajSL1LZFiJnx12CcpN+KOwftX42NQvgzqeZAWLLL+HZGVjjSBS r0JoEPtHkCWFyzukfP8kO3ZZ8mV5ho4WriVx/K9xbFHlxDZtQEXJU6Ub0mJogBzdUBAD fyrw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kx4si1374687ejc.636.2021.01.27.13.42.04; Wed, 27 Jan 2021 13:42:31 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbhA0IwS (ORCPT + 99 others); Wed, 27 Jan 2021 03:52:18 -0500 Received: from mail-ot1-f43.google.com ([209.85.210.43]:39104 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbhA0ItA (ORCPT ); Wed, 27 Jan 2021 03:49:00 -0500 Received: by mail-ot1-f43.google.com with SMTP id i30so962577ota.6; Wed, 27 Jan 2021 00:48:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gAKk6Yt/rmV2RLudc2xk6PS0Y1a3qymlWcwiHDkjBr8=; b=m0f2FdGzYRFd9t1J4fdfTXTSeSpkoQmTJbZEaTWfATGjzqmGYGiD77CN5NxQaLvwHX iXXeD1I3TXUeXWUp3Ilkc+bFbryLbqXfwl22yPA8LVwUnwcizLJ/EQ8JHNxqJQJKd3VX QAAi73n47tA/oGr5cs4cv2wej7b+u1oE5aMlFgPIQt7bslDSfE4c6PDt8RUBOLzLy/u0 n8X3epoaA+qv9pqCV7En0VE31OHulTnjUVT0oHCYD4F2OmWXnGicMyOAVSrn1wuu7wK8 DW/hDrSvoVJG55QEJmZOdOeZw1hY7gbWQLpbegmRJ4kalwxaeceiXH9SUIKjnKUdxJYM QD9A== X-Gm-Message-State: AOAM532SuEdMYWS7fapyyK8gVUO2GHAyZs8YJRTcrVDXtgHkGAchBReu D/yW2kV0sh/8mLJEpo+sqrWFpyuBeH4HIlqPK+Q= X-Received: by 2002:a05:6830:15cc:: with SMTP id j12mr6928590otr.145.1611737299392; Wed, 27 Jan 2021 00:48:19 -0800 (PST) MIME-Version: 1.0 References: <1611711140-68260-1-git-send-email-zhangxuezhi3@gmail.com> <20210127054523.GA2696@kadam> <20210127141927.00004472@gmail.com> <20210127064916.GD2696@kadam> In-Reply-To: <20210127064916.GD2696@kadam> From: Geert Uytterhoeven Date: Wed, 27 Jan 2021 09:48:08 +0100 Message-ID: Subject: Re: [PATCH v5] fbtft: add tearing signal detect To: Dan Carpenter , carlis Cc: driverdevel , Linux Fbdev development list , mh12gx2825@gmail.com, Greg KH , oliver.graute@kococonnector.com, Linux Kernel Mailing List , DRI Development , Stefano Brivio , Colin King , zhangxuezhi1@yulong.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, Carlis, On Wed, Jan 27, 2021 at 9:32 AM Dan Carpenter wrote: > On Wed, Jan 27, 2021 at 02:19:27PM +0800, carlis wrote: > > hi,i will fix it like below: > > par->gpio.te = devm_gpiod_get_index_optional(dev, "te", 0, > > GPIOD_IN); if (IS_ERR(par->gpio.te)) { > > rc = PTR_ERR(par->gpio.te); > > pr_err("Failed to request te gpio: %d\n", rc); > > par->gpio.te = NULL; > > } > > I wish you would just copy and paste the code that I sent you instead, > but this also fixes the crash... While this fixes the crash, it does not propagate the error condition (which may be -EPROBE_DEFER) upstream. Same for devm_request_irq(). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds