From patchwork Fri Sep 27 07:10:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 174587 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3112737ill; Fri, 27 Sep 2019 00:11:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlqTL9u0DmTeUBgd3GMcOsfjDq0IqkfM2r1kM2sS+LdE8bS80Wr+bv6exuVThL5IAwjVT6 X-Received: by 2002:a50:e616:: with SMTP id y22mr2813673edm.253.1569568276223; Fri, 27 Sep 2019 00:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569568276; cv=none; d=google.com; s=arc-20160816; b=zQhl/syZbzEeRBA2/mi2hG+zd6oUiBOE6NgpZ65XxdUWxJKLwgsn5ZOM/nx2IdqQz4 tPm1Z23msuyoLtp+nuqru23fPKlP9l1OlXQznIEyqSsTi0dEYdXU1fyu4g0zXU/uZpG5 shg/OHTPkaY66FDGchKZWH5y34I+OG1kVBuvBOWd/ZJBJDdhNzXLXUrey3hf0OHr1zOq nwdMcIw8+MADnVJwCuz9KJyym8dLMIZghV4PEye+sWaVoD4lyo3rp5LtNfqpaj58zSFh lO/MUQJkx+/NWsXJS2gtUXs9/DDOS1oFshiwQWoI/XKULX+Zu71wD+rmOCK1igSgncVO eZDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=QRNTfvVyCK5bbHeSG6WJ7G90ba0BRcjEhnvGaZUR3O4=; b=M2qvejzc8G6tJr3RDW26p1cSQZac6tyqX+P4nTc8mVD5+yGmCoRzZwxl9lJnbOmwOQ UuBSk5zx79Tn9Is2QjRSNUdZhoN6d6RO3s28vfY7LNPXBHtO88HlmFvmZkpPj9EH04KU 9d9lnXYB6q3LS0S4RHkkmh/vzw8Dd298xPcFx88c4o3Fyn7YQSKEtOXfB70uiB1UKgk8 +tmsKQt1n92YUcWUVgQBxsgXN3clkG09fOcVS+kNZSi19MK15PedwysDw/KRmJ6EQbDu VDgD64+z2gI3+sgjYO85p3cwzu0QtsAv4ZeH/iKfVwu5pD/6k8YxT8R5sfXIoF+qY0k6 mgpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z+7ixFdy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si387959ejo.82.2019.09.27.00.11.16; Fri, 27 Sep 2019 00:11:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z+7ixFdy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726368AbfI0HLM (ORCPT + 26 others); Fri, 27 Sep 2019 03:11:12 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34857 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbfI0HLL (ORCPT ); Fri, 27 Sep 2019 03:11:11 -0400 Received: by mail-pl1-f193.google.com with SMTP id y10so713627plp.2 for ; Fri, 27 Sep 2019 00:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QRNTfvVyCK5bbHeSG6WJ7G90ba0BRcjEhnvGaZUR3O4=; b=Z+7ixFdyDjZdCoa7+16p/WiWMn+KKodd3MLzu1wCZ5xIkH+B+R5rIK0VHDHcL1v+M3 k55HUqLAHv/FhmSTVDCgI6DJACQn9AoS4wmhcXWd9/QSjQ3x/BSWT9jnKrzlDLez0DAp JjM3S4w4Y1upRO5PoxuJ/P68VME6HX4wj7VUz6HlxKrOPMCEf5oLmpAhCqIBL/JZGn3r mPQ+aOS202oWHpwI0hGouy7a8PSU90PsmeylYBRwoNKBmkA8x3gOR6eneeo64Qi2hnYE S0tgjl96eQgvBK4B0WCQg8NgQHxp/LUvYd6T/cJULd3nZe8bo39xMsmsv6hMyg519gS4 RA/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QRNTfvVyCK5bbHeSG6WJ7G90ba0BRcjEhnvGaZUR3O4=; b=JQ4M7sHfoHKm9Xkxoa67KnvtYZrBHijDa9dHyZccDnt/0BuwCFOoYtkIA003pAYy7u t8P100f6DvAoS0sZ5x+FwdDSGG3W6slkbOffArPrnGnkPBLs+cF/WCuqfgPfAeGcMMWn 1Yjj9WvDixYYejwmitrUyMwRHLBGuhUHMHoN3eYpWrnwatCsolKe/bsbXlAKQCm+gxrJ PvrVr0ZXz1CBn4Oil2h/OXTxU54CeG/veaJdkF92DAqE6fhd2U5kB+KdwSWNNw8ceW1J uC/z+ptl9ocugduytDokwexqXwtkxW0OMdUlie8/x4a1yJN/Rktwsb5o2kyuMX+iuRI1 mopQ== X-Gm-Message-State: APjAAAU+HJeCQp+Qew57v7ebVvwmdHaiOPxaFJ/E9Lf3Y68+4bMgKbUz 0BXeHibujJ3oLugjRgpXrImihw== X-Received: by 2002:a17:902:a613:: with SMTP id u19mr2998244plq.122.1569568271110; Fri, 27 Sep 2019 00:11:11 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id f74sm1733288pfa.34.2019.09.27.00.11.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Sep 2019 00:11:10 -0700 (PDT) From: Baolin Wang To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Some optimization for Spreadtrum hwlock controller Date: Fri, 27 Sep 2019 15:10:43 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set did some optimization for Spreadtrum hwlock controller, including using some devm_xxx APIs to simplify code and validating the return value when enabling clock. Baolin Wang (4): hwspinlock: sprd: Change to use devm_platform_ioremap_resource() hwspinlock: sprd: Check the return value of clk_prepare_enable() hwspinlock: sprd: Use devm_add_action_or_reset() for calls to clk_disable_unprepare() hwspinlock: sprd: Use devm_hwspin_lock_register() to register hwlock controller drivers/hwspinlock/sprd_hwspinlock.c | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) -- 1.7.9.5