Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4147365pxm; Tue, 1 Mar 2022 12:17:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxQLrfvtOpPT1MU90JPSUTvpMc9bUlsyS0xHPBsWV3+2+AZUyAFGSjX+urgNgicqoFmDkE X-Received: by 2002:a05:6402:8c9:b0:415:a145:9482 with SMTP id d9-20020a05640208c900b00415a1459482mr1924289edz.415.1646165843878; Tue, 01 Mar 2022 12:17:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646165843; cv=none; d=google.com; s=arc-20160816; b=dgkrDz7DiDS7jeDpjyrqfvR6OLRpFuxbwV6ODTGqTnwyuBUX6MZ+6WpUuVCWrh44rz XzwSqdNxK2jyp2CENvX/SD7LBEz6zdyxB64c7cRxZoHbFRMrakzAifVGIrUKPqgeZvPe OPqPwtgvk+84ksEBKbdqZF45rEp7MutOaiivkkmU+QElfioLoCSYAS3VZ94SiOaYWaOf uhGozW1g+Mt/QHfUDq73dcTQ/8gcY/QscK6d/uXD/16yQwHy6Xwpn90ymm+vNTnFmFih oOqnoTUU8UloIvce/Y9dI0szQDQ4RTXdY/p4Fb/4ri8MvUvDLu02ateDM//ukmI9E2B1 quHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:subject:message-id :date:from:in-reply-to:references:mime-version:dkim-signature; bh=2oNpK26q2m6Xy1nhECvVdzb9bqyZgEj4dQVtxGQNBDs=; b=VGp337gSR6W7Giw9As6V7o22YtmAeRXqEq6eHJRP0Nmb67eLQG49I+Ha+sRoEvGwjv HAW0D2jOJ6521CG6NXHRMU3F54Xh7OM/9NPzNQueYt/dVwJBRpNFEge+H3ivfYnMTMkV 2AGWk1uPfJpfTN+ivdmzlgXuZficWYKBsZ9Xj9YTOTmNtmCiIePwqSb+LnTtHczd5uKT YVqBRfbJm6xJZ3lBMvKrDTGbD8CQp68W9sauOlL6RJya9fD/A/VcZ2LhwLiA58l2zqXW 90672ucgUGE66XwdopvlapOipKZhS0XeudZEmtfS1JwNh7XpqaH/yKnzPBcdG1jy3LId EKuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=BHfJ0FHd; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020a17090672ce00b006d03c250b66si8668173ejl.652.2022.03.01.12.17.01; Tue, 01 Mar 2022 12:17:23 -0800 (PST) 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=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=BHfJ0FHd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236487AbiCARaa (ORCPT + 99 others); Tue, 1 Mar 2022 12:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbiCARa3 (ORCPT ); Tue, 1 Mar 2022 12:30:29 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEEFD2A253 for ; Tue, 1 Mar 2022 09:29:47 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id cp23-20020a17090afb9700b001bbfe0fbe94so2811660pjb.3 for ; Tue, 01 Mar 2022 09:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=2oNpK26q2m6Xy1nhECvVdzb9bqyZgEj4dQVtxGQNBDs=; b=BHfJ0FHd1Coau+LOYNsZsVB8kOtSFmA6BEPwpphBU2aloxrCe2B0jf9YCDPIztHZLQ EICWMfm9XajoxPzMSnn7PoVdCLAfTqqc48f+TMfZ4luwi3CcwQvRP/t1ktBRSTBwwyBm X49RGa8LBYAZ0digj3MfFtaS8MmGKwbIbtxTwqEDqdRZELHgAcxaHuq06wFmx+ChxNrc ULY9ocjHI1Tg5CUU07FrJIOrM8VBTQiWXbyeEAfLxDkLltphHrbO1zPKtKF3nRhpDx3M pnVDs2kqcaPIG7xrSOX+OGnm2uY4KlmI2vnxKTA7W+4sM6VtACLrDomcT2qnlkBc9xpW vzQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=2oNpK26q2m6Xy1nhECvVdzb9bqyZgEj4dQVtxGQNBDs=; b=8BRBCU1CWwaIbAPixiVR1JxjDLkOr2N7gxIHxjlS3JB7V04iDP9229k1bjHNF5jFC8 0O4HI0a9R9JNdpAbelfoNd+Cz1Vyqgao/6TSh+LSlkC2ADbdn2zteArrpND4v5an7lVF 8zudnKu/v6dy1Gnr01GL0dWb7lhFQ7IKeGvySLms4C4W49bI7mdgocbdhv+6R2pzUV9n b+V/mMj8e3CiV5l9Uu0Glc7+9twtZ1GLiJpIoPKQDTyl7kSbFffMuZ+UijnpKaVQ3WmR IWN/OcvbDms0cAzkSs3sALG3ZF5g4cB/c7DTwWG6UDDyn/YiPab6I4mDF3FRVi3gkZW8 VH/Q== X-Gm-Message-State: AOAM532vFfiNTKs2kei3Lkl7nctO9YCW2pbaffsV2j+inF9h1gop4vJB Yy7XM8q8OuGkTznSSRpFNigiDJBCQwwvDblim27hLg== X-Received: by 2002:a17:90a:5a85:b0:1bc:8bda:6a42 with SMTP id n5-20020a17090a5a8500b001bc8bda6a42mr23106990pji.4.1646155787286; Tue, 01 Mar 2022 09:29:47 -0800 (PST) MIME-Version: 1.0 References: <20220218133348.628962-1-jsd@semihalf.com> In-Reply-To: From: =?UTF-8?B?SmFuIETEhWJyb8Wb?= Date: Tue, 1 Mar 2022 18:29:36 +0100 Message-ID: Subject: Re: [PATCH -next] i2c: designware: Fix improper usage of readl To: Wolfram Sang , Jan Dabros , Linux Kernel Mailing List , linux-i2c , Jarkko Nikula , Andy Shevchenko , Raul E Rangel , upstream@semihalf.com, kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 wt., 1 mar 2022 o 16:16 Wolfram Sang napisa=C5=82(a): > > On Fri, Feb 18, 2022 at 02:33:48PM +0100, Jan Dabros wrote: > > Kernel test robot reported incorrect type in argument 1 of readl(), but > > more importantly it brought attention that MMIO accessor shouldn't be > > used in this case, since req->hdr.status is part of a command-response > > buffer in system memory. > > > > Since its value may be altered by PSP outside of the scope of current > > thread (somehow similar to IRQ handler case), we need to use > > READ_ONCE() to ensure compiler won't optimize this call. > > > > Fix also 'status' variable type to reflect that corresponding field in > > command-response buffer is platform-independent u32. > > > > Signed-off-by: Jan Dabros > > Reported-by: kernel test robot > > Applied to for-next, thanks! Thanks! > Jan, I wonder if you want to be the maintainer for this driver? If you'd > like, then please send me the patch adding you to MAINTAINERS. So, you > will get notified if people want to enhance this driver. So actually I've already added myself as a R:eviewer for i2c-designware-* files in one of the previous patches with the purpose of reviewing code touching this driver. This makes sense since I can also test modifications on my device. Best Regards, Jan