Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3269510rwb; Mon, 7 Aug 2023 10:39:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6m9VY1dAbyMsYtHTVJDMdxvfQOHHWbSiWXtyZjZwZRw8GIcDpJ0XKcB68ZWhNnBUt11uG X-Received: by 2002:a05:6a20:3943:b0:140:a273:db48 with SMTP id r3-20020a056a20394300b00140a273db48mr6150373pzg.62.1691429951946; Mon, 07 Aug 2023 10:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691429951; cv=none; d=google.com; s=arc-20160816; b=yPVuaADewfQ4/iSHyQ7ExcBQjY4fnsFWzJyyVHHa1E3Zbn0ryb2+0n+hjLwrlV2Uik SBBZDPpMqun0AQzjtglwzfcezNea5L+H65v9f0kwfr7WW2ODwRXIyixbDSle15dPIxp8 jT5l2J3LZpm76B04plZhLKztZxb9yZow/aZ1WGxRENfZIB6eDz2dCl843KAOsW/rzzi2 UK9mSImxlR1VKfjtTw9+udp5V/L8jBQuUEFQEVlAPgbVhm615O7F9qvP8Vo1XUQBfDfE o+V1Zccug1k4vacjo/qMDAMHN+wF37ciNbOieNX3oN+iXgmdL05Cg7HDdXeniLDX/a4d bb5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+tjmnvzk6F5Cc3BXb1Q9hk2iZgMj75iv+C6EvtJVbyY=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=AoV8eTmK3qIsX5YBwftFE3s3BI08D+00P5townfbknFyypRDyS5ZRRijNreClWRXKC qRY0J0st9Y3XFgJ1vd9TDEnNGA8WQ6mLDV+P8+hXh3BVRYMFg3FZjSV4Pp7IuDns2QhE YNW68frtMBBDsruQ4fQ3B5Ni41I8a5yrhCUCzRvP89xE+wf5Y8BGnTxZiaGrx3TQU/Xi Ggs01r4mPRE5Wj3P/5tyTfROKWrX3dYBxi/e+luFUUVR2noEvu4V8TjeyDS3gRlYXxFJ 69PEifNGw6dUmRXecQl1f8r6dBFkVG52qrvEjBzffiAAtMRggcPpSSofpA18nAsDG3WO GZmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=OhhYefLv; 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 d8-20020a655888000000b0056383a7ddc2si5805622pgu.400.2023.08.07.10.38.58; Mon, 07 Aug 2023 10:39:11 -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=20221208 header.b=OhhYefLv; 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 S229932AbjHGRUq (ORCPT + 99 others); Mon, 7 Aug 2023 13:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbjHGRUo (ORCPT ); Mon, 7 Aug 2023 13:20:44 -0400 Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B518E66 for ; Mon, 7 Aug 2023 10:20:21 -0700 (PDT) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-1bfafe8a425so2303910fac.3 for ; Mon, 07 Aug 2023 10:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691428816; x=1692033616; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+tjmnvzk6F5Cc3BXb1Q9hk2iZgMj75iv+C6EvtJVbyY=; b=OhhYefLvsjRTZ0L12AmrUT5XV4rc7JF5/9w+yBEJ4aEMupPPdlv2xZJNoxvP4hq/a1 E3EthlVG+MD6+El1SJrSc3HyAk+o1BmSnjx571YrpVVzjDf2Yj7bWntSu3adDKUohvBQ QEL/k5w/HgpCoG++LBg4YAm2mcTU4RXb8CS39SNizclX6Rt02fuovrhfBJXBbI92mefi agt5dAy+vWonE7c3WS83P8iDw4aTk7yjKMWl/TXhawka1KL7+O8DfWpMxy87KAih+E98 BK3F+P0nF9OEkAROhQzo0lSZzfqXOHy9S6L35AbWq4ofCjsa0kEjwJF1w+W1T6lL/AI4 402A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691428816; x=1692033616; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+tjmnvzk6F5Cc3BXb1Q9hk2iZgMj75iv+C6EvtJVbyY=; b=X0GtolxXnSiJWUSpX11YerlaxKluxRmCgHtCWszwKq4lhDVXnu0rWF23uzjkK4PC4a +Dfoa1sIHWqhK9uAy+Hsu3L39ZgSeh4+NPNAIqmILMfDjnB1iW+oXY1tEnqb6bGT4n/v S5rj6L7O0RwDDrnmUQYAEh1sQiu2U8yQnZzcm5/rBn8SVKzyMcfEMhHJJHrR3yftojIB sn5IlHZyBzA6YvtPCNfMY/B0a7rCcMKXJoWSLRzxg0lWROlm7rLCnX16ORA/PhP1xytS ekmJ7Kvx7Z8UHHeV/hJ9maouodry+CCRtvdh0/+/3prRyDwRVqQyaj1GTPLsBdY2IyeN GYXQ== X-Gm-Message-State: AOJu0Yzy+og+YfDwe3794xitggWiQ8z7SLnj18hUwFdNexC8KOwR3RWN DxVM2vX+oiJIiCO85zShheBtXJNjcIg3pp4SR3k8jnYt X-Received: by 2002:a05:6870:fba9:b0:1bf:b863:b6d with SMTP id kv41-20020a056870fba900b001bfb8630b6dmr9826435oab.1.1691428816327; Mon, 07 Aug 2023 10:20:16 -0700 (PDT) MIME-Version: 1.0 References: <20230802065127.12183-1-sunran001@208suo.com> In-Reply-To: <20230802065127.12183-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 13:20:05 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu/atomfirmware: Clean up errors in amdgpu_atomfirmware.c To: Ran Sun Cc: alexander.deucher@amd.com, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Applied. Thanks! On Wed, Aug 2, 2023 at 2:51=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that '>=3D' (ctx:WxV) > ERROR: spaces required around that '!=3D' (ctx:WxV) > ERROR: code indent should use tabs where possible > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/g= pu/drm/amd/amdgpu/amdgpu_atomfirmware.c > index 0b7f4c4d58e5..835980e94b9e 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c > @@ -58,7 +58,7 @@ uint32_t amdgpu_atomfirmware_query_firmware_capability(= struct amdgpu_device *ade > if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, > index, &size, &frev, &crev, &data_offset)= ) { > /* support firmware_info 3.1 + */ > - if ((frev =3D=3D 3 && crev >=3D1) || (frev > 3)) { > + if ((frev =3D=3D 3 && crev >=3D 1) || (frev > 3)) { > firmware_info =3D (union firmware_info *) > (mode_info->atom_context->bios + data_off= set); > fw_cap =3D le32_to_cpu(firmware_info->v31.firmwar= e_capability); > @@ -597,7 +597,7 @@ bool amdgpu_atomfirmware_ras_rom_addr(struct amdgpu_d= evice *adev, > index, &size, &frev, &crev, > &data_offset)) { > /* support firmware_info 3.4 + */ > - if ((frev =3D=3D 3 && crev >=3D4) || (frev > 3)) { > + if ((frev =3D=3D 3 && crev >=3D 4) || (frev > 3)) { > firmware_info =3D (union firmware_info *) > (mode_info->atom_context->bios + data_off= set); > /* The ras_rom_i2c_slave_addr should ideally > @@ -850,7 +850,7 @@ int amdgpu_atomfirmware_get_fw_reserved_fb_size(struc= t amdgpu_device *adev) > > firmware_info =3D (union firmware_info *)(ctx->bios + data_offset= ); > > - if (frev !=3D3) > + if (frev !=3D 3) > return -EINVAL; > > switch (crev) { > @@ -909,7 +909,7 @@ int amdgpu_atomfirmware_asic_init(struct amdgpu_devic= e *adev, bool fb_reset) > } > > index =3D get_index_into_master_table(atom_master_list_of_command= _functions_v2_1, > - asic_init); > + asic_init); > if (amdgpu_atom_parse_cmd_header(mode_info->atom_context, index, = &frev, &crev)) { > if (frev =3D=3D 2 && crev >=3D 1) { > memset(&asic_init_ps_v2_1, 0, sizeof(asic_init_ps= _v2_1)); > -- > 2.17.1 >