Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1222595rwi; Thu, 20 Oct 2022 09:59:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wBvrhwYMSEPG9vR+6gfgKLUVCGDlvbLC3C+LkZunDbCVFrfrItarizRmlMxwzfdAJDV9i X-Received: by 2002:a17:903:32ce:b0:186:659b:59d with SMTP id i14-20020a17090332ce00b00186659b059dmr3547941plr.143.1666285180162; Thu, 20 Oct 2022 09:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666285180; cv=none; d=google.com; s=arc-20160816; b=Qvyje3ju1gtchu4HnAt54rWtLFFsVFrJHq++BQOxbXK5K5AOjRVjNv2k+wRg6ecI1T 38BRAEgTkRCIwGCFY4JBkg2vYm+sKdP6XW0AgjIUrem8sYxG97APkvLL/m9gKZvkST/+ eZvx9h+ljgU7b2lI7vDHLoZj9ARCoWGJt1mApdQ12gIU39QfEwBjcAMafDIQcbNWJtOk ikB7pQB6GFw24bRyyHe3OJcjozr8iw1n1dFcS9l1HEkmBjefr8lUAfYec9kR/FPXC9RU gGmNJeBdWtNKI2vKeABBdEGIB5ObYQVjMfXaiC7ksCbZzIvTIgJOqgICY9f2/Qw3f6Xj e0Cg== 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=+dKdYyXfBkKZOD280M5QxT67FY0etoa+/18/8UUz9Zc=; b=TOEKcPJbPbX6aSxDCDUxIKQVfAgT0XI/SkUp+HqM7WwW6HsWqLxH4HEygLxb3qpy0T x9SvOaY4ffEUSDHwEOSFq3yCop2tIPFtSd69xovCF9YooHAcFSXgHT3pggEUAlijpFW9 sZMldrhoDESoEW3g/79ulN+A/RSPXF4LbgmVAJ0Skz6ukk+TPKx89bh45oqfV1EqW+rB MSyiDdWtZrTRI7Cqh+mpqKukLAN5vx0R0iAQhx4cIDt2/WHICv8JEOGXAxdB1TMVItwG XarE4eHfZROuaihZPmdBpiGV3RlHehvcQBKj8GtfgMEzHclO812xcyoCBHZWgxCmcXw4 nHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=nUhwL0Pp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a635810000000b004479c5e73ffsi21754060pgb.474.2022.10.20.09.59.25; Thu, 20 Oct 2022 09:59:40 -0700 (PDT) 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=fail header.i=@mailo.com header.s=mailo header.b=nUhwL0Pp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiJTQmB (ORCPT + 99 others); Thu, 20 Oct 2022 12:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiJTQmA (ORCPT ); Thu, 20 Oct 2022 12:42:00 -0400 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDA7F578A7 for ; Thu, 20 Oct 2022 09:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666284109; bh=eU4dltmhwC23olawmmrVxzQRXFJ5uD5ED2m42yk39gY=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=nUhwL0Pplz+Y15YoZrIdU3PLW3+NqNpHSundxXqpeM++hDMDAaYaxJdNWkD3HmG8P Y2LLqoIUwrG+Xf+1bmJvfa/2FYND5PHIMuSL0uRjoJWWKXsPCvztF3md9XZpmwVCKy ladIJhCDL/QlE15VBT/I7aZ1yfcJnfrZzMJSXr78= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via [213.182.55.206] Thu, 20 Oct 2022 18:41:49 +0200 (CEST) X-EA-Auth: oaKrrkylZFZT71L4Q8fHIOD96HtL5xU2LXsbcHyIbgfFFTV9OHbWZlDZIOaS0DYEEFcARVgTG4zGv9EdnbDD1PXEBmKIWAwW Date: Thu, 20 Oct 2022 22:11:44 +0530 From: Deepak R Varma To: Greg KH Cc: outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kumarpraveen@linux.microsoft.com, saurabh.truth@gmail.com Subject: Re: [PATCH v4 1/2] staging: most: dim2: read done_buffers count locally from HDM channel Message-ID: References: <83fd237d2ac157d234e9c7cce1206904c2d8773d.1666208065.git.drv@mailo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 Thu, Oct 20, 2022 at 05:03:14PM +0200, Greg KH wrote: > On Thu, Oct 20, 2022 at 01:24:53AM +0530, Deepak R Varma wrote: > > The function dim_get_channel_state only serves to initialize the ready and > > done_buffers fields of the structure passed as its second argument. In > > service_done_flag, this structure is never used again and the only purpose > > of the call is to get the value that is put in the done_buffers field. > > But that value is just the done_sw_buffers_number field of the call's > > first argument. So the whole call is useless, and we can just replace it > > with an access to this field. > > Are you sure it is useless? Hello, pardon my limited understanding, but I think this function call is not necessary. > > You have changed the logic here, you are now thinking that this value > can never change, while before you were ensured of getting the "correct" > value as it is under the lock when the function is called. I may be wrong, but I do not think there is a change in the long, but I may entirely wrong. The function was called from inside the lock scope, now we are extracting the value directly, still inside the lock scope. This should be safe. > > I can't take this type of change as a "cleanup" patch for outreachy > unless you have the hardware as it is NOT a basic "checkpatch" style > cleanup at all. Sure. That is fine. > > If you want to get this change accepted, please work with the maintainer > of the code and get them to agree that the change is correct. And if it > is, odds are more things also would need to be cleaned up at the same > time, right? I am eagerly waiting for a feedback from the maintainer. If they agree with my viewpoint, I will continue to work on this change outside of the clean up patch tasks. I will be happy to :) Thank you Greg! ./drv > > thanks, > > greg k-h >