Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2494313ybe; Sat, 14 Sep 2019 16:34:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxO5sqy8k6wfAo5r5sljdEm+gthS71ZsjFKWqeowBrkBd4CseaV5vTNmDGqUUoh53ZXBIAR X-Received: by 2002:a17:906:6bc8:: with SMTP id t8mr46483077ejs.188.1568504077599; Sat, 14 Sep 2019 16:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568504077; cv=none; d=google.com; s=arc-20160816; b=kBBik//fQoX442Gw5N1muzu2cTb2vn0qJnuapjaw+GEsioCtYKAAFYAZK2N0bSLJE+ GPOOWMyAYUPkjDa6HyZ6iDIAOBQCZWsz+N4QQ+Q0QRTVAwLinWEOoWKPyLldfFVTB+9Y zg8RQXBXZY6X9ZobUM9KWRZmxI9TKbALGBTNKJY4pmt/qI9xMWruEsGVqe/2i/FIsCiF dLLATuEsFcdRZmHqEOaZRJhPwsPi+7NEzdYlJ1M78/Wdy0hmzg8iFybXQJ+FRN+YwQmj Y/NFRFDQpshAl9BL5l6UFLF1/gj58u4G4r9b5ppv+OTMY2ZLIeMU4OfD7ll9NhzF+muo sGWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gKpEQftAP6o+QorZd7p/g5QO6cFpnh/WyTDDDdZOV6c=; b=JegX7IYnXGwmzJwh6WbyjGblRz7A7lcdTzPA3h4gBw2YI7twuWeSPNz39S7nC9fi0W PTnI/SJ5nt1Uc68NrGqgDku1jKFwfOMYprmbKrxrpNeQrZzTASiQfOUOl33FKjLGRWm8 +VS4tFvUULLFsDnmNS2gRa59IN1UPxGv+tvNNFZk+h4Tlc7f9NM20NF/robPw2dhpxm8 L/qiw09+9CqBfIeAW+OS5G8odwk+ACXnLajUlow9+xNqMtRuw/gyPUghICLxMLiSz+Kd qETHMV/qNeK4zWY6i1kCD8Om9F9BoJ1yUkHHNHxpw5l50NrBZZMr9J/8jFplVF+fzyDo Q1Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c54si19127806edb.230.2019.09.14.16.34.12; Sat, 14 Sep 2019 16:34:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbfINVDE (ORCPT + 99 others); Sat, 14 Sep 2019 17:03:04 -0400 Received: from muru.com ([72.249.23.125]:32870 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfINVDE (ORCPT ); Sat, 14 Sep 2019 17:03:04 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 14B338105; Sat, 14 Sep 2019 21:03:33 +0000 (UTC) From: Tony Lindgren To: Matt Mackall , Herbert Xu , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: linux-crypto@vger.kernel.org, Aaro Koskinen , Adam Ford , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Rob Herring , Sebastian Reichel , Tero Kristo , devicetree@vger.kernel.org Subject: [PATCHv2 0/7] Non-urgent fixes and improvments for omap3-rom-rng Date: Sat, 14 Sep 2019 14:02:53 -0700 Message-Id: <20190914210300.15836-1-tony@atomide.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi all, Here are fixes and improvments for omap3-rom-rng that's been broken for a while. The first four patches get it working, and then the last two patches add support for runtime PM. I did not add Sebastian's acks from v1 set as many of the patches changed. Please review again :) Regards, Tony Changes since v1: - Use clk_prepare_enable() as pointed out by Sebastian - Simplify runtime PM changes patch - Add a new patch for devm changes as suggested by Sebastian Tony Lindgren (7): ARM: OMAP2+: Check omap3-rom-rng for GP device instead of HS device hwrng: omap3-rom - Fix missing clock by probing with device tree hwrng: omap3-rom - Call clk_disable_unprepare() on exit only if not idled hwrng: omap3-rom - Initialize default quality to get data hwrng: omap3-rom - Update to use standard driver data hwrng: omap3-rom - Use runtime PM instead of custom functions hwrng: omap3-rom - Use devm hwrng and runtime PM .../devicetree/bindings/rng/omap3_rom_rng.txt | 27 +++ arch/arm/boot/dts/omap3-n900.dts | 6 + arch/arm/mach-omap2/pdata-quirks.c | 14 +- drivers/char/hw_random/omap3-rom-rng.c | 168 +++++++++++------- 4 files changed, 139 insertions(+), 76 deletions(-) create mode 100644 Documentation/devicetree/bindings/rng/omap3_rom_rng.txt -- 2.23.0