Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp770498pxu; Fri, 4 Dec 2020 15:30:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEnS+8XtPmGNshS8f63eVj5g0a+td5bH6mGgj5eIF4ZdQzIqBowAiAAYbkvEoqg6RfrWL/ X-Received: by 2002:a50:e18c:: with SMTP id k12mr9799899edl.58.1607124649710; Fri, 04 Dec 2020 15:30:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607124649; cv=none; d=google.com; s=arc-20160816; b=CV8eerMdtPC3fwTppogdRgA42hr5PBBcsSqwLLHsj2ssXaX8LqMc9oQVY3aTWsgxlz Xg2uGG2bOLJ9aXKzH3vL9gYWG4D6+1le0yK8CJpd6mZDAoqES0z5MtQvB2eMxLlJF0Ga mG+rJwxn1GKGi8jJGOE0d0m5dSSz6N3wea3YToxxBR3Tgq6ptzBIwa2ae+0f19N1lJoJ 2OLlLXMVBtYh/M2ZmUY/6fUA5onyQe/vaUqw0ADVX94mLv4CQYeSUIZG3mxGePnG+hZb aJIze0yYw0P6cwSPgVx6DQDKLWXqGscTQkIAbkEyvm0CGTHqxAZpb9fB2vY/B+N5t2KP 8rFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=tRd3czlcgEfSQ1/izCZk9M5n6dlWTYetrUaNu4W98KI=; b=W0jcywYsZ9vzHeyO5kE3MQ/WXv1U8AphfjSUpKwMIVcwu1+lEdVllDkoP754S3hYA4 /dW1A5lrAdA9wCkbW0T/6D4XhdSpNxHagwB8AXKocf0DOP+S6+X/HyTPmjrHt+CzBBZx 72GkDjeelwsl5/934e3ILGQ4jrwcauouck1/ZOugwVTggKSv0hGkTGMzkdLZ3328uwSC LOLbu6Mbff3cQA8FXXXtsoqkpWAd1OOeMVavbp+gXk/EjBpgB0heIaLlmcgFMO/PM2GH c7FV9adaT1Ii7PzMiLXJcZFG4NLmEsEMZshya4EZ8oYnwR5MHT3I6Mde704+TOth7usi vsUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=DhYdgb7i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si2743358eji.696.2020.12.04.15.30.27; Fri, 04 Dec 2020 15:30:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=DhYdgb7i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbgLDX1W (ORCPT + 99 others); Fri, 4 Dec 2020 18:27:22 -0500 Received: from mout.gmx.net ([212.227.15.19]:35179 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgLDX1W (ORCPT ); Fri, 4 Dec 2020 18:27:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607124342; bh=tRd3czlcgEfSQ1/izCZk9M5n6dlWTYetrUaNu4W98KI=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=DhYdgb7iOkbah+eFCBoIgY3p5yNgeDHjI2/DpRQFZEcgJayhJXzGCnx9ExRmnHeNo qPmd6AEAKOA3jq3kJvrKK/HTUl0GTYdXWaFXgjqHnjFMUpHIzzQy5upTn21fMzyrhQ VTwH6p5ebsOWV66QWIpD7bDc8SWftG5JLv2p53vI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.51] ([78.42.220.31]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MaJ3n-1kiHUO3R0X-00WGyA; Sat, 05 Dec 2020 00:25:41 +0100 Subject: Re: [PATCH v2] pwm: bcm2835: Support apply function for atomic configuration To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Cc: thierry.reding@gmail.com, lee.jones@linaro.org, nsaenzjulienne@suse.de, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sean@mess.org References: <202011281128.54eLfMWr-lkp@intel.com> <1606564926-19555-1-git-send-email-LinoSanfilippo@gmx.de> <20201129181050.p6rkif5vjoumvafm@pengutronix.de> <4683237c-7b40-11ab-b3c0-f94a5dd39b4d@gmx.de> <20201204112115.wopx5p5elgte7gad@pengutronix.de> From: Lino Sanfilippo Message-ID: <5c7c96ff-5323-2dd9-b56d-57a10b6576f2@gmx.de> Date: Sat, 5 Dec 2020 00:25:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201204112115.wopx5p5elgte7gad@pengutronix.de> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:J7D3IljvcFKB8xabtlS2uf7mIZaz9+XeSc5RyjR+AeJhx/yu/Ig 9fnMI5hViCJnwyAANq5AgLNFEqtODIfB3Xi6fzkWhcR7ughTwF5r7jVESFpQtuouMbQXJFE Ve7uP67v5nX1+0WPx0yxZAODO54fVftP3QhMJdpJwl78WkGboD0t/dmmgZPQcxTf/rFsDTt kFZjAvY3zFsIvufT1YWtQ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rote: > > I'd make value an unsigned long long and check for > 0xffffffff instead > of repeating the (expensive) division. (Hmm, maybe the compiler is smart > enough to not actually repeat it, but still.) I also prefer unsigned long long over u64 since thats what DIV_ROUND_CLOSE= ST_ULL returns. However since we have the constant U32_MAX for 0xffffffff we should use th= at. Thanks, Lino