Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2244464pxv; Sat, 24 Jul 2021 09:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTluQyZlnHf4qWdUMcFI/7rRKTPJgUboIvxaS7GKxztLjieoL1Vy/8rR30tEGA2eS0rQGq X-Received: by 2002:a05:6402:7cc:: with SMTP id u12mr11986612edy.156.1627145047835; Sat, 24 Jul 2021 09:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627145047; cv=none; d=google.com; s=arc-20160816; b=b4tLX7/0LXaKt6QM2qSJCgxurrIQboPfQNBmvoRINCsZT5VGlMgmN2be6TXlhBJ2I0 kziK8n4CetA9Au5rTjNloFeB2bOtQq8YOhhfGRgR86edy9zy90657+23ZwW/gQad6Kuc vfZeQC5X8SYlW41Nkmc2TqwEY9SmKJKhhVhxeBblcFAeWaiViB2hr2PCaoxMycgsqIJ+ qq+5WTglhHv2gbmk2tooiTbym6W8FXQcPiQwSz0Pz04cPLKmh+ujJZXIfYm5xR5bvkBP Ed1eryYh8glgrwvBDNXfBHUugAXcW7Dq0FNLim2Li782IycoOinIXdFmdU99MUSFdXfq 6brg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7lum5H0u1PY0d+m1kTvqs0exZcHqLjw3F/WLueXsMFQ=; b=V+Qn3e6ytLzGUFKvU4BARELJdYcTjCHqN2ZXdIkZL7xMop2Y15mIPYvw82vzcv0LWd kcT9gPLRqXfcr8cAQL5jMviDlTPwUrKUK/x2UghtUp5hCaLFGKyHiqNv9d5q9bzPGdiy MAKWwQsgJ5VDp48kB/1GeQgoJVMRrWW11ZmnNWSkIMjBnSOLx9e5pGMl6ef+gMVuTtq/ k2KMU4MSY2rinb5qlP5Rv30Ar+Ugx7IhygHryAHdCnuuPwHXwpZ002HRqtw5JkoUPa0a L1FZxet5GkqPMOTAtCnIMMjfrwD9BSphQjP3MhFx/7lwBnLlfvluF+BBzDQHB05VNQZx 87Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz24si34744519ejc.249.2021.07.24.09.43.42; Sat, 24 Jul 2021 09:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbhGXPnl (ORCPT + 99 others); Sat, 24 Jul 2021 11:43:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:44932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbhGXPnk (ORCPT ); Sat, 24 Jul 2021 11:43:40 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 65E4860E92; Sat, 24 Jul 2021 16:24:10 +0000 (UTC) Date: Sat, 24 Jul 2021 17:26:42 +0100 From: Jonathan Cameron To: "Miclaus, Antoniu" Cc: "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH v6 1/2] iio: frequency: adrf6780: add support for ADRF6780 Message-ID: <20210724172642.27b4d8c0@jic23-huawei> In-Reply-To: References: <20210716114210.141560-1-antoniu.miclaus@analog.com> <20210717142623.45f96a22@jic23-huawei> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Jul 2021 13:34:08 +0000 "Miclaus, Antoniu" wrote: > Hello Jonathan, ... > > > + > > > + enable_reg = FIELD_PREP(ADRF6780_VGA_BUFFER_EN_MSK, dev- > > >vga_buff_en) | > > > + FIELD_PREP(ADRF6780_DETECTOR_EN_MSK, 1) | > > > + FIELD_PREP(ADRF6780_LO_BUFFER_EN_MSK, dev- > > >lo_buff_en) | > > > + FIELD_PREP(ADRF6780_IF_MODE_EN_MSK, dev- > > >if_mode_en) | > > > + FIELD_PREP(ADRF6780_IQ_MODE_EN_MSK, dev- > > >iq_mode_en) | > > > + FIELD_PREP(ADRF6780_LO_X2_EN_MSK, dev- > > >lo_x2_en) | > > > + FIELD_PREP(ADRF6780_LO_PPF_EN_MSK, dev- > > >lo_ppf_en) | > > > + FIELD_PREP(ADRF6780_LO_EN_MSK, dev->lo_en) | > > > + FIELD_PREP(ADRF6780_UC_BIAS_EN_MSK, dev- > > >uc_bias_en); > > > > Here we are probably turning on a bunch of stuff which will result in power > > usage. > > Would it be sensible to turn it off again in remove path? (devm managed > > should be fine). > > Most of these attributes are enabled by default after device reset. > Taking into account this statement, is it still worth adding a 'custom' remove path? Perhaps a nice to have if they save power. Got to love hardware that eats power until you load a driver! Ah well, Jonathan