Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp852544rwb; Thu, 4 Aug 2022 12:08:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6QAQzzzhh2NB++0BKC8KXf73pIU/X1XJFGV1bGCzrPht28oqpvc+iMZ5aZ6DR/XCroarSr X-Received: by 2002:a17:90b:2252:b0:1f5:41fc:74ec with SMTP id hk18-20020a17090b225200b001f541fc74ecmr11686166pjb.197.1659640082377; Thu, 04 Aug 2022 12:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659640082; cv=none; d=google.com; s=arc-20160816; b=f+OPHhe4PFTg+MH51KeiDGHNkm3fcLLeHkveUq3OJ2Q1/gKolbk9HMWMJbOdyF5942 Nw+WD8hwSH5ZUzPlqO1jDPe6ZnBpql4nBOs327XgR44QkxqdBA2ePdHgVCRXfiQ3r94Z +FEryb0RMEtmurMQfBcYpEKnEAW/NjkOSDs1RPehUsxJ+YLrqjYuPbBvGHGG8f8DP/Ix Ej/bdHEjCQgPlihtF8nEeRLk9BWwxWz7hIo+AWB6VJZtW/4CwLRY/VvKkdhILiCNCQ+B acef0JiP/SoOiJ2rJ1mKKUbKr4i3Iv+iAm8Ya/vNo1rB/IHySwpGOnmB6QJPE3ZHxe8v AY2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LLZraREUyJDjKKH1ZAbZl4aViUMskkpVlY1tgmbuzBQ=; b=Pyqi07QHdajkG3wkc7QuNff4VZ0aA5TI/qMyy+orFififoM12YOGjabfZXPVm710tV wjHXLWVUk383xUAO5pGbfXxaFcvdW8GeuC7F654h3aKxusMjG2PJjDxlcph6VIRcsgUa hwjBTFnVBvyr5Ga9Ycpspbf0hYS46qcvaKO/urgA4vgrTsNtPTzE6ftJmnnyCnZyrulC SZpKUJBgvt1sQM62OV7kP9QajQWFCOzl0bCZ0TNGeJRoDGu7ff8kuTu/kFlqjbIAHcjP 6mKvHK1tcxeuK7ekT+r5GDZWZwtHNptMcq1cHAwG2d8ALufgftPPzzl0OCJNZx0vre/4 Zxng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A82RRj4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a65-20020a636644000000b0041a6772b82esi513729pgc.785.2022.08.04.12.07.47; Thu, 04 Aug 2022 12:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A82RRj4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237125AbiHDSax (ORCPT + 99 others); Thu, 4 Aug 2022 14:30:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232552AbiHDSav (ORCPT ); Thu, 4 Aug 2022 14:30:51 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 932A020BD1; Thu, 4 Aug 2022 11:30:50 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id m8so700469edd.9; Thu, 04 Aug 2022 11:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=LLZraREUyJDjKKH1ZAbZl4aViUMskkpVlY1tgmbuzBQ=; b=A82RRj4j5eIvBqjSKhVn9bseSl/A/rKVdZ0C9m/3KEnl5rl/JLMG4t0huZuBjD0lLl XoIkgJgjLIM9abrA2Dpx2l4verQ5BGWbrxmeJFlI2wnrdxL2YxSwA/GUMQp0KH+72u/2 wfA/hgrh0zzZbyLJlHbB6Aymvt88PP0iwQ+kp/MwsjRSfdlMpzx63GV9dScK3WYvFCx/ OlCJVFplMj5+6sZv1w0cq0qZDEwToKd09dNDqsKVjK8FS0ZqMxat6XAPQwa8nz+RPJLX IsBw3p5Ua7F40iFrX1s6euUDZg5cFVScn92L1HcV6vpHxQYk52rOQkeuj28hX10Ince5 trdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=LLZraREUyJDjKKH1ZAbZl4aViUMskkpVlY1tgmbuzBQ=; b=RLrINb+T6GDovwqyI84zs55K+mcyGtlYVRbHeJHW074XcdZZFBp8jVkSGugRIJxGYr +sD3ovCEER4aifhrN8vijEkPK7RWSBTadKezxTAciuJRY6rHPVddx+h6xxmHJ1rLWz4D KA/DScuN/xGfikFjkfyBRY+iMkuhmrwhImVAf3qm3xhJmBnuBnxLDeo7GKQ+KU2Gggnx ix3dvUxuVh3TT5PDh0q2kMvvMEIo5kRH7JMaajsgoNS6X2eFAvpz/QZ3Dxl3sxGS4vG/ cs0TzWQX88Z2Koxjhwm0XowPuEKFq18n8SUb+Chu0tFesZYJAaK+5mQeKW/9TlEsbdbb zbEw== X-Gm-Message-State: ACgBeo2jTBSANcgADt+D0pPaA4vAPcPRoGQZpeb1Riy49FnViV15ME3k /y0O+1o6RkI3EZ1J6jon5Nv1PthOhqKtYvgJzBo= X-Received: by 2002:a05:6402:f22:b0:43e:8623:d32c with SMTP id i34-20020a0564020f2200b0043e8623d32cmr3362050eda.265.1659637849133; Thu, 04 Aug 2022 11:30:49 -0700 (PDT) MIME-Version: 1.0 References: <20220803131132.19630-1-ddrokosov@sberdevices.ru> <20220803131132.19630-3-ddrokosov@sberdevices.ru> <20220803191621.tzrmndkygfe7nlpx@CAB-WSD-L081021.sigma.sbrf.ru> <20220804181723.4bljpxcwkj6cnn2f@CAB-WSD-L081021.sigma.sbrf.ru> In-Reply-To: <20220804181723.4bljpxcwkj6cnn2f@CAB-WSD-L081021.sigma.sbrf.ru> From: Andy Shevchenko Date: Thu, 4 Aug 2022 20:30:12 +0200 Message-ID: Subject: Re: [PATCH v4 2/3] iio: add MEMSensing MSA311 3-axis accelerometer driver To: Dmitry Rokosov Cc: "robh+dt@kernel.org" , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "jic23@kernel.org" , "lars@metafoo.de" , "stephan@gerhold.net" , "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 4, 2022 at 8:17 PM Dmitry Rokosov wrote: > On Wed, Aug 03, 2022 at 07:16:13PM +0000, Dmitry Rokosov wrote: > > On Wed, Aug 03, 2022 at 07:49:33PM +0200, Andy Shevchenko wrote: > > > On Wed, Aug 3, 2022 at 3:11 PM Dmitry Rokosov wrote: Please, remove unneeded context when replying! ... > > > > + dev_err(dev, "cannot %s register %u from debugfs (%d)\n", > > > > + readval ? "read" : "write", reg, err); > > > > > > You may consider taking [1] as a precursor here and use str_read_write(). > > > > > > [1]: https://lore.kernel.org/linux-i2c/20220703154232.55549-1-andriy.shevchenko@linux.intel.com/ > > > > Oh, really... Thank you for suggestion! > > I have taken it closer, and it's really helpful and nice, but looks like > it's not merged to linux-next. > Please advise how I can use it in the driver. Should I provide > "Depends-On:" tag as I did for my HZ units patchset? No, just take that patch into your series. -- With Best Regards, Andy Shevchenko