From patchwork Fri Aug 1 13:55:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 4663161 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 944439F36A for ; Fri, 1 Aug 2014 13:56:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0BD520200 for ; Fri, 1 Aug 2014 13:56:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58A44201FB for ; Fri, 1 Aug 2014 13:56:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754398AbaHANzv (ORCPT ); Fri, 1 Aug 2014 09:55:51 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:50459 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754196AbaHANzt (ORCPT ); Fri, 1 Aug 2014 09:55:49 -0400 Received: by mail-pa0-f53.google.com with SMTP id rd3so5848101pab.40 for ; Fri, 01 Aug 2014 06:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=GBEZhZEgZ5FTe7lS8yPYGzcgHfPmHpP0/Og8h+s+PKM=; b=zrPSU9718hKjDOcE+D9kEj0sL9KdV9KcBEl8oyJJ8BABTgbTUcUh81TfiqSAzKF6Of iAgaFLdNEaM+1ICPEWaVT9un1d8Se9leqguBdtaVCjRcalBjKUoWfpIYm4dDRSuseGD2 uWsbvdfLarr3G6KXVHmhp7aS+qQ83YPzzsZA40jj+tNIR3dXNmq41uZUuw5RDg7trSjO Xzk897Ptfe2gLbFX68Axpo4FNdkZbsfzGclyhuUCr2CGY6akpxVaoySdSigzMm4pVonD NkBIwIVWlL1AI4IsM3dV+QEX2pqUxHdhARVyUv3C8teLeEYEGbZ+HmFX5A9kqBZPhiCx B4Aw== X-Received: by 10.70.127.230 with SMTP id nj6mr3027847pdb.164.1406901348410; Fri, 01 Aug 2014 06:55:48 -0700 (PDT) Received: from localhost ([216.228.120.20]) by mx.google.com with ESMTPSA id v17sm13243521pdj.11.2014.08.01.06.55.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Aug 2014 06:55:47 -0700 (PDT) Date: Fri, 1 Aug 2014 15:55:42 +0200 From: Thierry Reding To: Tejun Heo Cc: Bjorn Helgaas , Stephen Warren , linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] resource: Add device-managed request/release_resource() Message-ID: <20140801135540.GA373@ulmo.nvidia.com> References: <1406895311-18869-1-git-send-email-thierry.reding@gmail.com> <20140801125522.GC21624@htj.dyndns.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140801125522.GC21624@htj.dyndns.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri, Aug 01, 2014 at 08:55:22AM -0400, Tejun Heo wrote: > On Fri, Aug 01, 2014 at 02:15:10PM +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Provide device-managed implementations of the request_resource() and > > release_resource() functions. Upon failure to request a resource, the > > new devm_request_resource() function will output an error message for > > consistent error reporting. > > > > Signed-off-by: Thierry Reding > > Acked-by: Tejun Heo > > But please also update Documentation/driver-model/devres.txt. The patch already contains the below hunk. Do you expect anything more to be added to that file? Thierry diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index d14710b04439..befc3fe12ba6 100644 --- a/Documentation/driver-model/devres.txt +++ b/Documentation/driver-model/devres.txt @@ -264,8 +264,10 @@ IIO IO region devm_release_mem_region() devm_release_region() + devm_release_resource() devm_request_mem_region() devm_request_region() + devm_request_resource() IOMAP devm_ioport_map()