Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4365413pxb; Sat, 12 Feb 2022 02:40:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKrfK02YdinjOhW7jcW6KuSvRLqIHTU2j/FNsH2Dm2k9sEKeqNCjnujcMEG9s/qaB9+91E X-Received: by 2002:a05:6402:190a:: with SMTP id e10mr6325090edz.135.1644662420283; Sat, 12 Feb 2022 02:40:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644662420; cv=pass; d=google.com; s=arc-20160816; b=hO45VpZcecFU9P4C7FJmASwnitbvM8CVr8FqUWEIPycXzmcDIqHTKV5pSRy2lnQnYs RXMCYo8gzISJnYaOOosnQ7IyWnmuIGluFAvJJycOarxFYsxkbzlLan/PdiobEXv/B4aJ I9ECc+c6AsW38L8AOxhIj+3ylqKlajtya7IFvPN5GHMCMrTFYOnO8RgXErf6KGXx/9tu ap4UdqxuOTpETy7hjHDuxgHC4Snojh+fhsL/EYhgf4VwdANGnJCIGPLxWXYih10MV9RU PtB8XRP2j8m2PlqmQeBQlZWW5szG2TRdCxFQnEExumH1RC7gLRh6TN4PDudTYzm022T+ FApA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:references:to:from:content-language:subject:reply-to :user-agent:date:message-id:dkim-signature; bh=qHNo0mu6WN3OKqEQRXX8g0byVWVKTBLxk0ZHQelbkxI=; b=cvMTm+IvPRwL88xwM9C8d4EeYlPlcn505o80BQDDm/3grzO9gMTkRzw/MA3WqfAtRl auhX8BVufHAetMkdvH1tmspuOaNPGd3gYDtRIPaPXrTcfFsnQF01Loazz0YV3pjKouVJ D3kYT2wZHRhM4NuBwU/IKLv8pQrwbs35ZqDUndr0gcoJBWJ9WWowNo3jF+F466ThDyNa m2eWaasvSh1I1yM5eJjTJlza66mxdvfli+atdUSdTTm2nZiJV9zrN6mfoKTu7kyHpdV/ 46HcOB9LR/hKmccvJkmt+BGIjdiLD0KuGHZgDh7M3Cdn+KJK/XM8MT3BS2M1Y9XgalQ5 HiDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=4SCjWgvv; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13si13461302ejf.514.2022.02.12.02.39.57; Sat, 12 Feb 2022 02:40:20 -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=@amd.com header.s=selector1 header.b=4SCjWgvv; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343636AbiBKSZZ (ORCPT + 93 others); Fri, 11 Feb 2022 13:25:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbiBKSZY (ORCPT ); Fri, 11 Feb 2022 13:25:24 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2068.outbound.protection.outlook.com [40.107.243.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D998BC; Fri, 11 Feb 2022 10:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XXSHZvLjcqoEUHkNOwjTDo1OwQEClZ7edI5X7Luz7caUD5kg+5vcrd5ksZWf3e8QDa7rC2UBwMghbcvH4ni9LVQQKAy3ySxx6Fi6/V4IFCO2PMXdz0hftfegtC6w8R/YM7bN7OLQ6CtpVNcIx/CUF3i/kZvoIzF825dQYmMKZE9+5VKJRPNwnxoEIXLRkHQe9E268e1AS53ZTKyfXe8nzfmDeb/Qwnuk92XmQ/vGJiQuztxw6b4lvJwTkJ+McU7zdd3VP7G9+1FFVp+aOcSF+aE4hJQEl1d9ixwb6QL33rU7de3fVwBhm4Nk4DE6tAfvjAJE2VrR7QVliPebxaDJcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qHNo0mu6WN3OKqEQRXX8g0byVWVKTBLxk0ZHQelbkxI=; b=ieHZEPmPXRaLVSpTKIH+cqUcMz5kPw7eSEF3FH1LamUKCvY1rDJ/kwXiyog/jYb9pkOSXMKAaH84ccbNplp0XG4XAduhxW4iwHpT3UFZjShcGXk1a9aXqdaL9cW0Yx6PM2FNUfbmi01Yx18YDAAeIgfGnK0EGJDxPReyJ/GPHs5EePDV21F9gQkhHXGbLQmTmtiuylf/J+/hSsuAYQUtT8buDQ4i19oCYRcr5YAa9hrlAKrngzWdEDz+EODN8G/DsZh1tmfl93CeerzR6Yj0idpw9Hv1Hwu7m8KVn0kuoHhZMnFSM1Y8Abclcy0gEnp+6n1BrVbiMPvRGF71+vGeDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qHNo0mu6WN3OKqEQRXX8g0byVWVKTBLxk0ZHQelbkxI=; b=4SCjWgvvgvYnSqIMYIl2wkXA6Q15pNPQRODsFo0jQCiIKRrJdQFaaJ4USUUtb+i7E83kpm7DQGM6LeqUBXRxl8LLnFyfseu/3Ae6gnaj6Ukpwv5HXnZLXKR4+zlg880dCBaK7k5QXy0DhNZEOt/rMXxHQyUFMskaEBb6dglSdiI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH0PR12MB5346.namprd12.prod.outlook.com (2603:10b6:610:d5::24) by BN6PR12MB1652.namprd12.prod.outlook.com (2603:10b6:405:6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Fri, 11 Feb 2022 18:25:20 +0000 Received: from CH0PR12MB5346.namprd12.prod.outlook.com ([fe80::ad10:b9b4:d5cb:af1e]) by CH0PR12MB5346.namprd12.prod.outlook.com ([fe80::ad10:b9b4:d5cb:af1e%5]) with mapi id 15.20.4975.011; Fri, 11 Feb 2022 18:25:20 +0000 Message-ID: <46f9dc71-9640-71cf-e8b6-d0e4133766f3@amd.com> Date: Fri, 11 Feb 2022 12:25:15 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Reply-To: Terry.Bowman@amd.com Subject: Re: [PATCH v5 3/9] i2c: piix4: Move port I/O region request/release code into functions Content-Language: en-US From: Terry Bowman To: Wolfram Sang , Jean Delvare , linux@roeck-us.net, linux-watchdog@vger.kernel.org, linux-i2c@vger.kernel.org, andy.shevchenko@gmail.com, rafael.j.wysocki@intel.com, linux-kernel@vger.kernel.org, wim@linux-watchdog.org, rrichter@amd.com, thomas.lendacky@amd.com, sudheesh.mavila@amd.com, Nehal-bakulchandra.Shah@amd.com, Basavaraj.Natikar@amd.com, Shyam-sundar.S-k@amd.com, Mario.Limonciello@amd.com References: <20220209172717.178813-1-terry.bowman@amd.com> <20220209172717.178813-4-terry.bowman@amd.com> <20220211105322.180ad89d@endymion.delvare> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR11CA0001.namprd11.prod.outlook.com (2603:10b6:806:6e::6) To CH0PR12MB5346.namprd12.prod.outlook.com (2603:10b6:610:d5::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c318a4a-c8f1-49a0-c469-08d9ed8bdc4e X-MS-TrafficTypeDiagnostic: BN6PR12MB1652:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /hi7JdrH8yBKItSNgyYCPqg1nu1aOq58zJ/bXNcMKou+JPL6giaaM0nT4lBX/qbzgqBTNuZTJVhY76fUAhcBTeNL06/C9prKMCaWThTLdquuPkgE1kUak375urZlDaEdFbiJC9SDeb4p3OocAFze57SHfKfi/kLGVkWvxMeq0XwlBd3S9kc5TGS3Vgnl3HodtBDedH0DCJGKm7xOHHe7hMloIahU81iRA9xxhFWRMZGue0cXj3SLHlEnvpHktwUfjjLfkg0TZi+lVCb2c+/2rfwPaY2cojbSoevqJsRMF/TO6/Ga0xcjpi5J8gt9vekvJvxx5DuSHAudtabBK3pUdIsrGcOWN0wmonjK/NdU798+CgT7pLhvPF+DCGyjz6xqitW/M7JHc7kqodwDB4tgJzTQojbJldYfN0E0M9ctE7jVifu1sxPopoHXayZZ09InzgGshyItLg5CvYV4U8FZtmPAXpkQXx8DArKnbOSAmamNuzGD+FB+bWN7e077eRomX3+wnxaDkgxOqyWrQpcXFaPnuGdg5R/wTIKGWyXmpg+x/2NQ+gxwCtPtJIQOy8vUShD2+7RUJqx/P6Lbj/uGbI8uK+SqGL1gvn63WvfmmoQHBtHnKk6wyniOcW8K4zoSG1MLLiDJO7U0tHpg0dXz72wt4/Xmm3M9sO4TKLfNqBIaPYL+e/AA/RlQrCFTkzYgA5UMhJvTkyYSMU6obp1z6k4Dvss5YwPn948q/04iaH9bhd0R074LGTbMGYZTXmgb X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR12MB5346.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(26005)(31696002)(186003)(38100700002)(8936002)(6666004)(6512007)(2616005)(6486002)(53546011)(508600001)(316002)(86362001)(6636002)(83380400001)(66556008)(66476007)(8676002)(3450700001)(921005)(31686004)(5660300002)(36756003)(6506007)(2906002)(110136005)(66946007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q1FHakEyRnNMeWIzQUJXYWpmaDl1V2U2TmJHMGk3MWQ3WCtHSy81VHFPOUJ0?= =?utf-8?B?QUFVOHR5dE9HRHZzRTRwQ1FzYjgxTXJ4VkpBQnhHemVNVGNxVmtPMVVWYlVX?= =?utf-8?B?cnkwYlVFSWRTMkRJdmJFaWo4enowdldLNDY3UTVzUkVEZjRtdnRoL1kxM1Nh?= =?utf-8?B?dlZlb0RSYVNmNEJHdDVtYnZnbHFEeE94OW1YRlNxNE4wT3hRbG9OVlVsWjFH?= =?utf-8?B?VmFpOWFuLzlkWmQ2aDB5aXYyQXIrQXVOSjcwczYyMDZhampHMmdQdFdZQS9R?= =?utf-8?B?d2d5RlZ6VnNNM3hzSWRYTzlQUGJUcDlsRUdFTStDT3p5STJGTHFpakZKUVMy?= =?utf-8?B?YjZMenRUNFp5UGFGdVVJelFYSC9GY3pRVnhKWnI3OTE2TUlrQnVGaVplZjkv?= =?utf-8?B?ZGlzSjNvWWpsZUdNWk5tU1kwQjhSdGFKZDRkanRKaHFqcUxjZn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f1-49a0-c469-08d9ed8bdc4e X-MS-Exchange-CrossTenant-AuthSource: CH0PR12MB5346.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2022 18:25:20.3272 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jqzSEBvdfTvWizqApEAphSpPTZTc7baFjwpx/kswfwHkIjB0npH4AopPzmcJ+rVPFVyrnbgfhc0i7T7xqElecw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1652 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 Hi Wolfram an Jean, On 2/11/22 09:00, Terry Bowman wrote: > Hi Wolfram and Jean, > > On 2/11/22 08:42, Wolfram Sang wrote: >>>> + if (retval) >>> >>> Missing curly brace here, breaks the build. >> >> Bummer, need to check why this wasn't found by my build-testing. >> >> I fixed it up and also rebased patch 6 to my change. Terry, please have >> a look that I did everything correctly once I push out later today. >> >> Thanks everyone! >> > I need to look at how I sent that out. I will look for the fix in > i2c/for-next. Thanks for the help and review. I verified the fix looks good. From commit a3325d225b00 on i2c/for-next: @@ -373,11 +388,10 @@ static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, piix4_port_shift_sb800 = SB800_PIIX4_PORT_IDX_SHIFT; } } else { - if (!request_muxed_region(SB800_PIIX4_SMB_IDX, - SB800_PIIX4_SMB_MAP_SIZE, - "sb800_piix4_smb")) { + retval = piix4_sb800_region_request(&PIIX4_dev->dev); + if (retval) { release_region(piix4_smba, SMBIOSIZE); - return -EBUSY; + return retval; }