Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3584226imd; Mon, 29 Oct 2018 09:14:13 -0700 (PDT) X-Google-Smtp-Source: AJdET5cpzsXBRDoUmVpR6dOb/8yp8ZrkWP6293SEo41hgnPNrzKU4vjukNMvm3C1VDsF3sYpCmFU X-Received: by 2002:a63:bc12:: with SMTP id q18-v6mr13955692pge.353.1540829653109; Mon, 29 Oct 2018 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540829653; cv=none; d=google.com; s=arc-20160816; b=LVsLLPED9vEM+boYpzraTwtKx5zTJpt44ixpm1TpgNhb94FIFv00Jicpr7WGyjdywz 9lVZPCAd1ce/xNrvLEV1R4fJYw7nTcqSxqnATHRO0cfoMDzpXI3L6Q0hDqB9pdMf6FSa CK9lMaOtsLzBmlGn1ucRns3+5DmOwYy319X2+SW3eWRGsrrRH92FJ1lmYon5KBgDTRY1 Gy4gnWYxDKU3QX5v+yvsg80ZuX5qlBvIxv55Nqp7uc1Yzpo/H7yAgE26crvRtg5DA+c8 5hT7Bku96mr+SPH1coSRr1uIJo2IysLj81CJ+5sLLLTY9kFSTVhKK3HdVJJYthMLmyXA KWrA== 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; bh=eYWHVdhWDDpgJ2V9xAcamwTCuB5W5kVeb46h2M75ePI=; b=QBqIDXur7FFwrrBnF9aZzZMN+7cBixMwJVIXSw+6WbS0jcfjOKFd12nTiRDAj1kBdz vKtD3H58PkyJo19/MLJigN1rEO786Jd8/VAOnjkOn77H8uPv70vVr+j3eB14usQTNgr1 v8stlRY/VP1W0bWWf59WP94e08a4cg7oZc/g+PzADUTxMtVfvzQdByfqG6hYUrYsIxlk +E1O95bVObAvTkKVBugEOaoxSVlKFM39Ovwh1k8Ufl9hEgZ0tfv2WfOFWJlfYHXmV2/l hnrlwkwg94FK3HqWUBlRV57BOYjLLhaj5GOR5VOPIm3YIPe5v9Mz873G/+4OJMXOqWTC bglw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=OVBe3tj5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11-v6si21954420pgj.409.2018.10.29.09.13.56; Mon, 29 Oct 2018 09:14:13 -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=fail header.i=@gmail.com header.s=20161025 header.b=OVBe3tj5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbeJ3BCm (ORCPT + 99 others); Mon, 29 Oct 2018 21:02:42 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39859 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727597AbeJ3BCl (ORCPT ); Mon, 29 Oct 2018 21:02:41 -0400 Received: by mail-lf1-f65.google.com with SMTP id p11-v6so6488375lfc.6; Mon, 29 Oct 2018 09:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eYWHVdhWDDpgJ2V9xAcamwTCuB5W5kVeb46h2M75ePI=; b=OVBe3tj5nmWSNqkZAZWR6DTnE6lm+LuM3BWOypqYrO83jI35gm7uVpqHRmlYV0F0+e zdzIwn303SpLcyc2hvd2FpiC5ZqZJKo458WqtWfPTKlNlruSBtLzeLDyMIKzPpIaHB8D 6wJPlOiL0wo+iPsJi94RIHtsjD9UuKw5E5Vf8PYVgVN4YeChPopjAD+F5O3GksYPt+Mq LMX38XaX5yfP8Uq7XgxCCVppxHGaNPGWlvwtu1UUcs2C6Cj7AzYlhf72zyvXl8pQgShk L758GXrDt3HFlVrEr4UN9gezWFspeGMmRVws+t08ltPJpOWM5a7KDApUFcKzlby7LmwE RsMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=eYWHVdhWDDpgJ2V9xAcamwTCuB5W5kVeb46h2M75ePI=; b=SPsyXkDkG8H9dCe2Y34Dlv6/lU6+bygJS2Pt2k+RUt13q90iyV5Cn4KunaPO49bV6S EPWLqr7YKBWznt8RvzVjUaaK6b0OcsgaAxwbIsmRv1DrQhDdw844AOnhv7UkDvGyxMa7 w7kKH9h+35+aick/LJyVNkSTGby9qtHRwGY5amoR0S1rAB3aOY2rPHx0p9m9c/KM9PVs 4jOKZPxgR71o2W+FNPUGzMYim+UWNaInfDlhCU8/UkcufhXFPoLmGbWyuWeqc367BKHX eCRxIGqnP2uOmsocQjCx46+SRV6AtLvL90iL6TSKcvwIsNZBstFef8xMFhP8wEES3V1m M87A== X-Gm-Message-State: AGRZ1gKovccZlKSizzytWK1TPZjTdPLlo+X7zpcMTO0oiN5asEWcptnH Nd0W7JQXY06Dl2WJ2ybKXnbLyUOO X-Received: by 2002:a19:4e59:: with SMTP id c86mr9038690lfb.132.1540829603958; Mon, 29 Oct 2018 09:13:23 -0700 (PDT) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id 2-v6sm3103567ljv.83.2018.10.29.09.13.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 09:13:23 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gHAAS-0003cz-Ij; Mon, 29 Oct 2018 17:13:28 +0100 Date: Mon, 29 Oct 2018 17:13:28 +0100 From: Johan Hovold To: Lars Poeschel Cc: Johan Hovold , devicetree@vger.kernel.org, Samuel Ortiz , open list , "open list:NFC SUBSYSTEM" Subject: Re: [PATCH v3 3/5] nfc: pn533: add UART phy driver Message-ID: <20181029161328.GT27852@localhost> References: <20181025132937.24405-1-poeschel@lemonage.de> <20181025132937.24405-3-poeschel@lemonage.de> <20181028102725.GL27852@localhost> <20181029100246.GA5905@lem-wkst-02.lemonage> <20181029110704.GQ27852@localhost> <20181029155110.GA12914@lem-wkst-02.lemonage> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181029155110.GA12914@lem-wkst-02.lemonage> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 29, 2018 at 04:51:10PM +0100, Lars Poeschel wrote: > On Mon, Oct 29, 2018 at 12:07:04PM +0100, Johan Hovold wrote: > > > Wouldn't that be the scope of another later patch then ? > > > > Possibly. We have accepted some serdev drivers already taking the lazy > > approach of opening the port in probe. Depending on the driver, it may > > not be too bad (e.g. for some specific hardware which you know you'll > > always use), but it not really nice to have everyone pay a price in > > terms of power-consumption for a feature that is rarely used. > > Is there a way in serdev to close a port, but still occupy it ? > I'd like to do the basic chip initialisation in _probe and then close > the port for power-consuption reasons. I'd like to have the port still > occupied, so that it's not available to other possible users in the > meantime. I'd then do a serdev open again in dev_up and really use it > from there. > dev_down is then for serdev close and also still occupy it. > closing and releasing would then be done in _remove. The serdev device is bound you driver regardless of whether you open the port or not, so just use serdev_device_open() and serdev_device_close() as necessary at probe() if you need to do some setup and then later at dev_up() and dev_down(), respectively. Johan