Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3221867pxb; Thu, 10 Feb 2022 15:36:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwalvVKPl0KYVnpQ+ll84TbWjUJsNKcFiFsVatq5UmL0xgN/68XPhKmnLvHm6n69fRA+Kl X-Received: by 2002:a17:902:8a8d:: with SMTP id p13mr9951297plo.80.1644536213918; Thu, 10 Feb 2022 15:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644536213; cv=none; d=google.com; s=arc-20160816; b=vFbu+A892Au521RhvEvaG9zWYGgmoUoTwjlUT/RE1OeL8tmcq00I1PQqjmAeLKv6Ue GhuddoaLryOJm8dvVEvEJPrin+Dvo8og1NpBT7acn6bG5SFIdXqJgKVYVCR7rcPcSgra hQHtSE/YGrcGtUObNhBf2h5JCyADkVI0YybpxTQ/YZYN960xebJR55T15NBN++GKfjuo AasJoEoLXUXRv0CfZgcmCVFodH7XeQ26MaOjrBUwvUNDs4VHqfoAcgnZV/FQb+HjhgOC hI9qDdxjPp002fZZw4NKDE+u3CYt0kIA2HsGvEjrPa/fH/ViT8L25LpQiUsT/Y3c1rqh 9n2g== 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=qNkOMQl8A7JQLLAN3dPQVZBYTQmGZfJ4kUvqGnhtRTk=; b=UQyAn8joETNmUpNVdQsM/59i8yYE4hLNjEWxf6TsUuP5vhBcPAmbtHvYBgX8NPZjP3 COt1+TXADVf6zAKYxse2JtVkeJcp5bcNk/U5fo/M/7fPySjTzCqeYfB9N8bkpyXLpfwx qistHSFB7Aa1Nr9Iz8hUXC9+bxoaK0LKmHJiWMy+vZRwcO+GFezRtniHan4rS4hiBBD7 dgyOumUxVdCyKhCu1hybiMbJNWgghFE/IACBxpZeHocZKzF7P63xPxpRCuGcPOO9YWXB 7dPXYcBSUphKr9OUTPJHVSJvkz8liSXILnJ2ILHPpBxmDQArlmynupF2voQCG0bSTuEM g2zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=xdBflYLn; 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 i184si696676pge.431.2022.02.10.15.36.41; Thu, 10 Feb 2022 15:36:53 -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=xdBflYLn; 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 S1345401AbiBJXFV (ORCPT + 99 others); Thu, 10 Feb 2022 18:05:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239716AbiBJXFT (ORCPT ); Thu, 10 Feb 2022 18:05:19 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B29855BB for ; Thu, 10 Feb 2022 15:05:20 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id 10so3183501plj.1 for ; Thu, 10 Feb 2022 15:05:20 -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=qNkOMQl8A7JQLLAN3dPQVZBYTQmGZfJ4kUvqGnhtRTk=; b=xdBflYLnhxEHNH6JIJuACj7OdWdgrvGdKoSrMPDYXmcLbjoiN+G1T37ecYmXol7rXR B5vW+i/XKfhbdlk4c3Z6m+rXdO42mLs5N/2Ez/yio5Kyu9Az4E8eWKVrqALUXh7YEPc9 knBXltFv1ZPUzGFiiwHGeq2VY4hb/gOJzUJpPI7T0+qQJ1ZPDq7TBqfHin5+ywTLUBuh 7XPTS0bdKu7tvfqjIIbFXDGvJfz7FWYf5Rn4EWXK4IV2lkV7c8d4ENtaF/Q5a6gcvW46 pbFnGl1rAhyQ1lHgKmKSRugUVy303WZBK0T4pZQV4aKzeL5mStH5SfI8q9wkIQGkLHCc Eisg== 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=qNkOMQl8A7JQLLAN3dPQVZBYTQmGZfJ4kUvqGnhtRTk=; b=GHTXyLyuuKZkfBy/5T1OY8t7wrsDZmzF2PyOMRc1G9gjVShC11iA2p7nG+K9sEjqOE F24XIXMYf9qryO4ZCIfnzoWj74n7MGjkd0Eou1xz63L3QyXL9J8MjaWqgWA1yvCplVhh zzRXwYHP7dL+Dx01Z2s9C/jK6R467glgXy3BIoWIDOqotKzeo4lyZw9jHjpWjUezuu21 jGRgwAZxFG9ZKRT+Q7GtJNox8Bu4T7uBuripsczsLNEFTT2V+VfDA+7VW1d56pqUSJgw fafT77Pfg8Fo/07oHVjqNZsLDPotYtC99HF/3jLznkia54x39nDrysyJxtXyKh997H2E 9wJg== X-Gm-Message-State: AOAM530SnuzXkkYIuDPYP5sIPxnni3c2oVIoGZzIJA7LuHfRpSni6Lba 9l1dB/T3omYD+hRCkEiOVexawzs1LXR2ot3rx/wDNQ== X-Received: by 2002:a17:902:ec82:: with SMTP id x2mr9821081plg.139.1644534320059; Thu, 10 Feb 2022 15:05:20 -0800 (PST) MIME-Version: 1.0 References: <20220208141218.2049591-1-jsd@semihalf.com> <20220208141218.2049591-3-jsd@semihalf.com> In-Reply-To: From: =?UTF-8?B?SmFuIETEhWJyb8Wb?= Date: Fri, 11 Feb 2022 00:05:08 +0100 Message-ID: Subject: Re: [PATCH v4 2/2] i2c: designware: Add AMD PSP I2C bus support To: Wolfram Sang , Jan Dabros , Linux Kernel Mailing List , linux-i2c , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Hans de Goede , Raul E Rangel , Marcin Wojtas , Grzegorz Jaszczyk , upstream@semihalf.com, Tom Lendacky , "Deucher, Alexander" , "Easow, Nimesh" , "Limonciello, Mario" 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 czw., 10 lut 2022 o 23:09 Wolfram Sang napisa=C5=82(a): > > On Tue, Feb 08, 2022 at 03:12:18PM +0100, Jan Dabros wrote: > > Implement an I2C controller sharing mechanism between the host (kernel) > > and PSP co-processor on some platforms equipped with AMD Cezanne SoC. > > > > On these platforms we need to implement "software" i2c arbitration. > > Default arbitration owner is PSP and kernel asks for acquire as well > > as inform about release of the i2c bus via mailbox mechanism. > > > > +---------+ > > <- ACQUIRE | | > > +---------| CPU |\ > > | | | \ +----------+ SDA > > Applied to for-next, thanks! Thanks a lot! > I fixed the following checkpatch warnings: > > CHECK: Please don't use multiple blank lines > #232: FILE: drivers/i2c/busses/i2c-designware-amdpsp.c:92: > + > + > > WARNING: braces {} are not necessary for single statement blocks > #361: FILE: drivers/i2c/busses/i2c-designware-amdpsp.c:221: > + if (ret) { > + goto cleanup; > + } > > Please also use checkpatch next time. Ooops, sorry for this. Actually I used checkpatch till v3, but forgot to run this on v4 where this change was introduced, my bad. Will improve going forward :) Best Regards, Jan