Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp206832rwb; Thu, 12 Jan 2023 05:26:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXsVEVB+VGDSJBhWGsAbDrjowKETPiGECRIB71fPt3/5hKmqgy7B2qauNDUgYENubAxZceGi X-Received: by 2002:a17:906:8601:b0:7b2:91e8:1553 with SMTP id o1-20020a170906860100b007b291e81553mr63396349ejx.20.1673529964836; Thu, 12 Jan 2023 05:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673529964; cv=none; d=google.com; s=arc-20160816; b=Qi2NTPpffA/qLicz2nntD11Cgwwn0DTRbKn+cjLFkEtA4z9yUizG81ZL/NWRvMGAUZ fpFDH8H3UYU6xduT71TFg9DxqAiFMvvIVh5GH2+FY5AijsIwEMeQ3U0KN0jLu1g9rGca xUkW7frMASLIRZbb9YKTlCrksO4WhY60WoCvSCL4TNp4VN7v5FsrGIhgklyg65A+QZiL fdtFX322u4Fb5wW+C8ym5WZx4A2hBgspFJeotA5s6rCHgnlBjJpWgeqr21JSHq9D8sI0 rDnVFGlhKezZG3gGwXPI8ZEyd8a2nv3bHJnGPv/G5dPkRATENaVUzzdYsQ2qfDS0bNsY n4rw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ck2XaDpgi5d5jD6ccHNaQq/9RG2aFUCG16tZ/JUO43M=; b=jUrSxVPepTEbhZ0ZQpHucu1mhYmrJF4S4kAPJRC5FCSNHACvYySWhB/UacRDWdYy0C DfYLeeSu3HbXwro+3kSvEcEZBW193XD+LNRt2oSb/zR3TIWFrlOIskFSGOABGcY8XCRz dNFgmaUAvBf+VFBgj06t5ODgele/Cl6ik50uu+evVQfVlp9HfLczATxz6XDDFTIcT+i3 4uwoNAiXTEa/8V2JN08+3UnynA2ecj7+mYqd7pZ9h5LS6gZmqiaKjyJtkBwMHl1Cp8PM A3yPyPzMKHwT1zyTugAjXhq6Bnq77/tJVNBwEPlLddTWIoZXAN0FU+yHaCooOF8DAcef BhUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gVVZ+BYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mm6-20020a170906cc4600b0077945c44b7fsi15018540ejb.856.2023.01.12.05.25.52; Thu, 12 Jan 2023 05:26:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gVVZ+BYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbjALMwl (ORCPT + 50 others); Thu, 12 Jan 2023 07:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbjALMwd (ORCPT ); Thu, 12 Jan 2023 07:52:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83604EC8E; Thu, 12 Jan 2023 04:52:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 687AA60AC3; Thu, 12 Jan 2023 12:52:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C37FC433EF; Thu, 12 Jan 2023 12:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1673527951; bh=y28Fp8xoZWZVm5zKdmGi0Ihx0GiHsk0YCVX29bnybjg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gVVZ+BYzKXdi+W4nuI6DYf7ZadoindJpejIWncosE+Uv+CPmFi5+p6P2bQP1Nl3Bb 2tXnG3n5M1l1gA5q/gZVIU+fVW2wJYsHZ1YHOPXWwHs74HxXND3vKqWVjQ5UJYQVpS /lNsf/k9GJCUiMVgE8KcxzSGLIfeTYispfrTv4Zs= Date: Thu, 12 Jan 2023 13:52:28 +0100 From: Greg Kroah-Hartman To: "Isaac J. Manjarres" Cc: "Rafael J. Wysocki" , Marek Szyprowski , Tomeu Vizoso , Russell King , Ulf Hansson , stable@vger.kernel.org, Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH stable-4.14] driver core: Fix bus_type.match() error handling in __driver_attach() Message-ID: References: <20230110021536.1347134-1-isaacmanjarres@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230110021536.1347134-1-isaacmanjarres@google.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 09, 2023 at 06:15:36PM -0800, Isaac J. Manjarres wrote: > commit 27c0d217340e47ec995557f61423ef415afba987 upstream. > > When a driver registers with a bus, it will attempt to match with every > device on the bus through the __driver_attach() function. Currently, if > the bus_type.match() function encounters an error that is not > -EPROBE_DEFER, __driver_attach() will return a negative error code, which > causes the driver registration logic to stop trying to match with the > remaining devices on the bus. > > This behavior is not correct; a failure while matching a driver to a > device does not mean that the driver won't be able to match and bind > with other devices on the bus. Update the logic in __driver_attach() > to reflect this. > > Fixes: 656b8035b0ee ("ARM: 8524/1: driver cohandle -EPROBE_DEFER from bus_type.match()") > Cc: stable@vger.kernel.org > Cc: Saravana Kannan > Signed-off-by: Isaac J. Manjarres > --- > drivers/base/dd.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) All now queued up, thanks. greg k-h