Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp425147rda; Sat, 21 Oct 2023 14:07:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZveOkVJksn7C6oI3PgmQJx57N79csrpySPho1Z53BukNGbZSFpmePXWOVoK0ZjxvP3e7x X-Received: by 2002:a05:6300:8001:b0:16b:9541:85e6 with SMTP id an1-20020a056300800100b0016b954185e6mr5822933pzc.60.1697922427320; Sat, 21 Oct 2023 14:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697922427; cv=none; d=google.com; s=arc-20160816; b=YQvbZ8MLodkpTHNNMEmWnY/rZGQ8NLj+4oBpQGfOIxPJ8Ml7JvKnogkbgnLUDCfhbx Y2fSOwIkZR05DMm74XmNoFem14QZMfsVdRmerdPvTC1j0oJ7ffyes4gGm+EkoGTjtOvJ wt+vFqoSxABkea3tR3Ie2xeJaHoeUAe1/vwQoUGaqC1bdaH206/sbbSSTHwh9c8M/nLU nT4zt/6tr25NBmh+DZkpOQnKD14WlnHuC9WL5N+ax9rWHND1GOOqkNtPfOOikVxJfZco gfkeEjImIkQcXg/bdKZBjE9O1rxSHtc9+4QrCMec9eylcR5mWmM8NqCdWa8LwU5OxCtT +qgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oEtAwJnGmkZQd+Vwyks5eznF3VJjSyPO7i5jN1lB52E=; fh=Zj4oA1tcSBhTzl1GsdRN/IX8CvMyajyn8njEuESwAwA=; b=hKvAqoXksP4304qFXjiIYEwvbZG6eiZ7e5pEGbOLa3X6o8GWW2ZbmB3OGntKP8lO6I TWM7wWRO9EEgyWNSSD+NdDLkuzlWabunZSRQLNfpfibarIaHZGPfzpQWpyMRJTTatHCd b5AgzjfZw4Rh7k0Jd4YAUwvowFUJI25VNX3giGrjDCVTeq1MhHHAkMuVNvvy+8WXFenV hf5zQnYg9UkFHCSCEGgSzrihm51zZcimmP7zJwck84Iz2YDAM74mZz5KZMselepJitGV v7Io3I22X4nQhviVBwIzjHQsuMm6eJT2Ge+no1zVRNtmTMasV7F/nJAcG2hHXHpeOCNG skLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SBUDlKfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d17-20020a637351000000b0058986c3dc2fsi3884762pgn.117.2023.10.21.14.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 14:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SBUDlKfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AD7948048C2A; Sat, 21 Oct 2023 14:07:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbjJUVGt (ORCPT + 99 others); Sat, 21 Oct 2023 17:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjJUVGr (ORCPT ); Sat, 21 Oct 2023 17:06:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD5CD51 for ; Sat, 21 Oct 2023 14:06:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0906AC433C7; Sat, 21 Oct 2023 21:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697922402; bh=8wrp04eu57Wu4YRlX3diD5ih+G9GnM8VSg0urfpezNs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SBUDlKfPOwNm+U0lBYjh4V0nJ4V/36UsLGwFt8J+S3GjHqow1ycHSuYR7nqy7vv/V lgOwu6DHBUGKRCO9VPJqcg2LkSAMNRdu+EtBoBHSSKaqWWwlAwO+/TBdKmFZSWRgnf 2rN89AIIYuuazBYboLX0gnCW2acqdWV4r3wYoXcM= Date: Sat, 21 Oct 2023 23:06:39 +0200 From: Greg Kroah-Hartman To: Saravana Kannan Cc: "Rafael J. Wysocki" , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Thierry Reding , Yang Yingliang , Andy Shevchenko , Mark Brown , Matti Vaittinen , James Clark , kernel-team@android.com, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] driver core: Release all resources during unbind before updating device links Message-ID: <2023102126-fridge-clammy-bb12@gregkh> References: <20231018013851.3303928-1-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231018013851.3303928-1-saravanak@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 21 Oct 2023 14:07:02 -0700 (PDT) On Tue, Oct 17, 2023 at 06:38:50PM -0700, Saravana Kannan wrote: > This commit fixes a bug in commit 9ed9895370ae ("driver core: Functional > dependencies tracking support") where the device link status was > incorrectly updated in the driver unbind path before all the device's > resources were released. > > Fixes: 9ed9895370ae ("driver core: Functional dependencies tracking support") > Reported-by: "Uwe Kleine-K?nig" > Closes: https://lore.kernel.org/all/20231014161721.f4iqyroddkcyoefo@pengutronix.de/ > Signed-off-by: Saravana Kannan > Cc: Thierry Reding > Cc: Yang Yingliang > Cc: Andy Shevchenko > Cc: Mark Brown > Cc: Matti Vaittinen > Cc: James Clark > --- > drivers/base/dd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/dd.c b/drivers/base/dd.c > index a528cec24264..0c3725c3eefa 100644 > --- a/drivers/base/dd.c > +++ b/drivers/base/dd.c > @@ -1274,8 +1274,8 @@ static void __device_release_driver(struct device *dev, struct device *parent) > if (dev->bus && dev->bus->dma_cleanup) > dev->bus->dma_cleanup(dev); > > - device_links_driver_cleanup(dev); > device_unbind_cleanup(dev); > + device_links_driver_cleanup(dev); > > klist_remove(&dev->p->knode_driver); > device_pm_check_callbacks(dev); > -- > 2.42.0.655.g421f12c284-goog > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot