From patchwork Fri Oct 23 12:37:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 55487 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f69.google.com (mail-lf0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id C651A20581 for ; Fri, 23 Oct 2015 12:37:33 +0000 (UTC) Received: by lffv3 with SMTP id v3sf48204833lff.1 for ; Fri, 23 Oct 2015 05:37:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=NSg2/QUFvuWts62H2Y2zL86kE5h35QII5SHzM1tMyF8=; b=Ur5eb7xm/x1aNRVWe3GxZMC1Qm3LmG3hwXU4LraHkla2ONQVpB11fJVYTF86R3Lqe3 oE2zEdnJSAWE2nPGLImmw8bAO6qpl/Fx5XhZGbCTgkfAE3IkXsok42auo0VoE8SiHjPH tY/+/XyX4l1R9BQvgsQp0dwgGff8lmBg0atAqNpRa9P6Ux3Rk3mnq0tMpk9zfT+RZd4F ozK65b1yhP+T43/ARWaRsJ/xVAo2iuABm3LOqh7na2Cnu971Vu8hYS57K4EVLIF9BP1o 7BpXZFfsK3WIlRWN2YdpICh96oxaJiHY0wKVIGAVS3oDpNrIEJqaliTgmTr+/uACLdEf zyKg== X-Gm-Message-State: ALoCoQnnLAXdo76iAg64nCA/bdgSNozh2D5p2G4EuwO1iZyP9HBO5J5ZcdYdwtlLJa2MedRiuXOK X-Received: by 10.112.198.33 with SMTP id iz1mr4857468lbc.8.1445603852741; Fri, 23 Oct 2015 05:37:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.170.130 with SMTP id t124ls435811lfe.7.gmail; Fri, 23 Oct 2015 05:37:32 -0700 (PDT) X-Received: by 10.25.218.135 with SMTP id r129mr4693603lfg.82.1445603852609; Fri, 23 Oct 2015 05:37:32 -0700 (PDT) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id zv6si12529535lbb.62.2015.10.23.05.37.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 05:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lffz202 with SMTP id z202so82009464lff.3 for ; Fri, 23 Oct 2015 05:37:32 -0700 (PDT) X-Received: by 10.112.64.41 with SMTP id l9mr10151625lbs.32.1445603852490; Fri, 23 Oct 2015 05:37:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1204350lbq; Fri, 23 Oct 2015 05:37:31 -0700 (PDT) X-Received: by 10.180.187.237 with SMTP id fv13mr4650981wic.81.1445603847777; Fri, 23 Oct 2015 05:37:27 -0700 (PDT) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com. [209.85.212.175]) by mx.google.com with ESMTPS id fx2si4753144wic.38.2015.10.23.05.37.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 05:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.175 as permitted sender) client-ip=209.85.212.175; Received: by wikq8 with SMTP id q8so74966841wik.1 for ; Fri, 23 Oct 2015 05:37:27 -0700 (PDT) X-Received: by 10.180.9.75 with SMTP id x11mr4524651wia.67.1445603847553; Fri, 23 Oct 2015 05:37:27 -0700 (PDT) Received: from gnx2579.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id s16sm2837652wik.16.2015.10.23.05.37.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Oct 2015 05:37:26 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, alex.williamson@redhat.com, b.reynal@virtualopensystems.com, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: christoffer.dall@linaro.org, linux-kernel@vger.kernel.org, patches@linaro.org Subject: [PATCH v3 4/7] vfio: platform: reset: calxedaxgmac: add reset function registration Date: Fri, 23 Oct 2015 14:37:12 +0200 Message-Id: <1445603835-14506-5-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445603835-14506-1-git-send-email-eric.auger@linaro.org> References: <1445603835-14506-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds the reset function registration/unregistration. This is handled through the module_vfio_reset_handler macro. This latter also defines a MODULE_ALIAS which simplifies the load from vfio-platform. Signed-off-by: Eric Auger Reviewed-by: Arnd Bergmann --- v2 -> v3: - do not include vfio_platform_reset_private.h anymore (removed) - remove pr_info - rework commit message v1 -> v2: - uses the module_vfio_reset_handler macro - add pr_info on vfio reset - do not export vfio_platform_calxedaxgmac_reset symbol anymore --- drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c b/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c index 619dc7d..640f5d8 100644 --- a/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c +++ b/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c @@ -30,8 +30,6 @@ #define DRIVER_AUTHOR "Eric Auger " #define DRIVER_DESC "Reset support for Calxeda xgmac vfio platform device" -#define CALXEDAXGMAC_COMPAT "calxeda,hb-xgmac" - /* XGMAC Register definitions */ #define XGMAC_CONTROL 0x00000000 /* MAC Configuration */ @@ -78,7 +76,8 @@ int vfio_platform_calxedaxgmac_reset(struct vfio_platform_device *vdev) return 0; } -EXPORT_SYMBOL_GPL(vfio_platform_calxedaxgmac_reset); + +module_vfio_reset_handler("calxeda,hb-xgmac", vfio_platform_calxedaxgmac_reset); MODULE_VERSION(DRIVER_VERSION); MODULE_LICENSE("GPL v2");