Patch "reset: Fix devm bulk optional exclusive control getter" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    reset: Fix devm bulk optional exclusive control getter

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     reset-fix-devm-bulk-optional-exclusive-control-gette.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ce21c4e433469d37295348700d878213099cb47b
Author: Serge Semin <Sergey.Semin@xxxxxxxxxxxxxxxxxxxx>
Date:   Fri Jun 24 17:18:45 2022 +0300

    reset: Fix devm bulk optional exclusive control getter
    
    [ Upstream commit a57f68ddc8865d59a19783080cc52fb4a11dc209 ]
    
    Most likely due to copy-paste mistake the device managed version of the
    denoted reset control getter has been implemented with invalid semantic,
    which can be immediately spotted by having "WARN_ON(shared && acquired)"
    warning in the system log as soon as the method is called. Anyway let's
    fix it by altering the boolean arguments passed to the
    __devm_reset_control_bulk_get() method from
    - shared = true, optional = false, acquired = true
    to
    + shared = false, optional = true, acquired = true
    That's what they were supposed to be in the first place (see the non-devm
    version of the same method: reset_control_bulk_get_optional_exclusive()).
    
    Fixes: 48d71395896d ("reset: Add reset_control_bulk API")
    Signed-off-by: Serge Semin <Sergey.Semin@xxxxxxxxxxxxxxxxxxxx>
    Reviewed-by: Dmitry Osipenko <dmitry.osipenko@xxxxxxxxxxxxx>
    Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220624141853.7417-2-Sergey.Semin@xxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/reset.h b/include/linux/reset.h
index 8a21b5756c3e..514ddf003efc 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -731,7 +731,7 @@ static inline int __must_check
 devm_reset_control_bulk_get_optional_exclusive(struct device *dev, int num_rstcs,
 					       struct reset_control_bulk_data *rstcs)
 {
-	return __devm_reset_control_bulk_get(dev, num_rstcs, rstcs, true, false, true);
+	return __devm_reset_control_bulk_get(dev, num_rstcs, rstcs, false, true, true);
 }
 
 /**



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux