Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2592795ybb; Fri, 27 Mar 2020 08:28:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvo9W+34NU8QNfO8lURp2oz/9u1OwnbA9i5s5vTZxyrb+xnCNcD2weW9QB7cPBxbUwm8MEa X-Received: by 2002:a05:6830:17ca:: with SMTP id p10mr6023754ota.165.1585322911559; Fri, 27 Mar 2020 08:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585322911; cv=none; d=google.com; s=arc-20160816; b=cpatWkO3+ZpBiYHDcp7MSxOnGi6yjY5yk/6YxvV3z4mcz5X+Q59OGJ++wTyLj0dph1 1eWR3cR2OvLd668qemjf6tpb3COYKFMceSl7wX70YAHYm5WK2ZJydaevZXgIVtvR7xx+ ETHJMdiL3AElCzSECLo+5H97kZmpGuc4EysbmFqEPGMvXYzrbCQ1VHe5ytIf74Yydbdj MkRTY6Srht4Y/gu3lskcFsu8XSXU/88WlXP+07SAxhgYkiEVvqy+7v2q0v6VpziOcfDa 1Y+V3NtXCQJdGs54z6TwTtFxXNayW53Lw9Ngfo4ArV1X6jDgL0t7UfwFI9M/EHA/uhPA uP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=p68q7FxdWefV2R5Th1a0xfEDj3RdF6HgiFTN3ydE1vM=; b=IW7qwGhkl8FXUlZ0si//aj+BttXC71kussmheFgTh48E1aBtWLkd0vDXwB9nboBFxI VID4gDm31aNqAQaIgTtJSEp4vbaU8oNU/G7XxOBL74p1yktwBcu3vCIxHaV/yUtiCMHW 3NyyARwJPSMWefGyztPzCEioGj3EUbh8T8ap9qmCdGAG/kAX4CeJiATEHtvL7Yrb+MtY 9YUNyYoQhAGnJMltn4jbBgi9aBPr0XNYP7aNMN53C+AiPURyXTsp8VFARbPP3jt5tmOo G5dm4wMAElUFs6OT2WrdRsoYNwwm24IaE5tgWGsKyi7a3E6rLkW1z+KbvOSEG9VGQsu+ vYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=refdVySV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y29si2870738ote.208.2020.03.27.08.28.17; Fri, 27 Mar 2020 08:28:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=refdVySV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727585AbgC0P1s (ORCPT + 99 others); Fri, 27 Mar 2020 11:27:48 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38999 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbgC0P1r (ORCPT ); Fri, 27 Mar 2020 11:27:47 -0400 Received: by mail-wr1-f66.google.com with SMTP id p10so11881848wrt.6; Fri, 27 Mar 2020 08:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p68q7FxdWefV2R5Th1a0xfEDj3RdF6HgiFTN3ydE1vM=; b=refdVySVw7A/pjOV9Yp6LwkjoZ3kUkwdbrOU9RndbtuC/4tsonratdUUCGBoTCY2SA Yf6Po0lnXZFYZbqtXd7skSJWJuJbf/o6e937mRCKZoGUDJYNRZMLP+WymMaSNhbjmmbS fIHfwH93KIL3cNCGlTm12gf4Su6YRF0RHYHOLIXOaycGKIco23qMNSAerS83e3cx7FDd fQK5X7RjeRBcM41vyHmxrkpqjvoc4FQmKzz4VPHUBKSiP/0moJoylxpFDAG2jjHmOjgj zxnDw4oXb0xWHMdKgtF7LHKxv5DKm9vKVCTQZAaDhh0VY+MbLfK0jxZP3N0+Fh6V8L+d Fx+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p68q7FxdWefV2R5Th1a0xfEDj3RdF6HgiFTN3ydE1vM=; b=j8AxawuObKpGuA+N0pG2BS6S8HKNUmsV2TET7bEiunrsFhLyKfiRCHpJZPukzQ8pBy lZp+ou4Lv9oIDhTkZ/E1wdE/OgpbnmBDZ9i8yqqeanFi9aojiVsdCRZEGR4fbgea2px7 CfB+haabmmZqDGv7x4xPAdfpG44Vo4B0AY/JwFStbLHu38OJqYdL1P4Ew8igTKPNpqpS N9iIlokWaWKYW6zH5K3IaptdpI91DwYfEyYDhZQdcmi2poNXvKi+qYtHjFAD2g5xOuZ/ crg5eU09ICUpn4VcAeA7uoHSDKyCBWtG8vRgnhQfFChRQ0yJY3DQel9MjMP7oqwURYRQ haZg== X-Gm-Message-State: ANhLgQ0SerxTaEcaeACTIfgP1Vu9FnN1wFSvFPn6hh5eqi/+IW0Q7MLG Ueev3edW+FhH3x3wwOcdXUzZPka/C/Zfub94Bp03uA== X-Received: by 2002:a5d:6187:: with SMTP id j7mr16239644wru.419.1585322866189; Fri, 27 Mar 2020 08:27:46 -0700 (PDT) MIME-Version: 1.0 References: <20200326211005.13301-1-wsa+renesas@sang-engineering.com> <20200326211005.13301-7-wsa+renesas@sang-engineering.com> <20200327152535.GA2191@ravnborg.org> In-Reply-To: <20200327152535.GA2191@ravnborg.org> From: Alex Deucher Date: Fri, 27 Mar 2020 11:27:35 -0400 Message-ID: Subject: Re: [PATCH 6/6] drm/radeon: convert to use i2c_new_client_device() To: Sam Ravnborg Cc: Wolfram Sang , amd-gfx list , David Airlie , LKML , Maling list - DRI developers , Linux I2C , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 27, 2020 at 11:25 AM Sam Ravnborg wrote: > > On Fri, Mar 27, 2020 at 10:25:16AM -0400, Alex Deucher wrote: > > On Thu, Mar 26, 2020 at 5:35 PM Wolfram Sang > > wrote: > > > > > > Move away from the deprecated API. > > > > > > Signed-off-by: Wolfram Sang > > > > patches 1,6, are: > > Acked-by: Alex Deucher > Should we commit all to drm-misc-next? I'm fine to see it go through whatever tree makes sense. Alex > > Sam > > > > > > > --- > > > drivers/gpu/drm/radeon/radeon_atombios.c | 4 ++-- > > > drivers/gpu/drm/radeon/radeon_combios.c | 4 ++-- > > > 2 files changed, 4 insertions(+), 4 deletions(-) > > > > > > diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c > > > index 848ef68d9086..5d2591725189 100644 > > > --- a/drivers/gpu/drm/radeon/radeon_atombios.c > > > +++ b/drivers/gpu/drm/radeon/radeon_atombios.c > > > @@ -2111,7 +2111,7 @@ static int radeon_atombios_parse_power_table_1_3(struct radeon_device *rdev) > > > ucOverdriveThermalController]; > > > info.addr = power_info->info.ucOverdriveControllerAddress >> 1; > > > strlcpy(info.type, name, sizeof(info.type)); > > > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > > > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > > > } > > > } > > > num_modes = power_info->info.ucNumOfPowerModeEntries; > > > @@ -2351,7 +2351,7 @@ static void radeon_atombios_add_pplib_thermal_controller(struct radeon_device *r > > > const char *name = pp_lib_thermal_controller_names[controller->ucType]; > > > info.addr = controller->ucI2cAddress >> 1; > > > strlcpy(info.type, name, sizeof(info.type)); > > > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > > > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > > > } > > > } else { > > > DRM_INFO("Unknown thermal controller type %d at 0x%02x %s fan control\n", > > > diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c > > > index c3e49c973812..d3c04df7e75d 100644 > > > --- a/drivers/gpu/drm/radeon/radeon_combios.c > > > +++ b/drivers/gpu/drm/radeon/radeon_combios.c > > > @@ -2704,7 +2704,7 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) > > > const char *name = thermal_controller_names[thermal_controller]; > > > info.addr = i2c_addr >> 1; > > > strlcpy(info.type, name, sizeof(info.type)); > > > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > > > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > > > } > > > } > > > } else { > > > @@ -2721,7 +2721,7 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) > > > const char *name = "f75375"; > > > info.addr = 0x28; > > > strlcpy(info.type, name, sizeof(info.type)); > > > - i2c_new_device(&rdev->pm.i2c_bus->adapter, &info); > > > + i2c_new_client_device(&rdev->pm.i2c_bus->adapter, &info); > > > DRM_INFO("Possible %s thermal controller at 0x%02x\n", > > > name, info.addr); > > > } > > > -- > > > 2.20.1 > > > > > > _______________________________________________ > > > dri-devel mailing list > > > dri-devel@lists.freedesktop.org > > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel