From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81ADB63B4 for ; Fri, 18 Aug 2023 10:16:38 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-3fe4ad22e36so7169845e9.2 for ; Fri, 18 Aug 2023 03:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692353796; x=1692958596; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xT8+MKFYhwDGJJlvX0Cp1TcbV86ZhXMTlJomaVEwgGY=; b=CVCeFW1qwsF/npfnesl3FuRhg/tLHCGeEsh7UHYtvOin94xpV0qjyDRJ70BuD4hpu6 8uaRoXU6nNs4wv/xIFx7ARm7/OquG4tpPMvSLc12D/Sjsa7pWGcMr1d0AEwSvJSPv4EG DP+Pgyr70BPTX2TQGqU4EEKjCgPtpPjLOSvgYjRsGjPvvohyPJ4roWTZMdDLTHzDC8Dy ZFLHp8y55aVZJDc482avoRIKuQmu/x8ZZu/ZhA9lGCSwTg7AIb7ZrH4phwlEKYlgleVt 93oBV+sGftUwtYUOq4Kdj48/FR+KJvttlCUfkTa2R0PJBIGBnf+eMMF6vT/g04b4rOdI Jngg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692353796; x=1692958596; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xT8+MKFYhwDGJJlvX0Cp1TcbV86ZhXMTlJomaVEwgGY=; b=lnQ0/5WZ+TT1jK+CvqOuQ6Gs95jB3uZ231cDBjbq4s/PLVrsQzIUJ15v8T9V07y2bi j3tOYKpyPxQxQrHtLGPqp/6gmR5eEWZEBw9tkFA3ONQbWqyaBWbcZomxfhwMWSjw46uo s0pg69DtsByWSjheUxukflBW0Z/14JPbzSi4jdcjlLhZhJzsbMIxnc0JmdzcxIbIfQh0 GkrSCgFJUUnXB5cEMvp2kQKqRmHHzzJWkia27ShA9NX7WB2aMTCeukgvQ96aPLSORJ7Y +5teQBfK0KTzuatWho8PyckSkldALlv8epUFhXmMViNykggojVS8hP3AnYwHoy+sQ/Xw NyRQ== X-Gm-Message-State: AOJu0YzjebhpCVDJJIZRy1sgfKAq9sh5Og80nJG0uq+vFFjXcFbxs5Sp LgX/Taif/4TdJPp8jGmZwtoHOw== X-Google-Smtp-Source: AGHT+IFcQ2qlK0GQP8GEXTsQak2+MXePR53tGpyJ3N820c/YZeJJd+vKtxglC7xqvrCg8cA86IPp4g== X-Received: by 2002:a1c:7206:0:b0:3fb:e58c:7758 with SMTP id n6-20020a1c7206000000b003fbe58c7758mr1825096wmc.3.1692353796543; Fri, 18 Aug 2023 03:16:36 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id o10-20020a1c750a000000b003fed78b03b4sm416800wmc.20.2023.08.18.03.16.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Aug 2023 03:16:36 -0700 (PDT) Message-ID: Date: Fri, 18 Aug 2023 12:16:35 +0200 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/3] clocksource: sun5i: clean up and convert to platform driver Content-Language: en-US To: Mans Rullgard , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20230630201800.16501-1-mans@mansr.com> From: Daniel Lezcano In-Reply-To: <20230630201800.16501-1-mans@mansr.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 30/06/2023 22:01, Mans Rullgard wrote: > The first two of these patches remove a bunch of duplicated code/data in > the sun5i hstimer driver. To keep the diff clearer, the first patch > introduces an otherwise pointless struct which is then removed in the > second. > > The third patch converts the driver to a platform_device driver. This > is to make it work again on A20 and A31 (I think) where it broke when > the ccu driver was changed to a platform driver. > > I have only tested this on an A20 where the hstimer is registered as > expected and can be selected through sysfs. I hope it doesn't break > something else. > > Some additional discussion here: > https://lore.kernel.org/linux-clk/20211119033338.25486-4-samuel@sholland.org/ > > Mans Rullgard (3): > clocksource: sun5i: remove duplication of code and data > clocksource: sun5i: remove pointless struct > clocksource: sun5i: convert to platform device driver > > drivers/clocksource/timer-sun5i.c | 288 +++++++++++++----------------- > 1 file changed, 123 insertions(+), 165 deletions(-) Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog