Received: by 10.223.176.46 with SMTP id f43csp3484613wra; Mon, 22 Jan 2018 15:22:36 -0800 (PST) X-Google-Smtp-Source: AH8x227fbMnYVtQdWZusPToo/vwZyZFSJ4wBkhlcKj3mgT3zDE26swG6Z1Hk8wrlx3zNOvxsA21O X-Received: by 10.36.200.215 with SMTP id w206mr839976itf.64.1516663356305; Mon, 22 Jan 2018 15:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516663356; cv=none; d=google.com; s=arc-20160816; b=yHneP1wzAJtnAWVQeqN0Xj/l/+DrAZvsWuF+SZnNEfAMhOzvK+nCAVwLIskTEmaKd/ gvE5LZTuRRLrqIYQTVw122J5FMSj14VbFtUIU/zk3vYlBzTuZsKeZ8av7rOMvEZ+PAD2 Z8Byj51yiSBadboV1ohVMQHwGNWRkY8GekOsqZOoxAE57FM+4J0yukHeozHmWFwC6VSR 83NdhFvcdRAMwz+TQ61LCyUZK+IXQDGBPJL57lRYrsFtIxj9IwtO1ztnMhakRfLQieGm ZldCtzbUIuZD7HJkl1TQ8uL9GCJ+rRDCg6YHyIh2BbMjpy8F6OlQRQVqfCKP+DkfxVag HOrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=A4swkIf7pPvlzI909VHrIlmTWN7FAcm8+JjPHDirK+c=; b=XS8qyNawzvZ+WAPmOjZe8DxWb1UlHrgYqFEu7jCF6TVZ65MdRIrGJeyr7qD/GOZhX5 68fWkX2CzVcwtuyW7H5jZ+cD7YwP5McCijQM2Uq+tV9sOGWvSUuysa2de8DvI82HVrxC ZoDiwkT3c9P0hRpjWn+X3HlIwmZFtUbJd2m2KYobmhT6bIGJUCXeo0lR0d8pmqPv361E UB9ie3CohnZIuWpzj+L4CnlmbuYKy2JLjJhiNx8FTNQ4yeXYVZjYqHM7RNCveXtbcoLI bgKpxb/oD4svbOoqflvGUehSmJkQAyVIWfbwgwSqyWcKo7CaDdNAmRnrgJPfhYac6hPX 3npw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p+XSyh9+; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si7057581itl.160.2018.01.22.15.22.24; Mon, 22 Jan 2018 15:22:36 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=p+XSyh9+; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751210AbeAVXVm (ORCPT + 99 others); Mon, 22 Jan 2018 18:21:42 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33646 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbeAVXVl (ORCPT ); Mon, 22 Jan 2018 18:21:41 -0500 Received: by mail-pf0-f194.google.com with SMTP id t5so8289606pfi.0; Mon, 22 Jan 2018 15:21:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=A4swkIf7pPvlzI909VHrIlmTWN7FAcm8+JjPHDirK+c=; b=p+XSyh9+T5HWcZu8/pWMqAnXqZBxGnYba8EdxACcZnFGCU6uiyo7pSZ7ndz3lF/vNO snqyhVALglFDgUFIZXYe/UM79vqzFthkW3rYgDW/uHoVAHKjrePp9w8lOXIE8PEcT9P+ xS/FyhZm+BnXHGS14hYXG60L486ZVtB8vzMNt0XHQEwapoCnSazS6nUq5QXfBd8DX/i/ Y51XaTygIkiuFMzrAeTyzhJFKiSLaBpf67gF3JdXX/pXhIlkgzz0MtmOM3HZ/9dPE3ah gt6/8uJua5GVLmKt7Ur4svTvOD5G/nQ54QO8hMoB8ehBQbQX8hmt4wSc2u6UQA9onIqP T/PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=A4swkIf7pPvlzI909VHrIlmTWN7FAcm8+JjPHDirK+c=; b=iQ/ZIoA1GyhAE9ANbobMUBvhXdVe2T+BGxpYUXKyIi1Vd22P6nlwklyFl7H/sanvIF 73rayxwCOicHLf6qt4MNSteMPBVDvXkUPL3Z06JB/e+RxTsRv83mayYvVBCCdW2/j0sU 6DfN1ofRsc9U8ac3w2Vy7PMgodvLq39HfulwSbCWW0E5FKYyOFYp/k6jdaSksCwrL09Q yJU+meEuwmko59Xrmuw8SwTsrvPGqWzIp9nkJSX2jMZVSwhJAoCSkzmGg24btTJiBWvJ cFhazChcc3g7Nc/6LmlVUU5XoobwoUnRdosnpToH7ySHGFgJjbxbfJQFtQWytZUtX2BK xxLg== X-Gm-Message-State: AKwxytfjjVNyoWq2lQwzy9eXi+uuZTH/3Ej7Mb2kT3ajokEIswxSh5Mx Vre8lbj4mIY0Gfgc4Xmi71U= X-Received: by 10.98.194.212 with SMTP id w81mr8939798pfk.232.1516663300605; Mon, 22 Jan 2018 15:21:40 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1611:da80:8749:c06f:9515]) by smtp.gmail.com with ESMTPSA id x8sm2004046pfk.123.2018.01.22.15.21.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2018 15:21:39 -0800 (PST) Date: Mon, 22 Jan 2018 15:21:37 -0800 From: Dmitry Torokhov To: Ladislav Michl Cc: Bjorn Helgaas , Wei Yongjun , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 1/5] devres: Move managed io function declarations into device.h Message-ID: <20180122232137.hdalkbpczjqfyyax@dtor-ws> References: <20180121211432.GA15151@lenoch> <20180121211508.GB15151@lenoch> <20180122174903.z5ijxouq5bw2s36r@dtor-ws> <20180122215056.GA27905@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180122215056.GA27905@lenoch> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 10:50:57PM +0100, Ladislav Michl wrote: > On Mon, Jan 22, 2018 at 09:49:03AM -0800, Dmitry Torokhov wrote: > > On Sun, Jan 21, 2018 at 10:15:08PM +0100, Ladislav Michl wrote: > > > Moving managed io function declarations into device.h allows > > > removing forward struct device and resource definitions from > > > io(port).h > > > > In the face of it, what is the issue with forward declarations of device > > and resource structures? device.h is supposed to be about Linux device > > model, not hardware. You would not want all devm_* functions to go into > > device.h (clock, regulator, input, rtc, hwmon, etc, etc devm API), > > right? Why would we want ioport there? > > Allright, point taken. Then I would assume devm_ioremap_resource should > be moved from device.h into io.h, to get some consistency, right? Yes, I think that would be good. > Any other comment (mainly to devm_ioremap_shared_resource) before v2? > > Thank you, > ladis Thanks. -- Dmitry