Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp193955pxf; Wed, 24 Mar 2021 02:49:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3TO2QtZ190RPT0Oo8x2H0pCEPug2YFPwdoVzMR1/tEkgW1Y8/P4aDuUpJQK4FfNaltIvO X-Received: by 2002:aa7:d0d7:: with SMTP id u23mr2386472edo.255.1616579365854; Wed, 24 Mar 2021 02:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616579365; cv=none; d=google.com; s=arc-20160816; b=T3PWX5O+2kwULiMEE1tO9LYqGqxefia8zDfts6O+/HKJMIL3JSMr7II4rMOnLw/Qxq LQb5E8Nb5spFo0pitYoKIR1xHxbfdNrm681eaadf6ZF0mGdzDWLnRN/QUpyJ5CDsdpCf lIj6e4Gb62rnhNHv7EwkHdfbNxLhqGEVNxZOBpsLZjuD7gJcSxPH28qm7HNB3WQItw+M LWh9pSJoSoBG6iqRBryjeEN2jTE0TbvgcSMaeJdrukfj78UGIXXmx9rmSwrnthqJoKg1 nbqp+Q44sq4hdrauAaKXP7yJXwi9oBkrJZJuZ1dNUr74B6NMwfLq5kx7XUC/b7crUiOm zSIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:date :mime-version:references:in-reply-to:cc:to:reply-to:from:subject :message-id; bh=Yu+c5hKm75xWmBphehGW0wkPgb4hhf6daZ13Tp8/oFw=; b=JR9R+HC6Y/fwX4gehzY2TtrE6TRIT6eolqEuZtV1GQbs4J1HsUeViIeWuY1Jv7pyVL 4ZI9IP/F5CCqr1uo0/w+vons5TEns9tQIl2by5wpFkf2FxJVH/CjSr3EzfKmj3RNZvIi PvQyVQYPWTtXpbf5PorCXZUOgA4uN6FPP5QGAoIhzqtQLfxbqz0RVIusnIMtzs96QZX9 D9AxeG7OJb0bpWFFoZs5KIncfspfS9fDhc7V5bsmmpCL5dKtjNMECuQQnti0K/nK+rL/ 8GA2g/A7LTv4aAX3ucTcwaj1V6DBYLS3lh5zl7eo3E+612JOaM03xc2CX/3YOe6dQbjp JTsQ== 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 q2si1410938edw.238.2021.03.24.02.49.03; Wed, 24 Mar 2021 02:49:25 -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; 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 S235214AbhCXFDG (ORCPT + 99 others); Wed, 24 Mar 2021 01:03:06 -0400 Received: from mail-lf1-f48.google.com ([209.85.167.48]:38406 "EHLO mail-lf1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbhCXFDE (ORCPT ); Wed, 24 Mar 2021 01:03:04 -0400 Received: by mail-lf1-f48.google.com with SMTP id f3so21707097lfu.5; Tue, 23 Mar 2021 22:03:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc :in-reply-to:references:mime-version:date:user-agent :content-transfer-encoding; bh=Yu+c5hKm75xWmBphehGW0wkPgb4hhf6daZ13Tp8/oFw=; b=G4lMJVut5IVzR1UvZhn5dr/KqdQR5EnhK/SZ7+X00hxhpZxfYS04tOnjYCRzCOi24Z 7v9+hecM/hKw3scWXN0uxj65ua8sE9l0E2rvDYoG5XiXdkR4rZ+DVB7rvLr0au1HKE5J d8AdrvmBVFShU4S3m3i+4/ekf8WJpLrQP2/BVyWOjD0m7ebZLbanCwf4WYPMY1FZd9ym QWnPryHDQgvZWNeAVnYytqoemoRiQ7qqHm8zvm6hHBxcUtAcUT+jxxCx3nPwioCJIvsg oBcN0Tc6gGipjV7PjgluLDwkWfq++RymKM22Hos6aDR5AijMc6tXpRBqb7ZrdQ91hP34 saiA== X-Gm-Message-State: AOAM5329dARjr+NkQCZo1BNKonrYzxfn7lG5POdHP/x35gSTRiiZiRND QHECbllop/VFtdRTg3nByE7Wxmmzc5E= X-Received: by 2002:a05:6512:34c3:: with SMTP id w3mr833800lfr.437.1616562182708; Tue, 23 Mar 2021 22:03:02 -0700 (PDT) Received: from dc7vkhyyyyyyyyyyyyyby-3.rev.dnainternet.fi (dc7vkhyyyyyyyyyyyyyby-3.rev.dnainternet.fi. [2001:14ba:16e2:8300::2]) by smtp.gmail.com with ESMTPSA id h206sm114917lfd.4.2021.03.23.22.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 22:03:01 -0700 (PDT) Message-ID: <1f5247a81077f6cb3c96730b1202bbd61dd1900b.camel@fi.rohmeurope.com> Subject: Re: [PATCH v3 3/8] extconn: Clean-up few drivers by using managed work init From: Matti Vaittinen Reply-To: matti.vaittinen@fi.rohmeurope.com To: Chanwoo Choi Cc: MyungJoo Ham , Andy Gross , Bjorn Andersson , Guenter Roeck , Hans de Goede , Mark Gross , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, platform-driver-x86@vger.kernel.org In-Reply-To: <14800e19-da8c-81ba-48ee-cc51cc1925c9@samsung.com> References: <14800e19-da8c-81ba-48ee-cc51cc1925c9@samsung.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 24 Mar 2021 07:02:52 +0200 User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Chanwoo, Greg, Thanks for the review. On Wed, 2021-03-24 at 11:09 +0900, Chanwoo Choi wrote: > Hi, > > Need to fix the work as following: > s/extconn/extcon > > And I'd like you to use the more correct patch title like the > following example: > "extcon: Use resource-managed function for delayed work" I think Greg merged this already. How should we handle this? > @@ -112,7 +113,9 @@ static int gpio_extcon_probe(struct > > platform_device *pdev) > > if (ret < 0) > > return ret; > > > > - INIT_DELAYED_WORK(&data->work, gpio_extcon_work); > > + ret = devm_delayed_work_autocancel(dev, &data->work, > > gpio_extcon_work); > > + if (ret) > > + return ret; > > Need to add the error log as following: > if (ret) { > dev_err(dev, "Failed to initialize delayed_work"); > return ret; > } I could send incremental patch to Greg for this but it does not change the commit message. Best Regards Matti Vaittinen