From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers Date: Fri, 20 May 2016 14:19:24 -0700 Message-ID: <573F7F5C.1050100@codeaurora.org> References: <1463771587-7438-1-git-send-email-nleeder@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:37205 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbcETVT0 (ORCPT ); Fri, 20 May 2016 17:19:26 -0400 In-Reply-To: <1463771587-7438-1-git-send-email-nleeder@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Neil Leeder , David Brown , Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Langsdorf , Mark Salter , Jon Masters , Timur Tabi , cov@codeaurora.org, ashwin.chaugule@linaro.org On 05/20/2016 12:13 PM, Neil Leeder wrote: > diff --git a/drivers/soc/qcom/l2-accessors.c b/drivers/soc/qcom/l2-accessors.c > new file mode 100644 > index 0000000..fbb69bd > --- /dev/null > +++ b/drivers/soc/qcom/l2-accessors.c > @@ -0,0 +1,66 @@ > +/* > + * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 and > + * only version 2 as published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + */ > + > +#include > +#include export.h instead? > +#include > +#include > +#include Is there a patch to add sysreg.h to arch/arm? It would be nice to use one l2 accessor API on arm64 and arm. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project