Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp188572rdb; Sun, 17 Dec 2023 07:33:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFuFj0t86MUu+f8IEKno5GZfQj9TvhbGyv8XdwhHk9OP+gCe55RKCMKr4EjZo66I0N1OMeO X-Received: by 2002:a05:6214:19c4:b0:67f:2d42:b21f with SMTP id j4-20020a05621419c400b0067f2d42b21fmr3850502qvc.120.1702827212483; Sun, 17 Dec 2023 07:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702827212; cv=none; d=google.com; s=arc-20160816; b=Lk2GUnE0qAc9Bn7aWtEybCUqzmq1lVNszNqKWVXL4PoYhJU0FmETMll13Pp4uYb3bO Bf0bgtJBeMt6FWyQdfKJ8oJBlFcSjUcZhsqlkZIezT0KVOqWuj9PDviyZRR78CDOt9WQ 9UAti1dJFOkN1XKVE6tqto4O8dRnbX52y4hG/s6Cj3wUYYXwfN3lIgjUqOEzAITQy+iP C5QVgqxgXVam5Ohr9zYOYJ/ZVMbFOld669255bbWutEYJ/rgBLBOC0JoVHRGt5QRlYOd gZKbcAC3HOtkMofLItooCysY56FoLB7f9pkDos057mgXE6Igx/SK89NH8Q39SrjLbpdz wLvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=Q5Z4tR06Qkm0+yhPoaVhQmj48yvm7Zr+y9XzEyeTPI0=; fh=0cjaHVbtEMPFXtl40IUYAgv7c71NGoV/igl2voVkNdA=; b=pA0RVAsqc3ujQwXh1KU6/DeZxM/OcsjxBqgUwfmG2v5Fap+bm61bGDwsykA58ScIPX tbnQVsZcxawphRcd7WYDbmpgfPT2O0jwgIPwdVac1Nr5FVo3V3pY5tgEv+3cERs137s9 E2tAMHA/2wkAmFWaHrqcwzUoLt3jwDMcFMz2zd4avsPQlIL7K8K7vI097wB8SmhEkV5K nu/WwGHqeSWSqxXroRAxeQwNvYEahmMmtIFoo6ObOZISH2yFbsVGEqpdm45UW+5XNhEu rh/uVbyE9GpyN2bO8QvOIzSvOKsys90GxWe6LDDTIuK+cEnNhw9i7eeUBQGYgadSbglb jegw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CvYCyXxm; spf=pass (google.com: domain of linux-kernel+bounces-2664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2664-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y25-20020a0c9a99000000b0067f38fde213si1376714qvd.463.2023.12.17.07.33.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 07:33:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CvYCyXxm; spf=pass (google.com: domain of linux-kernel+bounces-2664-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2664-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E6A11C2134A for ; Sun, 17 Dec 2023 15:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D3B044C9F; Sun, 17 Dec 2023 15:33:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CvYCyXxm" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAC2644C7B; Sun, 17 Dec 2023 15:33:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-4257ba1bc5fso24598021cf.0; Sun, 17 Dec 2023 07:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702827201; x=1703432001; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=Q5Z4tR06Qkm0+yhPoaVhQmj48yvm7Zr+y9XzEyeTPI0=; b=CvYCyXxmxy08oVqeMNCi5U6e3758b3ej+eh+fL5RIwXYZibozGJbjy3yyRqPlisXhE NzeKUhmiTfgk/ScLFXVgUBAO92zGwIGAEw2RijU4N6cd8aPpEj2kaeN+Vk+N9YTqKycr ktfr2+rxU5G08NduNyb2vPxVsWieAxKC+2e3jvwY9RAZ3o5MGqdXT0gSzXLIJ96Slya8 U6fjl6nd7coMLaM0Wrjix2JFXFmq3lj5nFr/+k8M+KAjqezDwsSFBC3j7ujQ1q806Qvh zb6VH3CQc/MuzVqYIkfCdKkzTmitsuuvRN2uAPSrPL63ngwtEr3mLdJDR3juPf4mY9Dt L1wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702827201; x=1703432001; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q5Z4tR06Qkm0+yhPoaVhQmj48yvm7Zr+y9XzEyeTPI0=; b=RbPnvoDF8oggreISlEKjy9lXVdf/EkF7NJIONEI9sBk0fDIkaGsVnoc2vxlISvSKjl 2cI93qeZsqyEYMnqQFvUKuavBMEX+3pznGY/7+bROOldQvbvEaobZS3+U8+0t6gAgZEh cMpQL55RNWOOTyPyEvcMOzTMSrEn0Cc9hhVSBiHCqLb73CwH6pklkFVviV1TNywAPtzo eHHyYPBKtZSJzP+68N58Ld31YYPx0VjkgOeSTayEOPIlG6T5R4DAyq3qIahFs7LR9Nvo mies38ugRG/giLzZHPXoWQbFlCTE4CRUvas7cKXQWu1D6EJVAmZZipvMyKmCsYwOFNJ6 zazg== X-Gm-Message-State: AOJu0YxbEEJz/PrAKtkRVKgiMT0cOWhexPjoraDyQCtHAxeG11FH5ClU fWgrqfbQIAYYiDANcnQwyb5cN/CM9m4= X-Received: by 2002:a05:620a:1271:b0:77d:5a1d:cf4 with SMTP id b17-20020a05620a127100b0077d5a1d0cf4mr17019544qkl.47.1702827201410; Sun, 17 Dec 2023 07:33:21 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m26-20020ab0751a000000b007cb8b709b31sm280484uap.23.2023.12.17.07.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 07:33:21 -0800 (PST) Sender: Guenter Roeck Date: Sun, 17 Dec 2023 07:33:19 -0800 From: Guenter Roeck To: Potin Lai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , Jonathan Corbet , Mark Brown , Joel Stanley , Peter Yin , Peter Yin , Potin Lai , Patrick Williams , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 2/2] hwmon: (pmbus) Add support for MPS Multi-phase mp2856/mp2857 controller Message-ID: <9abe3c01-f6ba-4791-9cf8-d73dfe44d899@roeck-us.net> References: <20231211160519.21254-1-potin.lai.pt@gmail.com> <20231211160519.21254-3-potin.lai.pt@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231211160519.21254-3-potin.lai.pt@gmail.com> On Tue, Dec 12, 2023 at 12:05:19AM +0800, Potin Lai wrote: > From: Peter Yin > > Add support for mp2856/mp2857 device from Monolithic Power Systems, Inc. > (MPS) vendor. This is a dual-loop, digital, multi-phase, > modulation controller. > > Signed-off-by: Peter Yin > Signed-off-by: Potin Lai Applied, with reservations (because due to lack of datasheet it is all but impossible to validate the code) and several fixups. So this driver comes with even less warranty than usual. CHECK: Alignment should match open parenthesis #671: FILE: drivers/hwmon/pmbus/mp2856.c:413: + memcpy(data->max_phases, mp2856_max_phases[data->chip_id], + sizeof(data->max_phases)); CHECK: Please don't use multiple blank lines #673: FILE: drivers/hwmon/pmbus/mp2856.c:415: + + CHECK: Please don't use multiple blank lines #707: FILE: drivers/hwmon/pmbus/mp2856.c:449: + + Fix those, and use i2c_get_match_data(). _Please_ run your patches through checkpatch. The above is really completely unnecessary and creates unnecessary extra work for others (me). Guenter