Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1352964ybe; Mon, 2 Sep 2019 19:40:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlVZ0+QnU2xoS6KC8khqaIVvCSXYpaLqcNXlPD0567nasc+dQhBhnhpnQDRypmr8lrqOwL X-Received: by 2002:aa7:998f:: with SMTP id k15mr23475137pfh.203.1567478413048; Mon, 02 Sep 2019 19:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567478413; cv=none; d=google.com; s=arc-20160816; b=HgyucFWVVBbRAocHHMoMPxn7FbQnvu4QwI0NYFGmDFvvIbWDvrS9GalCM9fbVe1BJN 7wlyayqr2cWmYWOYSlTvzwGahAXqHgZ7cRGwKe7yP096sibip4WLF3MdSgf7BdO26NvE XlY3EGjULD7BwEfbLWUf4jqlpu2VoTyQSVnrP1rhm1aJNKYGPfqZci7+wiDHI3Ttb/NX 2Y9OUzZVWGM7wFwzU6c4cpjlBn6DzWKkVjjIvGabrO/5HiRRvQaUqdpopaKh/WY2Sd/o SY7yd08Q3U90nIDw+MM7zZoGliQnYjSnGMyK+JMoch06VU6qNBJNAWQpJsaVdRtyh1NH sqeQ== 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; bh=bypCdtkGCzTYBLw17U+HKNiJ2TPW1+aSuUx/xJPZIZo=; b=fTCfdUywyUvIdYxf7XQby4UVmmE2z+eAnUWRNcn0fu3XhvII497H2JrV6IbDzx1/N4 Iz5b4KZPEOZRApH9Rtu4MiVMjxOJW3j9QtRHS97wjZS+fEhz/ufmbxkMyRL4fquud8TS e6EUeZGOSffcmOGKtX+o0a8cbpBiVGMmqkVBmditBBRx5hwKmy0p9wX2ec2XYz1bfcKd Nf25jKFOti+mp54nTapny9gubM7AxGLiQsd6MFWLW7oVh9T5DgaMrgTZy2Kh6b3JJY9w SiglfYJCkfzwv8QY/iXYBGTKszRHFS4xBkemBCiCO0jrQJZ4prFtcP1YfSfvJn9cMz8z o5Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tw2YiN+H; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si13123020pgq.372.2019.09.02.19.39.57; Mon, 02 Sep 2019 19:40:13 -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=@gmail.com header.s=20161025 header.b=Tw2YiN+H; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbfICCjB (ORCPT + 99 others); Mon, 2 Sep 2019 22:39:01 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38949 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfICCjA (ORCPT ); Mon, 2 Sep 2019 22:39:00 -0400 Received: by mail-lf1-f68.google.com with SMTP id l11so11610985lfk.6; Mon, 02 Sep 2019 19:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bypCdtkGCzTYBLw17U+HKNiJ2TPW1+aSuUx/xJPZIZo=; b=Tw2YiN+HIU2vOIqjXQvLB1Aaa7OR8piST1fyAxnRATGJ7xPFti8tvGrk+Q1W2IfFwh 3is/D+npGDgCVdQZk8KI89Cjs03qBDMuqpAVhR3qD/Be2CZozOGXWYP9/jvB7cG8oMsy GbynC5WW+g/omkxFMfkzATGJm9qsXdKbZOQkYg6aQjgrEpCDczgIO+Sb+egz6jrHvtku H/cmrwxJ22Flcr0ha+YNU9ZYGDqCRkPIZ90JirjlV7Mkie/dqQePYO3CNN3UkcLszKyS JtmmL/T2kErBT9Xi0cimYGOuKfbsuMEWvlf/Icz1yKur63PrmdWLqpXQXShH+bE1P4O+ 4QLA== 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=bypCdtkGCzTYBLw17U+HKNiJ2TPW1+aSuUx/xJPZIZo=; b=aQY4HZyLdI6Wkl1Ol+VY8CobOk0ExCOfbW1TrXEleIyARNdnsPI68e3jtqX1WgFRID NkhfIa9YnestnnACioreRwC2341ZvgTNBDEvYga1Jiwnu0Muqnz1U8eI8bcWiACN1a5p yK0UOfBbUb8WoJOKRLaSvpgn/hZE+dgELxgIhRTEjhE0MbP5M1mjQY4A1cqEYBrNvbR5 theyqNDY/mPYekrliimPB0rFD6nsj0STEl7nf2dkM2xWuvuKs4+Tbr2nag2WIGBQ9hlf mdu430cmWWLJVbDYJjyWH2VI1QC1hScukKApU0EpBeYYHDGEpoX0WxNcgCPHZDcDRfs3 Fv8w== X-Gm-Message-State: APjAAAUVECIpGcmDIWYm2jb9OkDnd5BuvWfzxVDwzhsGocXnxO7iYvvo +rY/37T/3TPKsPbvkDu+0nKS055ghmAsCzWiaYk= X-Received: by 2002:a19:f11c:: with SMTP id p28mr8434160lfh.44.1567478338404; Mon, 02 Sep 2019 19:38:58 -0700 (PDT) MIME-Version: 1.0 References: <1567519424-32271-1-git-send-email-Anson.Huang@nxp.com> <1567519424-32271-2-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1567519424-32271-2-git-send-email-Anson.Huang@nxp.com> From: Fabio Estevam Date: Mon, 2 Sep 2019 23:38:54 -0300 Message-ID: Subject: Re: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support To: Anson Huang Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Sascha Hauer , Catalin Marinas , will@kernel.org, Dmitry Torokhov , Dong Aisheng , Ulf Hansson , Fugang Duan , Peng Fan , Daniel Baluta , Leonard Crestez , mripard@kernel.org, Olof Johansson , Arnd Bergmann , Jagan Teki , Bjorn Andersson , Dinh Nguyen , marcin.juszkiewicz@linaro.org, Stefan Agner , Greg Kroah-Hartman , Andy Shevchenko , yuehaibing@huawei.com, Thomas Gleixner , ronald@innovation.ch, Marco Felsch , Ping Bai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-input@vger.kernel.org, NXP Linux Team 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 Hi Anson, On Mon, Sep 2, 2019 at 11:05 PM Anson Huang wrote: > + ret = input_register_device(input); > + if (ret < 0) { > + dev_err(&pdev->dev, "failed to register input device\n"); > + return ret; > + } > + > + pdata->input = input; > + platform_set_drvdata(pdev, pdata); > + > + ret = imx_scu_irq_group_enable(SC_IRQ_GROUP_WAKE, SC_IRQ_BUTTON, true); > + if (ret) { > + dev_warn(&pdev->dev, "enable scu group irq failed\n"); > + return ret; Better do a 'goto input_unregister' here instead and call input_unregister_device().