Received: by 10.192.165.148 with SMTP id m20csp236653imm; Wed, 9 May 2018 11:46:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq6vy9BnEzrmqp5AN20FKZ0xqgincrRXIPPxySS2CASEjvuuf7TxMiIxMN5OzrOOQf4KW95 X-Received: by 2002:a17:902:8217:: with SMTP id x23-v6mr799656pln.380.1525891605601; Wed, 09 May 2018 11:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525891605; cv=none; d=google.com; s=arc-20160816; b=eMVwlB2TEtEOPKpKJ5Ws/slYFzxxKh9JsXcfyvPTsKJoPc1ZhmZG72tvMNVZI3V7V2 2DjIkeBCxa+1Hsy8fwcPj4Cd8NgGzyA1tdMC1CZSvCikb+9FiRjURHKlMW7qMfx9jRGl 17eZC1tKmrCUq8oZS8ZGKYXE87rgbvCd9LIWNJYGgkhRG+J6YTX+zQHPM96EEgqpH3rA HPFCn2hEN+prmIzHHVaGC2BUiP/e/q7yUQbTkB7dG1sgsJo7Mu5hRREaq6ajUxjg/o2o 29CbAetJ0fr4hz0rmXNvINuKPAWqiVYApcNmYnJI2uLXBRwOW/FzYYAg4f6kmdmRYelu OYlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ZS1SWM+xsOppRrFtzk4M63eHc+X1uHQxtUud8yJ2+aY=; b=nXRprt6xDkh9zP2kUgNBPHTHpsI3SQ1CPtD1RbSJ/pXkmq6jd5N42k5WseKO/79lLZ knmqI+n4UiLVfhKLCHradjmRr6FK0jgoBogJgGoFrpyRe3mjEDYwH2f4LSf4Bf0782hf GpV1jxzuP8Rm19lAukT6Uup654S2QG5JV/eKHM3QmLG7Zz6OnUGRUc2eltgpgvs+N/YR D4OOjFO2fg/b+/KoblbcGNHLvYcdoSnAr3Gy9u0OAReU51C1aTwTB1jVA9EhpbbiI4Ko /FXUOGGvl8BpSJqDzPvzghZh3XvFDxtGxIV35p+2zW0bWosx3h5g4cPQK89qMTTtvK9X cbxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=RK3aw3ou; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 206si24631913pfw.130.2018.05.09.11.46.29; Wed, 09 May 2018 11:46:45 -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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=RK3aw3ou; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935589AbeEISqR (ORCPT + 99 others); Wed, 9 May 2018 14:46:17 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:60438 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935563AbeEISqN (ORCPT ); Wed, 9 May 2018 14:46:13 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 6AA59B00AE8 for ; Wed, 9 May 2018 20:46:12 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1525891571; x=1526755572; bh=Pi2U7yRP5oglTvdh2XzcctR4wVNaiWLOJ8Q i4C80uNw=; b=RK3aw3ou08Lmn9pMZKDzJs+z6Tw50BS/70BIHg9Txw/B8pzXQ5m 2OFafZyF7EiCOmlKxIJzHDA3ZU6pmWNq/ZY/OZGRihIEXMXAdzJz/o0/ueuj2roW zYkoCuvwrDgPpFCezM4wzm3HDAjrILVcOaEtvmQ7Q7+zsxi0lwQ4maSQ= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.899 X-Spam-Level: X-Spam-Status: No, score=-2.899 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, LOTS_OF_MONEY=0.001] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id T7c9TcwezhZb for ; Wed, 9 May 2018 20:46:11 +0200 (CEST) Received: from [192.168.2.71] (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 9037DB00735; Wed, 9 May 2018 20:46:10 +0200 (CEST) Subject: Re: [PATCH v2 4/4] rtc: ds1307: add freq_test sysfs attribute to check tick on m41txx To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180509182812.17646-1-giulio.benetti@micronovasrl.com> <20180509182812.17646-4-giulio.benetti@micronovasrl.com> From: Giulio Benetti Message-ID: Date: Wed, 9 May 2018 20:46:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180509182812.17646-4-giulio.benetti@micronovasrl.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry everybody, Il 09/05/2018 20:28, Giulio Benetti ha scritto: > static int ds1307_probe(struct i2c_client *client, > const struct i2c_device_id *id) > { > @@ -1783,6 +1851,24 @@ static int ds1307_probe(struct i2c_client *client, > if (err) > return err; > > + /* Export sysfs entries */ > + err = sysfs_create_group(&(&client->dev)->kobj, &rtc_calib_attr_group); > + if (err) { > + dev_err(&client->dev, "Failed to create sysfs group: %d\n", > + err); > + return err; > + } > + > + err = devm_add_action_or_reset(&client->dev, > + rtc_calib_remove_sysfs_group, > + &client->dev); > + if (err) { > + dev_err(&client->dev, > + "Failed to add sysfs cleanup action: %d\n", > + err); > + return err; > + } > + > if (chip->nvram_size) { > struct nvmem_config nvmem_cfg = { > .name = "ds1307_nvram", > Adding sysfs must be done only for mt41xx series. I correct and submit V3 patchest. Sorry again. -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale ? 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642