Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8521722rwb; Tue, 13 Dec 2022 07:21:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VpvX+1jmLtFTL0ciEaeT2XSztnVjB4kCbguqQd2uqZmvAc0ea4YcuH/Vvtq+oUs3oKCnu X-Received: by 2002:a05:6402:3895:b0:462:7b85:33aa with SMTP id fd21-20020a056402389500b004627b8533aamr16434953edb.2.1670944914865; Tue, 13 Dec 2022 07:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670944914; cv=none; d=google.com; s=arc-20160816; b=COuavGJSplF2+gA0pTcxTFx6NsF8OBogNBLdTaIWO5IZLHS57Xzz8Deux866l3hVBI 2acQP0v2bwvfse7p6FgfOcAGqD/O4X3w0Kw32YNlNjl/ZzEyktF0FPmD0dl/QqH6nwO7 mIGIfQD2RcqxGvCU3gybdYmO+gUJcfo/ml6zS9IzL9KrgkDRKjN6gzZA9Vza4znNTUbn 8KXH4aadq1sZNGz8VfWGVJU9lccZd6OYlLDpyZeYv1/RR5iwQ9L/8BbLeLg+EBTCYYbY KEnhH33AR3+bh2IMf7zNkSWLt81xJX/YaK5hXDhIOGqw7Uvkct6+G0xi4rSdpYCfQP6D LT9A== 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=u6z5qOTlvK7WVyGdNieFNO4QlhTwA6IwgVXcuw3Dzag=; b=LhPp/8/iN0mpKD1rKKvTcXjd/iMqHaQNKoC1Fhl9g8tmumWWqEFEj2w/afWCY9K28X XlxP7Jpey/hAI1aQf5Hxc+DdpNc4uqagMxQ0zsjjhbmsQi8d2+R5vistmu6Dfmebtx3s aW2VUJ1oACdv4umPeJwKV4DbyVHsiyxp7VrdfE9DTZuhQIHz//p1BrIH6JEc6fTmLsTf 8t29bVTe8qYDWT16EcKwpDW+p79ehdK5A7VMzsSbcZXTOtjrC1QXs11RPsH+AzItgK0H tUtPvj9XPL9D+dc4D0Q6FboaT1an4FH6n9i+9az5BmgQZuBhIkVUXzO1QfLCiCD+OeR1 7J5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x8cgiEPX; 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 r8-20020a05640251c800b00458d1c48708si9592990edd.303.2022.12.13.07.21.37; Tue, 13 Dec 2022 07:21:54 -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=x8cgiEPX; 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 S235808AbiLMPKA (ORCPT + 72 others); Tue, 13 Dec 2022 10:10:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236085AbiLMPJg (ORCPT ); Tue, 13 Dec 2022 10:09:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 097BF64F3; Tue, 13 Dec 2022 07:09:36 -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 ams.source.kernel.org (Postfix) with ESMTPS id A82C6B811D8; Tue, 13 Dec 2022 15:09:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D05C3C433D2; Tue, 13 Dec 2022 15:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670944173; bh=xGXEA82kBEqZbxT9/Nu5SNY3CO1PQV2Lv3Lly8E2Uis=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=x8cgiEPX7bGmlk76rw87PnZWQAcfjNbSml4bFgUaqCk0iV8f93zau89zqTwRWdU4N xBnwg8FUJpY9+8eskrPlaSRF1lplo+z+DuH/QmwrJR2c33ILzuKvy7J9xfuoFFecKC SqdG6I4ixQ8OiPerRf1puQfzXA4mZcR1dopf03HI= Date: Tue, 13 Dec 2022 16:09:30 +0100 From: Greg KH To: Jishnu Prakash Cc: agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linus.walleij@linaro.org, quic_kamalw@quicinc.com, quic_jestar@quicinc.com, sboyd@kernel.org, quic_subbaram@quicinc.com, quic_collinsd@quicinc.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org Subject: Re: [PATCH] spmi: Add check for remove callback in spmi_drv_remove API Message-ID: References: <1670145780-13111-1-git-send-email-quic_jprakash@quicinc.com> <1670145780-13111-2-git-send-email-quic_jprakash@quicinc.com> <367fdcef-7360-055a-897b-71a66063b4ba@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <367fdcef-7360-055a-897b-71a66063b4ba@quicinc.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 Tue, Dec 13, 2022 at 07:12:10PM +0530, Jishnu Prakash wrote: > Hi Greg Hi, please do not top-post :( > These are two SPMI drivers without remove callbacks defined: > > drivers/mfd/qcom-spmi-pmic.c > drivers/mfd/hi6421-spmi-pmic.c Great, they should be fixed up now, right? > We made this change after noticing an issue internally with the first one > above, there was a crash when trying to remove it with rmmod, which is fixed > by this change. Then please say that in the changelog text, otherwise we have no idea _why_ this is needed. All you said was "add this new check _IF_" and we have no idea what the answer to "if" is :( thanks, greg k-h