Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1531985ybe; Mon, 2 Sep 2019 23:13:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqydV/eUxFtSrs6K2LeehlgMsCdjUmIC+eCC4/CsugGDPKaLDQN7kMzrZUKltPqjso4wnJOH X-Received: by 2002:a65:6552:: with SMTP id a18mr29303643pgw.208.1567491213325; Mon, 02 Sep 2019 23:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567491213; cv=none; d=google.com; s=arc-20160816; b=tXqg/Dp6aWa+kDY/TvSCHsgBSjGgIVmRiwXdp0CpnHzJ3RaD8oSxTvQJ1/vtn7QzKe ISxdBCTEVlEySWpbUFkqYuBb/wZUaKz0fW+3lxtAdFDItoDndyy3L+bmarar3V635rbT jj553abnLjYvfcIjbym1K5ZQY2EAExLb78cYUI05UFwZOkbLiGQSQ6cIJp/ou1KAlJ2Y 0qEa1d7Ij8R6+5a0e9rMrUdpaMCEr0vEl3l2T6rt3jYaVeMF22b6UlCXdd3TTpLiWUZW pgG31oesJbRzN5CLss9ecLncKXjD+y9N6eZV+CwPBt3zojy8/ksvCgnMRjsDYMTt0fP+ FKGw== 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=GZ5aGUxM1e1yAxeiEBXNgI8jjZDu1KoSilHhJTQM1zk=; b=ABwhrAB2yIlmwHYP4GL4m+wTP4nbIrrKzeWWtomVlxxrZr/yYKWouU2yH2wGaDatP0 Kaqd38S8+SzbjhaMKJUEvIN8ovb3L3bNm6dur52IyyuMYl1ryYXEXWmgWALDRW9Ca0uI LtgkWNwtlUJeC9WTmGn5qtFNtchBv/rCEiqjLxxii8h9ckKaI1dCJap2jbvCD2legd6i e8VG4kkIv95Rsbz1OECJl/pYAcY83rmjTU384K8nBWMJVYAGEJQ3ep7jfq3iDwx+RrKD 5x3ydLrux6/NHs+2eqYE3sJxN/0Dngkc7n8/YiHfXmK2WWrQoeyPSaVQK7anhmXgyhtR CNyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wep3juTm; 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 x125si13628029pgx.332.2019.09.02.23.13.17; Mon, 02 Sep 2019 23:13:33 -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=Wep3juTm; 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 S1726481AbfICGM1 (ORCPT + 99 others); Tue, 3 Sep 2019 02:12:27 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:43679 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfICGM1 (ORCPT ); Tue, 3 Sep 2019 02:12:27 -0400 Received: by mail-io1-f65.google.com with SMTP id u185so29482191iod.10; Mon, 02 Sep 2019 23:12:26 -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=GZ5aGUxM1e1yAxeiEBXNgI8jjZDu1KoSilHhJTQM1zk=; b=Wep3juTmL73l+HU2tDif3J1tPbmROfBh6z6wBs94tp5cxNJLrGZxFgQlSGpnSSRPPH oTkMvyeCpeMI5ECRFaSvjc9HiQJEfMCTk/lrFOVPmYGQXwyKcc8CUmRCFzIIrhLaKNyD 3z2XRvdXF3fItuYEDCvcBCCLPjkFafM2rG2rMtVyUOlLRyLgiYWpW4GYClUyepfweeaz b3+lKyAmSHAcLNppvm3AGZEOMUfXrcl2ixluW/2FhVQ07TRYZoTjzrKw5MojHYEW53lB 3DjQQ0aVOgb8yJ7gxDI9GPt5lRBBDtqtJrH5EjLGIn+IEeWGL90mvoGz6Fa4Gxa0xoPo xKSA== 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=GZ5aGUxM1e1yAxeiEBXNgI8jjZDu1KoSilHhJTQM1zk=; b=KmJlZl5H009KsSueieKeqo9izO0IV16u7UhVBzzQUM0y3ZIaB7Y01cDQoyd5cRrYfr 8PW+BkZ4/W8IzUknXm33VBHoRbRwNJm2dutv4VBbeX6t3YMKOe4dbmaYD3P2ycF69HT6 ldPxBdouu0FuRHv9buZRG0OoeA/4TDuzyCxKD/YP1Z9xKWMkSVUd6fk9N2v3O7YRZg7y v0XGKCjB5GFK4+cuUsxX/gSae5/AYqFwmqHlxgYNuiu46ivnomN82WvfQEhmNy2aFVS7 3Ccs/ofTicaf4VxFsz/BRiyxyU1GkqLleQs6e/9qB2eqZygQ3cigCR9w/4tPLodOsXt3 iZeg== X-Gm-Message-State: APjAAAV0KH86GaeZi3GQy9HAfYez7OkIF/o8/rkysIQ0zkuYcLY9Tmkc LONJZIdYk+A6T4+KSTkCN02O2jsCyzvPm7x6WAo= X-Received: by 2002:a5d:974d:: with SMTP id c13mr11863170ioo.87.1567491145896; Mon, 02 Sep 2019 23:12:25 -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: From: Dmitry Torokhov Date: Mon, 2 Sep 2019 23:12:14 -0700 Message-ID: Subject: Re: [PATCH V2 2/5] input: keyboard: imx_sc: Add i.MX system controller power key support To: Anson Huang Cc: Fabio Estevam , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Sascha Hauer , Catalin Marinas , "will@kernel.org" , Aisheng Dong , Ulf Hansson , Andy 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 , Jacky 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" , dl-linux-imx 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 Mon, Sep 2, 2019 at 8:11 PM Anson Huang wrote: > > Hi, Fabio > > > 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(). > > Agreed, will fix in V3 later. Not needed actually as input device is managed by devm. Thanks. -- Dmitry