From patchwork Tue Feb 27 16:30:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bergh X-Patchwork-Id: 207306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2811990dyb; Tue, 27 Feb 2024 08:31:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUciUMWFzenz5tl3suCIngnPB4dtQad3qVMytF5g8dOeODLuXxkwad0+/Mrd2LO3oapnh76Qzn2YQ01o6N81qcaz4sZ7w== X-Google-Smtp-Source: AGHT+IGso71+ZaofmRBbwp3juqWdvGh0lY7sK5xi81tpOppIHy9zjEZXKwPiDEQsj8vkUc9gfcev X-Received: by 2002:a05:6830:1114:b0:6e4:7a59:ac6a with SMTP id w20-20020a056830111400b006e47a59ac6amr10900203otq.1.1709051488917; Tue, 27 Feb 2024 08:31:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709051488; cv=pass; d=google.com; s=arc-20160816; b=YNwNlVp2zvKeYY9c/X7jcroRxlUqLBrH5fuVK99Sc/bkZf+M9py0P447MVy8GvmqyI CloyaLT2FkOH54kUpytEPoVusQcbAVwgPEsHBdoPQ7gGY09OhuJ11zn3D1OruKDL8sxK d1QPh79GA5dMISNlKsiE+45d7XziJcHQwfmbnu7U7Fr50U0qGTUV6zbYPFHpdZiJUa35 bvhIIJDiYZyM3+6AEIHbjZk1IGMr1Kq0ideCMDK3j6ZJvsqubQHGXM/A0bX+b/ULigos Ju9S5NKvKHVDhQKkuDZEw39ciSOymHXmVmnHqBPD+BaS9IDqhxh9aS0DYI/nDgrc83zs 4BdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=+DNzd2Y9Nsj2d3D65u6Z6DGyaZKDh+IjqLbOArWV8kY=; fh=/j7VQffnI195wr6QXuleL1KVo8rcQRtwBH2PQC6iyuM=; b=ivDbsZlMb0lyEl3ykylvX7jzUHVpS4fCnmSBNtyWJ23ssAFtqVIsaGk4RqnUAQI7j0 dh0Ya7ES8w1qhE6nkCAu/NKRKhjTeGuQ2Ywd3a6zavZXZiXOyC3txmXdEmxK48Ey5YLK StytM4qNuo2sd1H+JC5ZkOzm4+0fCRgHonEnFv8eSrc4NyfYS+T+Lk5W7SUysuDBGicd imguQehhnMwrqX2w1rg76giHqMYWI6vDdEEFbLCm+9Dm38iPEsjEj00GpYg73UfJryIh eIAp1piEmdO005KiaoRkp2SttezS6+CymlnVUpwESJUSAU+EV9hV696E0Q+/MZCaAE7F uy2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Faq9Y1gF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83605-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83605-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g9-20020ac87f49000000b0042dcffbe112si8645548qtk.408.2024.02.27.08.31.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:31:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83605-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Faq9Y1gF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83605-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83605-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 9BFA41C2348C for ; Tue, 27 Feb 2024 16:31:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F82B2576D; Tue, 27 Feb 2024 16:30:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Faq9Y1gF" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.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 ADCB01F947; Tue, 27 Feb 2024 16:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051450; cv=none; b=fh7WmszSHWCjw6qnPkOPFklVePfMMM5JhYqiuTXrT/KjCqjNzVwRkC93eiNUNXqNg1pHGUYppy4GESX+qGv81jwexhtKzwYV7QNNOnNJ3+0IPRRSdTJF10u94JvQUOWdhgxBtkF0tnTjGCbCPe0WP4kDaqVegtoiAEIBk6Mb4Mo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051450; c=relaxed/simple; bh=7UWytEjpvnuf7HyU7fycSpNmZ+Pkvdxbg2+CIsFkOyc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uy3905XSANCKDQh2eJNVJ7n5RB2gzdObnPb9EFyfBy/ezFHL9j+mLtOsaZxASSXPkFXtvQkZormahr+6h3o2YM3vjpVkYWvqvB4lSM6+YqTymDGAfXcYva7bSleYNpX3L4GgBUH/vcM4XBTd7V9Iaq48XU73m4GXC9zINP6eUeY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Faq9Y1gF; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d21cdbc85bso70362111fa.2; Tue, 27 Feb 2024 08:30:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709051447; x=1709656247; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+DNzd2Y9Nsj2d3D65u6Z6DGyaZKDh+IjqLbOArWV8kY=; b=Faq9Y1gFbR/wYpyoLPW5qvPHjrgaMObNHhSgcgt6WaPaPmulylZL9q+KKp2cmCelRo RzFYdXKOb4WhFNmw4su4/l7SOg+1BF9gJCcFp4N3N/XJf4vAna8Q7WuXjFfdN4RjfWKO BxYwqepOtzxL0XdAxS4i81/ycuaE/ss7ofCaMK7EonJjAgsFUixib6rYmArm2cNUmV1l f7uDr7op4kz9yiRb8p7ItfNgs5NdsK2p/x/zcYQStDtH0Eff5cRCGq9+DdrmhI4Ju2QE 7AnOh4lebDOlQoVGxETKr3dkFPSNyeY9pu4egqhnH9HVA8vAz85fKxIL4Cx1/MpeFRZ1 CSHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709051447; x=1709656247; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+DNzd2Y9Nsj2d3D65u6Z6DGyaZKDh+IjqLbOArWV8kY=; b=FusT7Yrq2y/igUHX2zTBZAliD7vURfPp3/bo2onO3BbaeTooslOVMZ7ApvMgYaO4Qc SZS3W3yZpNc/9ghe0ewGu0dVjnILXxtu6z35ddG0RUKspEnGnQfN+yLrgLFfnu+eDHvM 7VgHiIDaypY10xwSkWOJQ4HhFf8MX6+HF1hsGcpJv3C5e1raWvs3P8DufaUjXC+Ce3gC 4DsdKsnxP6X2YvSAh5QRnBgZT3W0K7Rz7fnCRZVW0w7t6suD7bT/hEf7RH15iILtleFN HnukE9i5WYLOOX2eAmgnOtMM3yK+3a5a5fl0hGOxfTLB6NrFemxrw9zza65trcuScH4o 2QaA== X-Forwarded-Encrypted: i=1; AJvYcCXzB0Vo7rKP4EAejiRx9PGmi6v5H4DwkBUCNQGgH4ZuPuxG2pyBfKPQ5ERsCejqx/W9K765LaXkl1LQQ8Lc4qAFy8u2XJJuumn/hG5wi4i4Qd5mlNWrAKPuHeam/GMqmpIBkle/x97beZs= X-Gm-Message-State: AOJu0YxiMrO8ioKReC8zIAdFpgwysU6DnpoSky7JZ+n0pyxTjx1fUSPl CcemUM7zgEd08oqXpOGPY74FM4JGVP74C5IcR+h8sPpSkU86zBdl X-Received: by 2002:a05:651c:333:b0:2d2:3f13:52e7 with SMTP id b19-20020a05651c033300b002d23f1352e7mr5940035ljp.12.1709051446802; Tue, 27 Feb 2024 08:30:46 -0800 (PST) Received: from localhost.localdomain (c83-255-24-248.bredband.tele2.se. [83.255.24.248]) by smtp.googlemail.com with ESMTPSA id n11-20020a2e904b000000b002d0b6eafa8csm1300712ljg.39.2024.02.27.08.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:30:46 -0800 (PST) From: Jonathan Bergh To: hdegoede@redhat.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Bergh Subject: [PATCH 1/3] staging: media: atomisp: Fix various multiline block comment formatting instances Date: Tue, 27 Feb 2024 17:30:41 +0100 Message-Id: <20240227163043.112162-1-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792070373957991062 X-GMAIL-MSGID: 1792070373957991062 This patch makes the following fixes: * Reformats a number of multiline block comments to ensure * and */ align correctly Signed-off-by: Jonathan Bergh --- .../staging/media/atomisp/pci/atomisp_v4l2.c | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c index 547e1444ad97..77809e88da83 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c @@ -78,13 +78,15 @@ static char firmware_name[256]; module_param_string(firmware_name, firmware_name, sizeof(firmware_name), 0); MODULE_PARM_DESC(firmware_name, "Firmware file name. Allows overriding the default firmware name."); -/*set to 16x16 since this is the amount of lines and pixels the sensor -exports extra. If these are kept at the 10x8 that they were on, in yuv -downscaling modes incorrect resolutions where requested to the sensor -driver with strange outcomes as a result. The proper way tot do this -would be to have a list of tables the specify the sensor res, mipi rec, -output res, and isp output res. however since we do not have this yet, -the chosen solution is the next best thing. */ +/* + * Set to 16x16 since this is the amount of lines and pixels the sensor + * exports extra. If these are kept at the 10x8 that they were on, in yuv + * downscaling modes incorrect resolutions where requested to the sensor + * driver with strange outcomes as a result. The proper way tot do this + * would be to have a list of tables the specify the sensor res, mipi rec, + * output res, and isp output res. however since we do not have this yet, + * the chosen solution is the next best thing. + */ int pad_w = 16; module_param(pad_w, int, 0644); MODULE_PARM_DESC(pad_w, "extra data for ISP processing"); @@ -507,12 +509,12 @@ static int atomisp_mrfld_pre_power_down(struct atomisp_device *isp) } done: /* - * MRFLD WORKAROUND: - * before powering off IUNIT, clear the pending interrupts - * and disable the interrupt. driver should avoid writing 0 - * to IIR. It could block subsequent interrupt messages. - * HW sighting:4568410. - */ + * MRFLD WORKAROUND: + * before powering off IUNIT, clear the pending interrupts + * and disable the interrupt. driver should avoid writing 0 + * to IIR. It could block subsequent interrupt messages. + * HW sighting:4568410. + */ pci_read_config_dword(pdev, PCI_INTERRUPT_CTRL, &irq); irq &= ~BIT(INTR_IER); pci_write_config_dword(pdev, PCI_INTERRUPT_CTRL, irq); @@ -525,9 +527,9 @@ static int atomisp_mrfld_pre_power_down(struct atomisp_device *isp) } /* -* WA for DDR DVFS enable/disable -* By default, ISP will force DDR DVFS 1600MHz before disable DVFS -*/ + * WA for DDR DVFS enable/disable + * By default, ISP will force DDR DVFS 1600MHz before disable DVFS + */ static void punit_ddr_dvfs_enable(bool enable) { int reg; From patchwork Tue Feb 27 16:30:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bergh X-Patchwork-Id: 207325 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2825115dyb; Tue, 27 Feb 2024 08:55:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCViIf1qVqaWvnFbMLtDklnonVBoQngiaFiYIsL9nBAr/3B4JWzF16eA4OFHTYI1UZw1/drtIs18moH1dksXL2bXBcOckw== X-Google-Smtp-Source: AGHT+IFkRDRa8z27hWLZpHSwzRW8vaTy/+PGBmGl9ElDFnPjoodvwTv+aCnS5E3ia7j14WqA4NVs X-Received: by 2002:a05:6a00:2d8d:b0:6e5:5116:2cb5 with SMTP id fb13-20020a056a002d8d00b006e551162cb5mr1654455pfb.15.1709052918832; Tue, 27 Feb 2024 08:55:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709052918; cv=pass; d=google.com; s=arc-20160816; b=qEnq/Gs/wDxyMmMRF1M/verslRQ64EaxEJq9HvvPe7gnjmV1mCO95GaqDvuSpdo/kw XJ+dF95b/75Dy/kZfF1sYQl6SveL5ydyxp0zH9YzpIIfajkhkK+fwnp2PcqaMQl2sK9Q Y4bbk2L4HXxD7XOsPztr4fKjHvLzYMMwcnM0ssQBmDzKCSi9MZ2jUpL1tipRLqVFncHa XDLXcxnqolv0odByoLfK1U6vc6wg1LdkUTw+Zh5dTe91n+IatBLPqfcDc3+qWwywhS0y GbdZ8fkrOr4Z61pXXPbAsEYSo5/E9mm+JiUI3xXftG/uQRKCMZZ079rSYajLvOdZ3yy2 +ssA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KocPvQVvLJA/0nwdtzHdh37+pJjC48KN8F7Qu3p5gNc=; fh=iQqu5HftSODK1Dtw3lEmnrk2/yG+OTUb2Dm64LdAJMQ=; b=1B8HRSCk+S33oTOOPFQ9owslY9sA0t1MUgzzFo/L/4FBrkzwKZ2iHbl8UfKx+ojUXz K+bhmmsJaoOak9en5kLlmorMaFV1E8FRt8YuHYXlTsX2haqJF67e7m/GGvOBlTrBGEVn M+ntaCcjvAE0MJQYrD973HXfPzsNGoRDz/8+SuW3v7qDVbPNGoy4xCrtStNPF5aBqZIC MRWDeSPBG7PBFViVJbnEB6sSyE3/i2JtHMeEr8Zhy0UIkDQI/PtcAWGBp0hOWeLd1SFk Gv//HqmzShVgMdrlmGEBvbIdS+yTQ+m1H/KSkK6D7CUAyRo+o6m3uY5T4/u5n9fVXeBa c+7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WVlG+I1K; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83606-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83606-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x5-20020a631705000000b005d7afbb31b3si5648377pgl.352.2024.02.27.08.55.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:55:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83606-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WVlG+I1K; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83606-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83606-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 84C57B33EE9 for ; Tue, 27 Feb 2024 16:31:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 025E51DA4D; Tue, 27 Feb 2024 16:30:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WVlG+I1K" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 C737F208BC; Tue, 27 Feb 2024 16:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051452; cv=none; b=OUtJIgWl48TduyxKMGrqeO8G1U7EMpKuq3Tby9GBM/lYoyjGL+7C4RIuerNFwDt8DKEO46l9NKMWD6mLztQq6BV6dOo/2lue4JjK5O4NpakbT1gWhbJR2F5qmUYA543vCeqh7DkH+XgBE4z2VxkK+Hf4beQpzGhhvEViRjrtT5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051452; c=relaxed/simple; bh=GU1sdyhFBj9bzRppJ/hsZ88L7R9BMut3eh/ZoZbanbo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X/t8E2J67eKZSo+qMTZrsHHGFkWZ4G6zRAngUpZZKmex5+OjDX+us2XYkN/89BP20dOYdSHQTyC9NUQzNq0uECKWFaRXE06ot97IBY8fK3jTX/OztvJryZDDO7k3Aciuzbp1cuFhWQHYXr5wyxRC7C/o7csArMpri71TUAYUOlU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WVlG+I1K; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d23114b19dso63389471fa.3; Tue, 27 Feb 2024 08:30:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709051449; x=1709656249; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KocPvQVvLJA/0nwdtzHdh37+pJjC48KN8F7Qu3p5gNc=; b=WVlG+I1KsiNBx5GuqEmBqsymI1ZbwKNCliF3L7RRGkAKKBb113CeQ3ipJEfc5ukvSY 56wF7eEl74tNMznOlc0uXy0F0Y3OJqfoQGxXJjEEt7pBLhE7RfcMz8OTI655G5HYM0cb RrjCj9jLt59W8ynpVhVv9OSrjUH5ZNuEnYyG40DRpA875ZFwARLXMj0rojPrxdCbMvzU 3Cm9iNpB/Cj+InaK6p5LihWIh/hbGZ+pczfwh9jDReXoc4NMlKgwKDDIgTmyxQmyonyI 1A6lFQhOksnAb0eLP5VNfc6YjxbN6swXfDhuNrZCIWDRSzVLWCOBkZT7UErmv65QXtWG dIDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709051449; x=1709656249; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KocPvQVvLJA/0nwdtzHdh37+pJjC48KN8F7Qu3p5gNc=; b=ajLD+bcYl4/aru5s/qmLEZDY6out1hkfUVEzbdyjL9+VqqXeMKb7xPA4mhnkEgGty+ 6Qy9Kn5WCxAt//Xgv/Nm6rQivaQuxAwz825uWwSjqfF9NKROxTnTlqHS80KxMXNBazWg 5jAdayaLuAUaFI5qY2Tk6VodHCcNb0nDIPCah29n7RTzOSU2tVIjRdmZ5XCt2rVLJNPD Dn6JqRycCTEON14hcyjNe4A2k7XyEVP79wxVTTBmjqkGvQ9STzRFC/ozIVYeOYpUj+MN lcM7OFNRZ82IaN7lEv8a2yFb9b7q1oHIf18i46ImY9EKLNXETzzV/hosTERWo0ThsIHM 1KUQ== X-Forwarded-Encrypted: i=1; AJvYcCUHC9Fa5OEECHHdGWRYLRM5VtpfjOY/OYmxaVlsI2mG3y0b8Jc2LPaZMurQCkqQ01Ef4xDjMu8TrzmhG8Zq0meP6TkiyYDLLD8e2nZBV9mDkaXgZP6wZRe7SZ/DqoKvdnHJkVElR8JLsT0= X-Gm-Message-State: AOJu0YzQgRsvZaPUdmqxhZ5ZCKpJrzqeDM+fLhzNN5vDsnRi6BDYlU3+ XG6KV7fCEp+PRdL0le2HO6uw7Nk/1n9IQXYMbXO4ao/LkXsDEjN2 X-Received: by 2002:a2e:b5b7:0:b0:2d2:2b77:43a8 with SMTP id f23-20020a2eb5b7000000b002d22b7743a8mr6212652ljn.14.1709051448752; Tue, 27 Feb 2024 08:30:48 -0800 (PST) Received: from localhost.localdomain (c83-255-24-248.bredband.tele2.se. [83.255.24.248]) by smtp.googlemail.com with ESMTPSA id n11-20020a2e904b000000b002d0b6eafa8csm1300712ljg.39.2024.02.27.08.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:30:48 -0800 (PST) From: Jonathan Bergh To: hdegoede@redhat.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Bergh Subject: [PATCH 2/3] staging: media: atomisp: Remove extra whitespace after opening parentheses Date: Tue, 27 Feb 2024 17:30:42 +0100 Message-Id: <20240227163043.112162-2-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240227163043.112162-1-bergh.jonathan@gmail.com> References: <20240227163043.112162-1-bergh.jonathan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792071873751174364 X-GMAIL-MSGID: 1792071873751174364 This patch makes the following changes: * Removes spurious whitespace after the opening parentheses as per code style guidelines Signed-off-by: Jonathan Bergh --- drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c index 77809e88da83..cd00282b87b7 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c @@ -1357,7 +1357,7 @@ static int atomisp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i pdev->d3cold_delay = 0; break; case ATOMISP_PCI_DEVICE_SOC_ANN: - isp->media_dev.hw_revision = ( ATOMISP_HW_REVISION_ISP2401 + isp->media_dev.hw_revision = (ATOMISP_HW_REVISION_ISP2401 << ATOMISP_HW_REVISION_SHIFT); isp->media_dev.hw_revision |= pdev->revision < 2 ? ATOMISP_HW_STEPPING_A0 : ATOMISP_HW_STEPPING_B0; @@ -1365,7 +1365,7 @@ static int atomisp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i isp->hpll_freq = HPLL_FREQ_1600MHZ; break; case ATOMISP_PCI_DEVICE_SOC_CHT: - isp->media_dev.hw_revision = ( ATOMISP_HW_REVISION_ISP2401 + isp->media_dev.hw_revision = (ATOMISP_HW_REVISION_ISP2401 << ATOMISP_HW_REVISION_SHIFT); isp->media_dev.hw_revision |= pdev->revision < 2 ? ATOMISP_HW_STEPPING_A0 : ATOMISP_HW_STEPPING_B0; From patchwork Tue Feb 27 16:30:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bergh X-Patchwork-Id: 207314 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2817926dyb; Tue, 27 Feb 2024 08:41:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTLwMmRR2gM6hpj0ircJrS8Xw/I5HjWuKt/yYYMnzEvIQWqetU3AmXWLZAZT+w5RvFu6FVsVLNSNJLV5nexfCeN8zZbA== X-Google-Smtp-Source: AGHT+IEVsfI6YeZUfPSghSuoztXdXIvmMCdE1dGvRMLYnF3+OF0M3iXc15JjH8EO9CfY8wlMuG3J X-Received: by 2002:a05:6a00:b53:b0:6e5:138:acf with SMTP id p19-20020a056a000b5300b006e501380acfmr11174154pfo.10.1709052071421; Tue, 27 Feb 2024 08:41:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709052071; cv=pass; d=google.com; s=arc-20160816; b=I5KhzcX3sCDT/+pCexvFiRF0OCJMPVq+QMRGR5UrdRqE8VM/3EuGK33h1v5QDhXDPk u5Hpt0+syovi4emQ+C2UE1Z+RUBTNAZ7URvPC1/ete78BsnbMGgJ+ON0zIR4w+rqK+Hf KglaWWnIcqv2yrA1Q9vzpr/b7kLepmJTxN56788NDZRfXcnK+ZYMXE12cr1g9h03U1jB LH5rHGBF/UHN9iMtdmEB4lxj2CbHXTFpPu1LasMShvsoAME+nsomQ7Y+tJxLLG+UIWNA jJpgUa/rWyf4Dm5uZ+HWrhiJaUuICQy+UEBxB57swjwXR1GfXaCKy0/85oAtFNztOmK+ QjoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5GROxoFfHU3ZTM1nyWGwBFIoVLn4kosYhHeZ7KnHqvU=; fh=tK9P1Ghx5OeKlYV9iENUwpZYAjXmX3NmnGYpPtL+e7M=; b=fizjGPvY2saQIdjsIMqj8KxkYMzXgGgr/v11/rSxjQODxHSMzEaAwsNf4PpL4YipXU 68LUTkxW5nhsrvqfaDHG3G7oCZuyMGKW4Gy0nCeSrD9MaWNoNj8gxR0NVH9PjJkrBZUH IP9RLyNN+7hUtNRldxSSQf9xfq7R8P6lOwYQ4XAkre50EnrZNTG21hAU3KkS/bXpnWvF RvjJD9WmCT793dGNNRj3/pZJamtFMfBefJQuBVVhU85csM193WYObhSEwKQH5c5xQMAG h5TW6Ajuw32fRKAmPWCN+F1CknDm9we6/cLd6mQ5BroN+eBerJ5oZejc41QWhIQl/7fp aREQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="e/mR4v/Z"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83607-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 81-20020a630054000000b005d8bbd208desi5613420pga.163.2024.02.27.08.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:41:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="e/mR4v/Z"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83607-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 447572912C9 for ; Tue, 27 Feb 2024 16:32:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FF4F4C61F; Tue, 27 Feb 2024 16:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e/mR4v/Z" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 652F0224CE; Tue, 27 Feb 2024 16:30:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051454; cv=none; b=ZkZA2/HoufxYo16mYOfK8eI+c6XNDPWWfXOEBm+70gUe11HUxpyFvh5oBhV+kYh1CshkhVx5VoI80yFUqECB0GzWQK6GgNevY1dk6hDKKxAaj9zGLv7D03SIo/S/ycQ6L7rj59A97R7I0HFHQY7M0F2EuHtlCbVnceZ/JdbV0Ig= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051454; c=relaxed/simple; bh=a9ax9Th0J/yWwYA9Ji5yycvcTXucxvXbQDowoYu1TZg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OjRYZjn1aVDjZWLlN/Rqvmp+sxBfJYhJbqRR0F04vLeW/lXN/4gbBIOGK+75Xz9eaWZGOAsyflpLWFVfznMzfeDM2nj9P7j9IB7YcPd4mKJT9oCALbdEQA7GYkaVJEuZnY+GCJg5hdD4QEFuAlkj3gAT7dok9H2MtIQ7BuvH1JQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=e/mR4v/Z; arc=none smtp.client-ip=209.85.208.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2d28e3c0fe0so27764091fa.2; Tue, 27 Feb 2024 08:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709051450; x=1709656250; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5GROxoFfHU3ZTM1nyWGwBFIoVLn4kosYhHeZ7KnHqvU=; b=e/mR4v/Za1ifiO8j/QD0V8zeiqrJhwtBPzQ5BS35L+ZrOXJWMlMLaRaFIHL7Drf6H1 qmVpbNyu4IqoDgwhw/9nknm/RchiyqmRX/zYABUvo5nU/nUtJNk878IKDCuXamn03Rnc ThkHUu3UWMKW/zjl3mjU1nu1f0+gd/zUzY6pLEfbYHmc9CudgvjU7HYucquZztFm8ayC Y3Ikk2weX5hjw6ANtDxI4RDuQ7VNWESEhGyUSGV6IwrFijQk3uCQKsN84Q3HKD8y+o67 cWyyKJYLnbTKnl8YhtqaaSoXUmv5FgI6Ak9uP90P/86IhBu2+Za6QVMsnFNYeKwc6lNr RYnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709051450; x=1709656250; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5GROxoFfHU3ZTM1nyWGwBFIoVLn4kosYhHeZ7KnHqvU=; b=BxLcfxrcsAOSz1hedTejjzGFAHBVHBwXk4010Kjb4GhZmKE6VqEIcqbFR+/j/UcSyM 7GpwephNA/ZMjgJhgEF3866SUTgCPVi7k4/zv4q+HoBZLIuR8vRa423F/XoudPu77Wd/ ur8ASndngNS8kd+V1KWSoE5EEt0/yoF06HJtyW6dHNqspbAsMcpFPcjgILlY2WFQwban 5Gt4H0Zc9nBFw98CiIx2+OmMBZhCZhU3KOSsEEfGVAB4Zm4J0bvh3eavKCi36vgvK9Iz x1rqWW3K/9u/1tuBrezbSNRkDmDEVcmXLry7Vp3gZRwGn422klHW01+vyUEea45/1cl4 D//A== X-Forwarded-Encrypted: i=1; AJvYcCUaGaO6J5x61SjAxEhN4Z0/hpu5usmVitPfEm3rtviHLnoUkTglBcUGcxc5Y8vs+0kAOosR+ZJHXyXpzXXLCJZnuShQK228ATx0J6bqEIesWfhCQUxNwWNo7nDEzfVySTyHgxSUVEAAr30= X-Gm-Message-State: AOJu0YyYJhhZNSOB5Aj/LiEviepXMYh0ADad5btlsSpuKm6rfjxMhnWk vi5LFIDYpkqj/OFeKHQkaOrXw/srwKFWnrpSIao21lk9laM4mEhb X-Received: by 2002:a05:651c:b0a:b0:2d2:846b:8c50 with SMTP id b10-20020a05651c0b0a00b002d2846b8c50mr6367194ljr.6.1709051450465; Tue, 27 Feb 2024 08:30:50 -0800 (PST) Received: from localhost.localdomain (c83-255-24-248.bredband.tele2.se. [83.255.24.248]) by smtp.googlemail.com with ESMTPSA id n11-20020a2e904b000000b002d0b6eafa8csm1300712ljg.39.2024.02.27.08.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:30:50 -0800 (PST) From: Jonathan Bergh To: hdegoede@redhat.com Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Bergh Subject: [PATCH 3/3] staging: media: atomisp: Replace msleep call for less than 20ms with usleep_range Date: Tue, 27 Feb 2024 17:30:43 +0100 Message-Id: <20240227163043.112162-3-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240227163043.112162-1-bergh.jonathan@gmail.com> References: <20240227163043.112162-1-bergh.jonathan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792070984602244554 X-GMAIL-MSGID: 1792070984602244554 This patch makes the following change: * Replaces the call the msleep() to usleep_range() where msleep was used for a delay less than 20ms. Signed-off-by: Jonathan Bergh --- drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c index cd00282b87b7..607453740dc9 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c @@ -594,7 +594,7 @@ static int atomisp_mrfld_power(struct atomisp_device *isp, bool enable) } while (1); if (enable) - msleep(10); + usleep_range(10000, 15000); dev_err(isp->dev, "IUNIT power-%s timeout.\n", enable ? "on" : "off"); return -EBUSY;