mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
Update peci-next for v6.19-rc1
A small change in peci-aspeed converting the driver away from deprecated round_rate(), allowing it to eventually be removed from clk subsystem. -----BEGIN PGP SIGNATURE----- iQJOBAABCAA4FiEEVeIYQcCloMPRsCC93RgStozwYHYFAmkMr6waHGl3b25hLndp bmlhcnNrYUBpbnRlbC5jb20ACgkQ3RgStozwYHZiUw/+KVu44U3V5qhmX2HZCBHn rFZyRlnpGUmLZfl3rYq4yzJ8joYrsMXeig00OvkB8uTBcc8sifPtsuR5GznvuS2E JH/bk5AUrc+V8wLccNPOsLooP1JliPfnn04Ff6vTiEKKPxLCuXKiBmIAl0rFHC4U vAzT5s+7LGwRnZ9nUCif+i4p6uLJwgcjCYxVCDKJSZUEF76R9uhLerneexfy77Xi Xx47fhrNQOoquNPS0Al/rGH/0bD6i9HzBuKif8fm6DloGoXmsKx7bcwzlUP24mW7 /KKZg9JaYf92a591aWBPp+wGxbHBOAOCGONKeE1eU6GVU+HKTFoMMZaGB92ig7Kv dg3tZztufnKKabPYCuQp6U0TPUWw8FVtmTnF1LKG911xUrAVfsxDO7CDWdxg7Chk JWPi7GYIQdukr6ZFKHHuAbJHPVBOTnBeHp2jOBz9LfH2s7xpEk5O/nuy/xpQDjmk D7D1OGstTaEbGJJPZoB4dxk08FXvGIATNXrkh9RDWRxiiJOHpXomfF21oAMxH0By KSDG+9G1n5kbvuAzh4Ol5XsmJOzgF6AB9/wV/Ula2cHl2DmWVrBv7WeSo+TgB/OX KLfv0n16jMdtzvTWOHca/AJIk8qRK/CCtIk8mdzos0Oui19kdSL+Or5rLjGw3CeV Z85Jw/jf6tiGka2KSBRBYzg= =H7mZ -----END PGP SIGNATURE----- Merge tag 'peci-next-6.19-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/iwi/linux into char-misc-next Iwona writes: Update peci-next for v6.19-rc1 A small change in peci-aspeed converting the driver away from deprecated round_rate(), allowing it to eventually be removed from clk subsystem. * tag 'peci-next-6.19-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/iwi/linux: peci: controller: peci-aspeed: convert from round_rate() to determine_rate()
This commit is contained in:
commit
e3d63f4ef3
|
|
@ -362,12 +362,14 @@ static int clk_aspeed_peci_set_rate(struct clk_hw *hw, unsigned long rate,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static long clk_aspeed_peci_round_rate(struct clk_hw *hw, unsigned long rate,
|
||||
unsigned long *prate)
|
||||
static int clk_aspeed_peci_determine_rate(struct clk_hw *hw,
|
||||
struct clk_rate_request *req)
|
||||
{
|
||||
int div = clk_aspeed_peci_get_div(rate, prate);
|
||||
int div = clk_aspeed_peci_get_div(req->rate, &req->best_parent_rate);
|
||||
|
||||
return DIV_ROUND_UP_ULL(*prate, div);
|
||||
req->rate = DIV_ROUND_UP_ULL(req->best_parent_rate, div);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static unsigned long clk_aspeed_peci_recalc_rate(struct clk_hw *hw, unsigned long prate)
|
||||
|
|
@ -394,7 +396,7 @@ static unsigned long clk_aspeed_peci_recalc_rate(struct clk_hw *hw, unsigned lon
|
|||
|
||||
static const struct clk_ops clk_aspeed_peci_ops = {
|
||||
.set_rate = clk_aspeed_peci_set_rate,
|
||||
.round_rate = clk_aspeed_peci_round_rate,
|
||||
.determine_rate = clk_aspeed_peci_determine_rate,
|
||||
.recalc_rate = clk_aspeed_peci_recalc_rate,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user