Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp333094imm; Thu, 21 Jun 2018 19:49:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLofuohnfvgLpBFxaOul0zyKoqYaUWUp5r8J8TyMUzm8BnhAOAcKsSNnozp7d9i6yh6Miit X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr31988997plb.266.1529635762117; Thu, 21 Jun 2018 19:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529635762; cv=none; d=google.com; s=arc-20160816; b=IUNjLhp4Ug/uWTP0fh6776QmpLNv2f0hJeSNDqR1foW7uS+cfAj/yISUTw9d8Vs+wh rTi9dgH7GFb2alYNnRVz/yWP4wrTw5MoO1HgIlimptcPV7ZBNsaFfR16JZvZo0SmzKKz HQPyAseMybFb5/SOLou5kcgY6eh7kJ07VAjOiLD1gxMFmQ6FWItVYrw/+9Oyu1gBiMI6 iCgZjwwaeaRDU87ZnfLY284SNxtfOTL5/cHqW0iiP3Wl+8ylnZJwglr6gM01R97Www1c ht4RRnHnF4+nNcf+/hd5zNRgpM+5A7ZRldTzq0lHTKmmXOhMzQ0Gc/1xGSL+7KvoGwIL TTPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=QUkO9JYPy/6aoAqnIcYVyZ3kqpaPhU9S0QJYUAXx8LM=; b=uTuY9c58tw/HWBikOC6UL3IZvCnQBNfuoLG3SXtsqWGsNMX4EbJW7E20sHg7/lazT2 +2xOraIzm161NQoMqar0QXdak/4FdTlzPLGROzxCYkG/R9jfIpMuvWjCct+gn3roA9XG 7UXt7fp5tRdkxSBW3QPHTNhjhoO6DEyOKUAdjFBDMKvagi37XiQAzEoK1sVo7TxDPcgR +dnOMa80Ox8+1mf38x1x/z08FCFCqgd5bErdfQLvdn7rSLWvaL9sn+m7Tj73XqaLtHx6 OpBtO6l5fCGG4yxgJEIYA48eJs8ESLxp4hakEqG4JTkD1vUPqe0PuLSyTQmmykGP/yH/ Hbzw== ARC-Authentication-Results: i=1; mx.google.com; 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 bh7-v6si6511279plb.367.2018.06.21.19.48.47; Thu, 21 Jun 2018 19:49:22 -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; 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 S934125AbeFVCru (ORCPT + 99 others); Thu, 21 Jun 2018 22:47:50 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:52167 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933932AbeFVCrt (ORCPT ); Thu, 21 Jun 2018 22:47:49 -0400 X-Originating-IP: 70.80.172.8 Received: from localhost (modemcable008.172-80-70.mc.videotron.ca [70.80.172.8]) (Authenticated sender: hle@owl.eu.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 04A24E0005; Fri, 22 Jun 2018 02:47:45 +0000 (UTC) Date: Thu, 21 Jun 2018 22:47:41 -0400 From: Hugo Lefeuvre To: Marcus Wolf Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: pi433: initialization of tx config in pi433_open() Message-ID: <20180622024741.GB1914@hle-laptop.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline User-Agent: Mutt/1.10.0 (2018-05-17) X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Marcus, I'm currently working on the following TODO: 966 /* setup instance data*/ 967 instance->device =3D device; 968 instance->tx_cfg.bit_rate =3D 4711; 969 // TODO: fill instance->tx_cfg; If a user calls write() right after open()-ing an instance, the driver might try to setup the device with uninitialized garbage. In fact nothing really bad will happen because the rf69 interface abstraction will filter out wrong values, but this might be a confusing behavior for the user. What do you think about initializing instance->tx_cfg with the default values of the rf69 datasheet[0] ? Also, is there a specific reason why you chose 4711 as a default value for the bit rate ? I couldn't find it anywhere in the datasheet nor on the internet. Thanks ! Regards, Hugo [0] http://www.hoperf.com/upload/rf/RFM69CW-V1.1.pdf --=20 Hugo Lefeuvre (hle) | www.owl.eu.com 4096/ 9C4F C8BF A4B0 8FC5 48EB 56B8 1962 765B B9A8 BACA --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEE5LpPtQuYJzvmooL3LVy48vb3khkFAlssY0cACgkQLVy48vb3 khm7Vwf+Kq3+2rXk6LJz+9KnDUqd7dlskzi1rAiQ4d07hch8gBPtUEZARQaOLDsF B+M6kvxTOAIUnv+wflQnny4V4GEliyiWeBtKsFkVJHU/cCCDBKUuIVVzi+c4zvuR YNixHHZpPNU0s2IFflJSNdfaL6XbrbRofGY5qjw4/jS+re0SACHxafjjeXEId0PM GGvmpJu4axQ8zv1iglBmLmPalmC4SLZ8V+9HqVC0cq8UtuZXKwBuoVn+i0uzId9P 43bgeOs5GK6jqi0XD9+SJw0c4zox/F5ovjFVwbrKXYQg74jP18xHtFk1r8KDH0tK txEBnoMTDpGBUWPQoU7H8HVsArwPww== =bhA0 -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl--