Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp479009imm; Wed, 29 Aug 2018 04:58:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZTd99rMl2r3j5vA/YDr51mxOK1FunXsfteKJ9IOh/lWxCa9N+urh6FiugOyDm4RVRprg9E X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr5652609pld.168.1535543922366; Wed, 29 Aug 2018 04:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535543922; cv=none; d=google.com; s=arc-20160816; b=BjYwgCrQ4HVybdSGiNpCjZiuEDgRcYYeNqPMJDCG/SAyIh+08upjXiMce8+oJkH9Va Tha92B72ukqO+UYoOOJzkcD1LCUasUEbiYvTm/FIAltVtgivtSsYaeit7r5mT7vhhtmZ jJOi38fBdDqYWar84E1HCk2ncLFnTdcJlwR4YALCmibe1xfiQ56mBx5I32ZpWiRBatnC rw8YAfMHlR8oqHnG6Ef5SLscBsz20Q/s10i9gPrOopHjt0Iz3jA0AROjKkApcpQUbzy1 eVwGjEP5zlHY+E13xTO9HEPBvhlENkzc4asyQ3PksLXQjt4hLeh0vtGXtDZDlq6Kqd29 8k6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=kcQsj7fKz1Qb4JwEYFG7gqC/sWjSJIEhF6cXuaOma9I=; b=Coltcq00J4yJc4vhRd31IF3qrRGJtOPmdwi3COBR2aYhT1uTwLwm5UUeuVEpYVSltC E8Ri7QFp6l2RmhkIAzgE3fUlRXvGMqWW0x8cdXEebwgzuvR2UDIoL05oeb/EIQDz21OU NWX4IuM0CfrT1FywUU2M6q2CqiqrsXDPk/MjVuM4etL1sqQAyl0gCJjYF4k2jTQiaFvm MGaoOoTC8Jp2pKbg+5yI6rnWnOYCCpdgzM8I7zWWNv+TWspWtKn1CDw0iqHb1UFTuk54 Da0c4ovM2THEZaMo6uixGUnTz7lglOhiP8elnwbDPALF4+uQifMlvaORLHPqUcYyaPo5 gz3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aotUeaPB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74-v6si3701170pfz.160.2018.08.29.04.58.26; Wed, 29 Aug 2018 04:58:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aotUeaPB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727693AbeH2Pxy (ORCPT + 99 others); Wed, 29 Aug 2018 11:53:54 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33729 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727428AbeH2Pxy (ORCPT ); Wed, 29 Aug 2018 11:53:54 -0400 Received: by mail-it0-f65.google.com with SMTP id j198-v6so4904518ita.0 for ; Wed, 29 Aug 2018 04:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kcQsj7fKz1Qb4JwEYFG7gqC/sWjSJIEhF6cXuaOma9I=; b=aotUeaPBP3NwGv2Nh2h3WiNrv/bxzM9m152d5prdEaNoIG4at6EcxodKxcOn/8N6kn NQTrg6RG+tLuy/GsXkDIg+wjTcxCKnF1D/AXSBjhDit8SKUaZv9NXfeWqzqWQzMG2/2P 4jfdQsttBruzJpKQWdhv8eBhvnCQT9yFZjenA= 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=kcQsj7fKz1Qb4JwEYFG7gqC/sWjSJIEhF6cXuaOma9I=; b=pGx7+uCF+mqmgVClumPKZtMRhgrH6TMj5TmwWtYgd1BV9tn//LBD6o6Mn+zQRqo1l0 hCzOjYOV6YUEJLHcTxxThH7+QWXJIu/Ob5nArphXeqMV1Pdl+hhCAlSm95B2PGeiPsnU VvQQFka5DvCqr3KlrBU8Au+BPJzIeSzYNItlf0eji7rMtDF7gi38Nkn3VnTv2DAQFlLt h35xhHnEefkurNSneQa6H1G0Fa7kg/4GI+H6U+vH+p32mqzqQxxzWwsBmQS7FrubNie2 4yk7SQb3zZFV/G9kU5RdwozjYMhtkcI4hyLos3hkQWoe/gwthhDYZDtotCLZ9u6Hxyhf rQAw== X-Gm-Message-State: APzg51D0b+9g7NnDhZAX9pW+fyk6PWrf9ICRyL1NvkEgsViurV+u/3gn AJ8aDFw4PKp2iwR7OTSBO3CoRodDx11i5Sb4yTok8Q== X-Received: by 2002:a02:2505:: with SMTP id g5-v6mr4949814jag.112.1535543840688; Wed, 29 Aug 2018 04:57:20 -0700 (PDT) MIME-Version: 1.0 References: <20180825084417.13526-1-robert.jarzmik@free.fr> In-Reply-To: <20180825084417.13526-1-robert.jarzmik@free.fr> From: Linus Walleij Date: Wed, 29 Aug 2018 13:57:08 +0200 Message-ID: Subject: Re: [PATCH] gpio: pxa: handle corner case of unprobed device To: Robert Jarzmik Cc: "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 25, 2018 at 10:44 AM Robert Jarzmik wrote: > In the corner case where the gpio driver probe fails, for whatever > reason, the suspend and resume handlers will still be called as they > have to be registered as syscore operations. This applies as well when > no probe was called while the driver has been built in the kernel. > > Nicolas tracked this in : > https://bugzilla.kernel.org/show_bug.cgi?id=200905 > > Therefore, add a failsafe in these function, and test if a proper probe > succeeded and the driver is functional. > > Signed-off-by: Robert Jarzmik > Reported-by: Nicolas Chauvet Patch applied. Yours, Linus Walleij